2
* All Video Processing kernels
3
* Copyright © <2010>, Intel Corporation.
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.
11
// Module name: RGB16x8_Save_RGB.inc
14
#include "undefall.inc" //Undefine the SRC and DEST sysmbols
17
#define nDPW_BLOCK_SIZE_ARGB nBLOCK_WIDTH_32+nBLOCK_HEIGHT_8 // ARGB block size 32x8
18
#define nDPW_MSG_SIZE_ARGB nMSGLEN_8 // # of MRF's to hold ARGB block data (8)
21
#undef nDPR_MSG_SIZE_ARGB
22
#define nDPR_MSG_SIZE_ARGB nRESLEN_8 // # of MRF's to hold ARGB block data (8)
23
#define rMASK_TEMP REG(r,nTEMP0)
24
.declare uwMASK_TEMP Base=rMASK_TEMP ElementSize=2 SrcRegion=<8;8,1> Type=uw //1 GRF
26
#if (nSRC_REGION==nREGION_1)
28
#define udDEST_ARGB udTOP_Y_IO //The output of previous stage is stored here; This is modified and is written to render cache
29
//For masking operation
30
#define udSRC_ARGB udBOT_Y_IO //To hold the destination data that shouldn't be modified
32
#elif (nSRC_REGION==nREGION_2)
34
#define udDEST_ARGB udBOT_Y_IO //The output of previous stage is stored here; This is modified and is written to render cache
35
//For masking operation
36
#define udSRC_ARGB udTOP_Y_IO //To hold the destination data that shouldn't be modified