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: PL3_Load.inc
12
 
13
#undef 	nY_NUM_OF_ROWS
14
#undef 	nUV_NUM_OF_ROWS
15
 
16
#define nY_NUM_OF_ROWS      8                                     // Number of Y rows per block
17
#define nDPR_BLOCK_SIZE_Y   nBLOCK_WIDTH_16+nBLOCK_HEIGHT_8       // Y block size 16x8
18
#define nDPR_MSG_SIZE_Y     nRESLEN_4                             // # of MRF's to hold Y block data (4)
19
 
20
#if defined(IMC3_LOAD_8x4)
21
    #define nUV_NUM_OF_ROWS     4                                 // Number of U/V rows per block
22
    #define nDPR_BLOCK_SIZE_UV  nBLOCK_WIDTH_8+nBLOCK_HEIGHT_4    // U/V block size 8x4
23
    #define nDPR_MSG_SIZE_UV    nRESLEN_1                         // # of MRF's to hold U/V block data (1)
24
#endif
25
#if defined(IMC3_LOAD_8x5)
26
    #define nUV_NUM_OF_ROWS     6                                 // Number of U/V rows per block (Rounded Up to Nearest Even Number)
27
    #define nDPR_BLOCK_SIZE_UV  nBLOCK_WIDTH_8+nBLOCK_HEIGHT_5    // U/V block size 8x5
28
    #define nDPR_MSG_SIZE_UV    nRESLEN_2                         // # of MRF's to hold U/V block data (2)
29
#endif
30
#if defined(IMC3_LOAD_9x5)
31
    #define nUV_NUM_OF_ROWS     6                                 // Number of U/V rows per block (Rounded Up to Nearest Even Number)
32
    #define nDPR_BLOCK_SIZE_UV  nBLOCK_WIDTH_12+nBLOCK_HEIGHT_5   // U/V block size 12x5
33
    #define nDPR_MSG_SIZE_UV    nRESLEN_3                         // # of MRF's to hold U/V block data (3)
34
#endif
35
 
36
// Source/destination region definitions
37
#if !defined(udSRC_Y)
38
    #define udSRC_Y  udBOT_Y_IO     // Default Y source region is top Y region
39
#endif
40
 
41
#if !defined(udSRC_U)
42
    #define udSRC_U  udBOT_U_IO     // Default U source region is top U region
43
#endif
44
 
45
#if !defined(udSRC_V)
46
    #define udSRC_V  udBOT_V_IO     // Default V source region is top V region
47
#endif
48
 
49
#define ubSRC_Y      ubBOT_Y        // Loading data are always in byte type
50
#define ubSRC_U      ubBOT_U
51
#define ubSRC_V      ubBOT_V
52
 
53
#define uwDEST_Y     uwTOP_Y        // However they can be transferred to word-aligned byte if desired
54
#define uwDEST_U     uwTOP_U
55
#define uwDEST_V     uwTOP_V
56
 
57
#define nSRC_REGION  nREGION_1      // REGION_1 will be the source region for first kernel
58
 
59
// End of PL3_Load.inc