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. //Module name: PL8x4_Save_NV11.inc
  12. //
  13. // Setup for storing planar data
  14. //
  15.  
  16. #include "undefall.inc"                 //Undefine the SRC and DEST sysmbols
  17.  
  18. #define nDPW_BLOCK_SIZE_Y   nBLOCK_WIDTH_16+nBLOCK_HEIGHT_8   // Y block size 16x8
  19. #define nDPW_MSG_SIZE_Y     nMSGLEN_4                         // # of MRF's to hold Y block data (4)
  20. #define nDPW_BLOCK_SIZE_UV  nBLOCK_WIDTH_8+nBLOCK_HEIGHT_8    // U/V interleaved block width and height (8x8)
  21. #define nDPW_MSG_SIZE_UV    nMSGLEN_2                         // # of MRF's to hold U/V block data (2)
  22.  
  23. #if (nSRC_REGION==nREGION_1)
  24.         #define udSRC_Y                 udBOT_Y_IO
  25.         #define udSRC_U                 udBOT_U_IO
  26.         #define udSRC_V                 udBOT_V_IO
  27.         #define ubSRC_Y                 ubBOT_Y
  28.         #define ubSRC_U                 ubBOT_U
  29.         #define ubSRC_V                 ubBOT_V
  30.  
  31.         #define uwSRC_U                 uwBOT_U  //For masking operation
  32.         #define uwSRC_V                 uwBOT_V
  33.  
  34.         #define ub2DEST_Y               ub2TOP_Y
  35.         #define ub2DEST_U               ub2TOP_U
  36.         #define ub2DEST_V               ub2TOP_V
  37.        
  38. #elif (nSRC_REGION==nREGION_2)
  39.         #define udSRC_Y                 udTOP_Y_IO
  40.         #define udSRC_U                 udTOP_U_IO
  41.         #define udSRC_V                 udTOP_V_IO
  42.         #define ubSRC_Y                 ubTOP_Y
  43.         #define ubSRC_U                 ubTOP_U
  44.         #define ubSRC_V                 ubTOP_V
  45.  
  46.         #define uwSRC_U                 uwTOP_U  //For masking operation
  47.         #define uwSRC_V                 uwTOP_V
  48.  
  49.         #define ub2DEST_Y               ub2BOT_Y
  50.         #define ub2DEST_U               ub2BOT_U
  51.         #define ub2DEST_V               ub2BOT_V
  52.        
  53. #endif
  54.  
  55. ///* Yoni - masking is not relevant for ILK?!?
  56. //#define         TEMP0   REG(r,54)
  57. //.declare    TEMP        Base=TEMP0      ElementSize=2   SrcRegion=<8;8,1>       Type=uw
  58. ///* Yoni - masking is not relevant for ILK?!?
  59.  
  60.  
  61.