mdfdevvideoextensions/nga_mdf_postprocessor/inc/common.h
branchRCL_3
changeset 14 cd271b19d824
parent 0 40261b775718
equal deleted inserted replaced
12:b74061f7f3d2 14:cd271b19d824
    53 #define E_USER_ERROR_BASE   (-1000)
    53 #define E_USER_ERROR_BASE   (-1000)
    54 
    54 
    55 #define mIsSuccess(code)    ((code)>=0)
    55 #define mIsSuccess(code)    ((code)>=0)
    56 #define mIsFailure(code)    ((code)<0)
    56 #define mIsFailure(code)    ((code)<0)
    57 
    57 
       
    58 /* These define the srcImageFormats */
       
    59 #define EYuv420Chroma1_Planar		0x01
       
    60 #define EYuv420Chroma2_Planar		0x02
       
    61 #define EYuv420Chroma3_Planar		0x03
       
    62 #define EYuv422Chroma1_LE   0x04
       
    63 #define EYuv422Chroma2_LE   0x05
       
    64 #define EYuv422Chroma1_BE   0x06
       
    65 #define EYuv422Chroma2_BE   0x07
       
    66 
       
    67 /* These define the dstImageFormats */
       
    68 #define EBitmapColor4k_DitherOrdered	0x01
       
    69 #define EBitmapColor4k_DitherErrDiff	0x02
       
    70 #define EBitmapColor64k_DitherOrdered	0x03
       
    71 #define EBitmapColor64k_DitherErrDiff	0x04
       
    72 #define EBitmapColor16M					0x05
       
    73 #define EBitmapColor16MU				0x06
       
    74 
       
    75 /* These define the various color conversion schemes */
       
    76 #define EITU601_5_FULLRANGE		0X01
       
    77 #define EITU601_5_REDUCEDRANGE	0X02
       
    78 #define EB709_FULLRANGE			0X03
       
    79 #define EB709_REDUCEDRANGE		0X04
       
    80 
       
    81 #define COLOR_CONV_PRECISION    14
       
    82 #define COLOR_CONV_ROUND        8192
    58 /* This is the data structure for the output video frame buffer */
    83 /* This is the data structure for the output video frame buffer */
    59 typedef struct BaseVideoFrame
    84 typedef struct BaseVideoFrame
    60 {
    85 {
    61     uint8  *lum;       /* Luminance pointer */
    86     uint8  *lum;       /* Luminance pointer */
    62 		uint8  *cb;        /* Cb pointer */
    87 		uint8  *cb;        /* Cb pointer */
    67 
    92 
    68 } tBaseVideoFrame;
    93 } tBaseVideoFrame;
    69 
    94 
    70 typedef enum {YUV422INT_LE, YUV422INT_BE} EBufferLayout422; 
    95 typedef enum {YUV422INT_LE, YUV422INT_BE} EBufferLayout422; 
    71 
    96 
       
    97 /* Crop window structure */
       
    98 typedef struct WndParam
       
    99 {  
       
   100 	uint16 xOffset;    
       
   101 	uint16 yOffset;
       
   102 	uint32 wndWidth;
       
   103 	uint32 wndHeight;
       
   104 }tWndParam;
       
   105 
    72 #endif  /* INCLUDE_COMMON */
   106 #endif  /* INCLUDE_COMMON */