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: RGB16x8_Save_RGB16.inc
  12. //
  13.  
  14. #include "undefall.inc"                 //Undefine the SRC and DEST sysmbols
  15.  
  16. // For saving
  17. #define nDPW_BLOCK_SIZE_RGB16    nBLOCK_WIDTH_32+nBLOCK_HEIGHT_8    // RGB16 block size 32x8
  18. #define nDPW_MSG_SIZE_RGB16      nMSGLEN_8                          // # of MRF's to hold RGB16 block data (8)
  19.  
  20. // For conversion to 16bit
  21. .declare        uwTEMP_RGB16    Base=REG(r,nTEMP1)      ElementSize=2 SrcRegion=<16;16,1>       Type=uw         //1 GRF
  22.  
  23. // For masking
  24. #undef  nDPR_MSG_SIZE_RGB16
  25. #define nDPR_MSG_SIZE_RGB16      nRESLEN_8                          // # of MRF's to hold ARGB block data (8)
  26. #define     rMASK_TEMP     REG(r,nTEMP0)
  27. .declare    uwMASK_TEMP    Base=rMASK_TEMP    ElementSize=2    SrcRegion=<8;8,1>    Type=uw        //1 GRF
  28.  
  29. #if (nSRC_REGION==nREGION_1)
  30.     // For saving
  31.     #define ubDEST_ARGB      ubTOP_Y       //Data from previous module
  32.     #define uwDEST_ARGB      uwTOP_Y       //Data from previous module
  33.     #define udCSC_TEMP       udBOT_Y_IO    //Data Converted to 16 bits
  34.     #define uwCSC_TEMP       uwBOT_Y
  35.     //For masking operation
  36.     #define udSRC_RGB16      udTOP_Y_IO    //To hold the destination data that shouldn't be modified
  37.    #define uwSRC_RGB16      uwTOP_Y
  38.  
  39. #elif (nSRC_REGION==nREGION_2)
  40.    // For saving
  41.    #define ubDEST_ARGB      ubBOT_Y       //Data from previous module
  42.    #define uwDEST_ARGB      uwBOT_Y       //Data from previous module
  43.    #define udCSC_TEMP       udTOP_Y_IO    //Data Converted to 16 bits
  44.    #define uwCSC_TEMP       uwTOP_Y
  45.    //For masking operation
  46.    #define udSRC_RGB16      udBOT_Y_IO    //To hold the destination data that shouldn't be modified
  47.     #define uwSRC_RGB16      uwBOT_Y
  48.  
  49. #endif
  50.