omxVC_s.h revision 0c1bc742181ded4930842b46e9507372f0b1b963
1;/****************************************************************************** 2;// Copyright (c) 1999-2005 The Khronos Group Inc. All Rights Reserved 3;// 4;// 5;// 6;// 7;// 8;// 9;// 10;// 11;******************************************************************************/ 12 13;/** =============== Structure Definition for Sample Generation ============== */ 14;/** transparent status */ 15 16;enum { 17OMX_VIDEO_TRANSPARENT EQU 0; /** Wholly transparent */ 18OMX_VIDEO_PARTIAL EQU 1; /** Partially transparent */ 19OMX_VIDEO_OPAQUE EQU 2; /** Opaque */ 20;} 21 22;/** direction */ 23;enum { 24OMX_VIDEO_NONE EQU 0; 25OMX_VIDEO_HORIZONTAL EQU 1; 26OMX_VIDEO_VERTICAL EQU 2; 27;} 28 29;/** bilinear interpolation type */ 30;enum { 31OMX_VIDEO_INTEGER_PIXEL EQU 0; /** case a */ 32OMX_VIDEO_HALF_PIXEL_X EQU 1; /** case b */ 33OMX_VIDEO_HALF_PIXEL_Y EQU 2; /** case c */ 34OMX_VIDEO_HALF_PIXEL_XY EQU 3; /** case d */ 35;} 36 37;enum { 38OMX_UPPER EQU 1; /** set if the above macroblock is available */ 39OMX_LEFT EQU 2; /** set if the left macroblock is available */ 40OMX_CENTER EQU 4; 41OMX_RIGHT EQU 8; 42OMX_LOWER EQU 16; 43OMX_UPPER_LEFT EQU 32; /** set if the above-left macroblock is available */ 44OMX_UPPER_RIGHT EQU 64; /** set if the above-right macroblock is available */ 45OMX_LOWER_LEFT EQU 128; 46OMX_LOWER_RIGHT EQU 256 47;} 48 49;enum { 50OMX_VIDEO_LUMINANCE EQU 0; /** Luminance component */ 51OMX_VIDEO_CHROMINANCE EQU 1; /** chrominance component */ 52OMX_VIDEO_ALPHA EQU 2; /** Alpha component */ 53;} 54 55;enum { 56OMX_VIDEO_INTER EQU 0; /** P picture or P-VOP */ 57OMX_VIDEO_INTER_Q EQU 1; /** P picture or P-VOP */ 58OMX_VIDEO_INTER4V EQU 2; /** P picture or P-VOP */ 59OMX_VIDEO_INTRA EQU 3; /** I and P picture; I- and P-VOP */ 60OMX_VIDEO_INTRA_Q EQU 4; /** I and P picture; I- and P-VOP */ 61OMX_VIDEO_INTER4V_Q EQU 5; /** P picture or P-VOP (H.263)*/ 62OMX_VIDEO_DIRECT EQU 6; /** B picture or B-VOP (MPEG-4 only) */ 63OMX_VIDEO_INTERPOLATE EQU 7; /** B picture or B-VOP */ 64OMX_VIDEO_BACKWARD EQU 8; /** B picture or B-VOP */ 65OMX_VIDEO_FORWARD EQU 9; /** B picture or B-VOP */ 66OMX_VIDEO_NOTCODED EQU 10; /** B picture or B-VOP */ 67;} 68 69;enum { 70OMX_16X16_VERT EQU 0; /** Intra_16x16_Vertical (prediction mode) */ 71OMX_16X16_HOR EQU 1; /** Intra_16x16_Horizontal (prediction mode) */ 72OMX_16X16_DC EQU 2; /** Intra_16x16_DC (prediction mode) */ 73OMX_16X16_PLANE EQU 3; /** Intra_16x16_Plane (prediction mode) */ 74;} 75 76;enum { 77OMX_4x4_VERT EQU 0; /** Intra_4x4_Vertical (prediction mode) */ 78OMX_4x4_HOR EQU 1; /** Intra_4x4_Horizontal (prediction mode) */ 79OMX_4x4_DC EQU 2; /** Intra_4x4_DC (prediction mode) */ 80OMX_4x4_DIAG_DL EQU 3; /** Intra_4x4_Diagonal_Down_Left (prediction mode) */ 81OMX_4x4_DIAG_DR EQU 4; /** Intra_4x4_Diagonal_Down_Right (prediction mode) */ 82OMX_4x4_VR EQU 5; /** Intra_4x4_Vertical_Right (prediction mode) */ 83OMX_4x4_HD EQU 6; /** Intra_4x4_Horizontal_Down (prediction mode) */ 84OMX_4x4_VL EQU 7; /** Intra_4x4_Vertical_Left (prediction mode) */ 85OMX_4x4_HU EQU 8; /** Intra_4x4_Horizontal_Up (prediction mode) */ 86;} 87 88;enum { 89OMX_CHROMA_DC EQU 0; /** Intra_Chroma_DC (prediction mode) */ 90OMX_CHROMA_HOR EQU 1; /** Intra_Chroma_Horizontal (prediction mode) */ 91OMX_CHROMA_VERT EQU 2; /** Intra_Chroma_Vertical (prediction mode) */ 92OMX_CHROMA_PLANE EQU 3; /** Intra_Chroma_Plane (prediction mode) */ 93;} 94 95;typedef struct { 96x EQU 0; 97y EQU 4; 98;}OMXCoordinate; 99 100;typedef struct { 101dx EQU 0; 102dy EQU 2; 103;}OMXMotionVector; 104 105;typedef struct { 106xx EQU 0; 107yy EQU 4; 108width EQU 8; 109height EQU 12; 110;}OMXiRect; 111 112;typedef enum { 113OMX_VC_INTER EQU 0; /** P picture or P-VOP */ 114OMX_VC_INTER_Q EQU 1; /** P picture or P-VOP */ 115OMX_VC_INTER4V EQU 2; /** P picture or P-VOP */ 116OMX_VC_INTRA EQU 3; /** I and P picture, I- and P-VOP */ 117OMX_VC_INTRA_Q EQU 4; /** I and P picture, I- and P-VOP */ 118OMX_VC_INTER4V_Q EQU 5; /** P picture or P-VOP (H.263)*/ 119;} OMXVCM4P2MacroblockType; 120 121;enum { 122OMX_VC_NONE EQU 0 123OMX_VC_HORIZONTAL EQU 1 124OMX_VC_VERTICAL EQU 2 125;}; 126 127 128 END 129 130