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
//---------- PL2_AVS_IEF_16x8.asm ----------
12
 
13
#include "AVS_IEF.inc"
14
 
15
//------------------------------------------------------------------------------
16
// 2 sampler reads for 8x8 Y each
17
// 2 sampler read for 8x8 U and 8x8 V (NV11\P208 input surface)
18
//------------------------------------------------------------------------------
19
 
20
    // 1st 8x8 setup
21
    #include "AVS_SetupFirstBlock.asm"
22
 
23
    // Enable green channel only
24
    mov (1) rAVS_8x8_HDR.2:ud      nAVS_GREEN_CHANNEL_ONLY:ud
25
 
26
    mov (16) mAVS_8x8_HDR.0:ud      rAVS_8x8_HDR.0<8;8,1>:ud    // Copy msg header and payload mirrors to MRFs
27
    send (1) uwAVS_RESPONSE(0)<1>   mAVS_8x8_HDR   udDUMMY_NULL      nSMPL_ENGINE        nAVS_MSG_DSC_1CH+nSI_SRC_Y+nBI_CURRENT_SRC_Y
28
    // Return Y in 4 GRFs
29
 
30
    // 8x8 U and V sampling
31
    // Enable red and blue channels
32
    mov (1) rAVS_8x8_HDR.2:ud  nAVS_RED_BLUE_CHANNELS:ud
33
 
34
    mov (16) mAVS_8x8_HDR_UV.0:ud      rAVS_8x8_HDR.0<8;8,1>:ud    // Copy msg header and payload mirrors to MRFs
35
    send (1) uwAVS_RESPONSE(4)<1> mAVS_8x8_HDR_UV   udDUMMY_NULL  nSMPL_ENGINE    nAVS_MSG_DSC_2CH+nSI_SRC_UV+nBI_CURRENT_SRC_UV
36
    // Return U and V in 8 GRFs
37
 
38
    // 2nd 8x8 setup
39
    #include "AVS_SetupSecondBlock.asm"
40
 
41
    // 2nd 8x8 Y sampling
42
    // Enable green channel only
43
    mov (1) rAVS_8x8_HDR.2:ud      nAVS_GREEN_CHANNEL_ONLY:ud
44
 
45
    mov (16) mAVS_8x8_HDR.0:ud      rAVS_8x8_HDR.0<8;8,1>:ud    // Copy msg header and payload mirrors to MRFs
46
    send (1) uwAVS_RESPONSE_2(0)<1>    mAVS_8x8_HDR    udDUMMY_NULL    nSMPL_ENGINE    nAVS_MSG_DSC_1CH+nSI_SRC_Y+nBI_CURRENT_SRC_Y
47
 
48
    // 2nd 8x8 U and V sampling
49
    // Enable red and blue channels
50
    mov (1) rAVS_8x8_HDR.2:ud  nAVS_RED_BLUE_CHANNELS:ud
51
 
52
    mov (16) mAVS_8x8_HDR_UV.0:ud      rAVS_8x8_HDR.0<8;8,1>:ud    // Copy msg header and payload mirrors to MRFs
53
    send (1) uwAVS_RESPONSE_2(4)<1> mAVS_8x8_HDR_UV   udDUMMY_NULL  nSMPL_ENGINE    nAVS_MSG_DSC_2CH+nSI_SRC_UV+nBI_CURRENT_SRC_UV
54
    // Return U and V in 8 GRFs
55
 
56
//------------------------------------------------------------------------------
57
// Unpacking sampler reads to 4:4:4 internal planar
58
//------------------------------------------------------------------------------
59
    #include "PL2_AVS_IEF_Unpack_16x8.asm"
60