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: PL8x8_Save_PA.inc
  12. //
  13. // Setup for storing packed data
  14. //
  15.  
  16. #include "undefall.inc"                 //Undefine the SRC and DEST sysmbols
  17.  
  18. // For saving
  19. #define nDPW_BLOCK_SIZE_YUV      nBLOCK_WIDTH_32+nBLOCK_HEIGHT_8    // YUV block size 32x8
  20. #define nDPW_MSG_SIZE_YUV        nMSGLEN_8                          // # of MRF's to hold YUV block data (8)
  21.  
  22. // For masking
  23. #undef  nDPR_MSG_SIZE_YUV
  24. #define nDPR_MSG_SIZE_YUV        nRESLEN_8                          // # of MRF's to hold YUV block data (8)
  25. #define     rMASK_TEMP     REG(r,nTEMP0)
  26. .declare    uwMASK_TEMP    Base=rMASK_TEMP    ElementSize=2    SrcRegion=<8;8,1>    Type=uw        //1 GRF
  27.  
  28. #if (nSRC_REGION==nREGION_1)
  29.     // For saving
  30.     #define udSRC_YUV        udTOP_Y_IO
  31.     #define udDEST_YUV       udBOT_Y_IO
  32.     #define nDEST_YUV_REG    nBOT_Y
  33.     //For masking operation
  34.     #define ubSRC_Y          ub2TOP_Y
  35.     #define ubSRC_U          ub2TOP_U
  36.     #define ubSRC_V          ub2TOP_V
  37.     #define uwSRC_YUV        uwTOP_Y
  38.     #define uwDEST_YUV       uwBOT_Y
  39.  
  40. #elif (nSRC_REGION==nREGION_2)
  41.     // For saving
  42.     #define udSRC_YUV        udBOT_Y_IO
  43.     #define udDEST_YUV       udTOP_Y_IO
  44.     #define nDEST_YUV_REG    nTOP_Y
  45.     //For masking operation
  46.     #define ubSRC_Y          ub2BOT_Y
  47.     #define ubSRC_U          ub2BOT_U
  48.     #define ubSRC_V          ub2BOT_V
  49.     #define uwSRC_YUV        uwBOT_Y
  50.     #define uwDEST_YUV       uwTOP_Y
  51.  
  52. #endif
  53.