Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | 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(0,8+1)<16;2,4>              
  38.     mov (4) uwDEST_V(1)<1>      ubAVS_RESPONSE(1,1)<16;2,4>                
  39.     mov (4) uwDEST_V(1,8)<1>    ubAVS_RESPONSE(1,8+1)<16;2,4>              
  40.     mov (4) uwDEST_V(2)<1>      ubAVS_RESPONSE(6,1)<16;2,4>                
  41.     mov (4) uwDEST_V(2,8)<1>    ubAVS_RESPONSE(6,8+1)<16;2,4>              
  42.     mov (4) uwDEST_V(3)<1>      ubAVS_RESPONSE(7,1)<16;2,4>                
  43.     mov (4) uwDEST_V(3,8)<1>    ubAVS_RESPONSE(7,8+1)<16;2,4>              
  44.  
  45.     // Move first 4x8 words of U to dest GRF        
  46.     mov (4) uwDEST_U(0)<1>      ubAVS_RESPONSE(4,1)<16;2,4>          
  47.     mov (4) uwDEST_U(0,8)<1>    ubAVS_RESPONSE(4,8+1)<16;2,4>                
  48.     mov (4) uwDEST_U(1)<1>      ubAVS_RESPONSE(5,1)<16;2,4>          
  49.     mov (4) uwDEST_U(1,8)<1>    ubAVS_RESPONSE(5,8+1)<16;2,4>                
  50.     mov (4) uwDEST_U(2)<1>      ubAVS_RESPONSE(10,1)<16;2,4>          
  51.     mov (4) uwDEST_U(2,8)<1>    ubAVS_RESPONSE(10,8+1)<16;2,4>                
  52.     mov (4) uwDEST_U(3)<1>      ubAVS_RESPONSE(11,1)<16;2,4>          
  53.     mov (4) uwDEST_U(3,8)<1>    ubAVS_RESPONSE(11,8+1)<16;2,4>                
  54.  
  55.     // Move second 8x8 words of Y to dest GRF
  56.     mov (8) uwDEST_Y(0,8)<1>    ubAVS_RESPONSE_2(2,1)<16;4,2>    
  57.     mov (8) uwDEST_Y(1,8)<1>    ubAVS_RESPONSE_2(2,8+1)<16;4,2>
  58.     mov (8) uwDEST_Y(2,8)<1>    ubAVS_RESPONSE_2(3,1)<16;4,2>    
  59.     mov (8) uwDEST_Y(3,8)<1>    ubAVS_RESPONSE_2(3,8+1)<16;4,2>
  60.     mov (8) uwDEST_Y(4,8)<1>    ubAVS_RESPONSE_2(8,1)<16;4,2>  
  61.     mov (8) uwDEST_Y(5,8)<1>    ubAVS_RESPONSE_2(8,8+1)<16;4,2>
  62.     mov (8) uwDEST_Y(6,8)<1>    ubAVS_RESPONSE_2(9,1)<16;4,2>    
  63.     mov (8) uwDEST_Y(7,8)<1>    ubAVS_RESPONSE_2(9,8+1)<16;4,2>
  64.  
  65.     // Move second 4x8 words of V to dest GRF        
  66.     mov (4) uwDEST_V(0,4)<1>    ubAVS_RESPONSE_2(0,1)<16;2,4>          
  67.     mov (4) uwDEST_V(0,12)<1>   ubAVS_RESPONSE_2(0,8+1)<16;2,4>                
  68.     mov (4) uwDEST_V(1,4)<1>    ubAVS_RESPONSE_2(1,1)<16;2,4>          
  69.     mov (4) uwDEST_V(1,12)<1>   ubAVS_RESPONSE_2(1,8+1)<16;2,4>                
  70.     mov (4) uwDEST_V(2,4)<1>    ubAVS_RESPONSE_2(6,1)<16;2,4>          
  71.     mov (4) uwDEST_V(2,12)<1>   ubAVS_RESPONSE_2(6,8+1)<16;2,4>                
  72.     mov (4) uwDEST_V(3,4)<1>    ubAVS_RESPONSE_2(7,1)<16;2,4>          
  73.     mov (4) uwDEST_V(3,12)<1>   ubAVS_RESPONSE_2(7,8+1)<16;2,4>                
  74.  
  75.     // Move second 4x8 words of U to dest GRF        
  76.     mov (4) uwDEST_U(0,4)<1>    ubAVS_RESPONSE_2(4,1)<16;2,4>            
  77.     mov (4) uwDEST_U(0,12)<1>   ubAVS_RESPONSE_2(4,8+1)<16;2,4>          
  78.     mov (4) uwDEST_U(1,4)<1>    ubAVS_RESPONSE_2(5,1)<16;2,4>            
  79.     mov (4) uwDEST_U(1,12)<1>   ubAVS_RESPONSE_2(5,8+1)<16;2,4>          
  80.     mov (4) uwDEST_U(2,4)<1>    ubAVS_RESPONSE_2(10,1)<16;2,4>            
  81.     mov (4) uwDEST_U(2,12)<1>   ubAVS_RESPONSE_2(10,8+1)<16;2,4>          
  82.     mov (4) uwDEST_U(3,4)<1>    ubAVS_RESPONSE_2(11,1)<16;2,4>            
  83.     mov (4) uwDEST_U(3,12)<1>   ubAVS_RESPONSE_2(11,8+1)<16;2,4>          
  84.  
  85. //------------------------------------------------------------------------------
  86.  
  87.        // Re-define new number of lines
  88.        #undef nUV_NUM_OF_ROWS
  89.        #undef nY_NUM_OF_ROWS
  90.        
  91.        #define nY_NUM_OF_ROWS      8
  92.        #define nUV_NUM_OF_ROWS     8
  93.  
  94.