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. //Module name: PL8x4_Save_NV12.inc
  12. //
  13. // Setup for storing planar data
  14. //
  15.  
  16. #include "undefall.inc"                 //Undefine the SRC and DEST sysmbols
  17. #undef nDPW_BLOCK_SIZE_Y
  18. #undef nDPW_MSG_SIZE_Y
  19. #undef nDPW_BLOCK_SIZE_UV
  20. #undef nDPW_MSG_SIZE_UV
  21.  
  22. #define nDPW_BLOCK_SIZE_Y   nBLOCK_WIDTH_16+nBLOCK_HEIGHT_8   // Y block size 16x8
  23. #define nDPW_MSG_SIZE_Y     nMSGLEN_4                         // # of MRF's to hold Y block data (4)
  24. #define nDPW_BLOCK_SIZE_UV  nBLOCK_WIDTH_16+nBLOCK_HEIGHT_4    // U/V interleaved block width and height (16x4)
  25. #define nDPW_MSG_SIZE_UV    nMSGLEN_2                         // # of MRF's to hold U/V block data (2)
  26.  
  27. // For masking
  28. #undef  nDPR_MSG_SIZE_Y
  29. #define nDPR_MSG_SIZE_Y        nRESLEN_4                          // # of MRF's to hold Y block data (4)
  30. #undef  nDPR_MSG_SIZE_UV
  31. #define nDPR_MSG_SIZE_UV       nRESLEN_2  
  32. #define     rMASK_TEMP     REG(r,nTEMP0)
  33. .declare    uwMASK_TEMP    Base=rMASK_TEMP    ElementSize=2    SrcRegion=<8;8,1>    Type=uw        //1 GRF
  34. #define     rMASK_TEMP1     REG(r,nTEMP1)
  35. .declare    udMASK_TEMP1    Base=rMASK_TEMP1    ElementSize=4    SrcRegion=<4;4,1>    Type=ud        //1 GRF
  36. .declare    uwMASK_TEMP1    Base=rMASK_TEMP1    ElementSize=2    SrcRegion=<8;8,1>    Type=uw        //1 GRF
  37.  
  38.  
  39. #if (nSRC_REGION==nREGION_1)
  40.        #define udSRC_Y                 udBOT_Y_IO
  41.        #define udSRC_U                 udBOT_U_IO
  42.        #define udSRC_V                 udBOT_V_IO
  43.        #define ubSRC_Y                 ubBOT_Y
  44.        #define ubSRC_U                 ubBOT_U
  45.        #define ubSRC_V                 ubBOT_V
  46.  
  47.        #define uwSRC_U                 uwBOT_U  //For masking operation
  48.        #define uwSRC_V                 uwBOT_V
  49.  
  50.        #define ub2DEST_Y               ub2TOP_Y
  51.        #define ub2DEST_U               ub2TOP_U
  52.        #define ub2DEST_V               ub2TOP_V
  53.        
  54.               #define ubDEST_Y                      ubTOP_Y    
  55.         #define ubDEST_U                            ubTOP_U    
  56.         #define ubDEST_V                            ubTOP_V
  57.        
  58.         #define ub2SRC_U                                  ub2BOT_U
  59. #elif (nSRC_REGION==nREGION_2)
  60.        #define udSRC_Y                 udTOP_Y_IO
  61.        #define udSRC_U                 udTOP_U_IO
  62.        #define udSRC_V                 udTOP_V_IO
  63.        #define ubSRC_Y                 ubTOP_Y
  64.        #define ubSRC_U                 ubTOP_U
  65.        #define ubSRC_V                 ubTOP_V
  66.  
  67.        #define uwSRC_U                 uwTOP_U  //For masking operation
  68.        #define uwSRC_V                 uwTOP_V
  69.  
  70.        #define ub2DEST_Y               ub2BOT_Y
  71.        #define ub2DEST_U               ub2BOT_U
  72.        #define ub2DEST_V               ub2BOT_V
  73.  
  74.               #define ubDEST_Y                      ubBOT_Y    
  75.         #define ubDEST_U                            ubBOT_U    
  76.         #define ubDEST_V                            ubBOT_V        
  77.        
  78.         #define ub2SRC_U                                  ub2TOP_U
  79. #endif
  80.  
  81. ///* Yoni - masking is not relevant for ILK?!?
  82. //#define         TEMP0   REG(r,54)
  83. //.declare    TEMP        Base=TEMP0      ElementSize=2   SrcRegion=<8;8,1>       Type=uw
  84. ///* Yoni - masking is not relevant for ILK?!?
  85.  
  86.