00001 00013 #ifndef _FRAME_H_ 00014 #define _FRAME_H_ 00015 00016 typedef enum { 00017 CM_UNKNOWN = -1, 00018 CM_YUV = 0, 00019 CM_RGB = 1, 00020 CM_XYZ = 2 00021 } ColorModel; 00022 00023 typedef enum { 00024 CF_UNKNOWN = -1, 00025 YUV400 = 0, 00026 YUV420 = 1, 00027 YUV422 = 2, 00028 YUV444 = 3 00029 } ColorFormat; 00030 00031 typedef struct frame_format 00032 { 00033 ColorFormat yuv_format; 00034 ColorModel color_model; 00035 double frame_rate; 00036 int width; 00037 int height; 00038 int height_cr; 00039 int width_cr; 00040 int auto_crop_right; 00041 int auto_crop_bottom; 00042 int auto_crop_right_cr; 00043 int auto_crop_bottom_cr; 00044 int width_crop; 00045 int height_crop; 00046 int mb_width; 00047 int mb_height; 00048 int size_cmp[3]; 00049 int size; 00050 int bit_depth[3]; 00051 int max_value[3]; 00052 int max_value_sq[3]; 00053 int pic_unit_size_on_disk; 00054 int pic_unit_size_shift3; 00055 } FrameFormat; 00056 00057 #endif