Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5361 serge 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_Y416.inc
12
//
13
 
14
#include "undefall.inc"                 //Undefine the SRC and DEST sysmbols
15
 
16
// For saving
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)
19
 
20
// For masking
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
25
 
26
#if (nSRC_REGION==nREGION_1)
27
    // For saving
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
31
 
32
#elif (nSRC_REGION==nREGION_2)
33
    // For saving
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
37
 
38
#endif