Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * All Video Processing kernels
  3.  * Copyright © <2010>, Intel Corporation.
  4.  *
  5.  * This program is licensed under the terms and conditions of the
  6.  * Eclipse Public License (EPL), version 1.0.  The full text of the EPL is at
  7.  * http://www.opensource.org/licenses/eclipse-1.0.php.
  8.  *
  9.  */
  10.  
  11. //---------- PA_AVS_IEF_Unpack_8x8.asm ----------
  12.  
  13. // Yoni: In order to optimize unpacking, 3 methods are being checked:
  14. //  1. AVS_ORIGINAL
  15. //  2. AVS_ROUND_TO_8_BITS  
  16. //  3. AVS_INDIRECT_ACCESS  
  17. //
  18. // Only 1 method should stay in the code
  19.  
  20.  
  21. //#define AVS_ROUND_TO_8_BITS
  22. //#define AVS_INDIRECT_ACCESS
  23.  
  24.  
  25.     // Move first 8x8 words of Y to dest GRF
  26.     mov (8)  uwDEST_Y(0)<1>     ubAVS_RESPONSE(2,1)<16;4,2>                
  27.     mov (8)  uwDEST_Y(1)<1>     ubAVS_RESPONSE(2,8+1)<16;4,2>              
  28.     mov (8)  uwDEST_Y(2)<1>     ubAVS_RESPONSE(3,1)<16;4,2>                
  29.     mov (8)  uwDEST_Y(3)<1>     ubAVS_RESPONSE(3,8+1)<16;4,2>              
  30.     mov (8)  uwDEST_Y(4)<1>     ubAVS_RESPONSE(8,1)<16;4,2>                
  31.     mov (8)  uwDEST_Y(5)<1>     ubAVS_RESPONSE(8,8+1)<16;4,2>              
  32.     mov (8)  uwDEST_Y(6)<1>     ubAVS_RESPONSE(9,1)<16;4,2>                
  33.     mov (8)  uwDEST_Y(7)<1>     ubAVS_RESPONSE(9,8+1)<16;4,2>              
  34.  
  35.     // Move first 4x8 words of V to dest GRF  
  36.     mov (4) uwDEST_V(0)<1>      ubAVS_RESPONSE(0,1)<16;2,4>                
  37.     mov (4) uwDEST_V(0,8)<1>    ubAVS_RESPONSE(1,1)<16;2,4>                
  38.     mov (4) uwDEST_V(1)<1>      ubAVS_RESPONSE(6,1)<16;2,4>                
  39.     mov (4) uwDEST_V(1,8)<1>    ubAVS_RESPONSE(7,1)<16;2,4>                
  40.  
  41.     // Move first 4x8 words of U to dest GRF        
  42.     mov (4) uwDEST_U(0)<1>      ubAVS_RESPONSE(4,1)<16;2,4>          
  43.     mov (4) uwDEST_U(0,8)<1>    ubAVS_RESPONSE(5,1)<16;2,4>          
  44.     mov (4) uwDEST_U(1)<1>      ubAVS_RESPONSE(10,1)<16;2,4>          
  45.     mov (4) uwDEST_U(1,8)<1>    ubAVS_RESPONSE(11,1)<16;2,4>          
  46.  
  47.     // Move second 8x8 words of Y to dest GRF
  48.     mov (8) uwDEST_Y(0,8)<1>    ubAVS_RESPONSE_2(2,1)<16;4,2>    
  49.     mov (8) uwDEST_Y(1,8)<1>    ubAVS_RESPONSE_2(2,8+1)<16;4,2>
  50.     mov (8) uwDEST_Y(2,8)<1>    ubAVS_RESPONSE_2(3,1)<16;4,2>    
  51.     mov (8) uwDEST_Y(3,8)<1>    ubAVS_RESPONSE_2(3,8+1)<16;4,2>
  52.     mov (8) uwDEST_Y(4,8)<1>    ubAVS_RESPONSE_2(8,1)<16;4,2>  
  53.     mov (8) uwDEST_Y(5,8)<1>    ubAVS_RESPONSE_2(8,8+1)<16;4,2>
  54.     mov (8) uwDEST_Y(6,8)<1>    ubAVS_RESPONSE_2(9,1)<16;4,2>    
  55.     mov (8) uwDEST_Y(7,8)<1>    ubAVS_RESPONSE_2(9,8+1)<16;4,2>
  56.  
  57.     // Move second 4x8 words of V to dest GRF        
  58.     mov (4) uwDEST_V(0,4)<1>    ubAVS_RESPONSE_2(0,1)<16;2,4>          
  59.     mov (4) uwDEST_V(0,12)<1>   ubAVS_RESPONSE_2(1,1)<16;2,4>          
  60.     mov (4) uwDEST_V(1,4)<1>    ubAVS_RESPONSE_2(6,1)<16;2,4>          
  61.     mov (4) uwDEST_V(1,12)<1>   ubAVS_RESPONSE_2(7,1)<16;2,4>          
  62.  
  63.     // Move second 4x8 words of U to dest GRF        
  64.     mov (4) uwDEST_U(0,4)<1>    ubAVS_RESPONSE_2(4,1)<16;2,4>            
  65.     mov (4) uwDEST_U(0,12)<1>   ubAVS_RESPONSE_2(5,1)<16;2,4>            
  66.     mov (4) uwDEST_U(1,4)<1>    ubAVS_RESPONSE_2(10,1)<16;2,4>            
  67.     mov (4) uwDEST_U(1,12)<1>   ubAVS_RESPONSE_2(11,1)<16;2,4>            
  68.  
  69. //------------------------------------------------------------------------------
  70.  
  71.        // Re-define new number of lines
  72.        #undef nUV_NUM_OF_ROWS
  73.        #undef nY_NUM_OF_ROWS
  74.        
  75.        #define nY_NUM_OF_ROWS      8
  76.        #define nUV_NUM_OF_ROWS     8
  77.  
  78.