1 /************************************************************************/
4 /* description: color table for yuv rgb convertion, */
5 /* support both bt.601 and bt.709 */
6 /************************************************************************/
7 #ifndef __COLOR_CONV_TABLE_H_53D078BB_BBA1_441B_9728_67E29A1CB521__
8 #define __COLOR_CONV_TABLE_H_53D078BB_BBA1_441B_9728_67E29A1CB521__
19 static const ColorConvTable
* GetColorConvTable(const YUV_Type
& yuv_type
);
20 static void DestroyColorConvTable(const YUV_Type
& yuv_type
);
21 static YUV_Type
SetDefaultYUVType(const YUV_Type
& yuv_type
) { return s_default_yuv_type
= yuv_type
; }
22 static YUV_Type
GetDefaultYUVType() { return s_default_yuv_type
; };
23 static const ColorConvTable
* GetDefaultColorConvTable() { return GetColorConvTable(s_default_yuv_type
); }
27 unsigned char Clip_base
[256*3];
28 const unsigned char* Clip
;
55 bool InitColorConvTable(const YUV_Type
& yuv_type
);
57 void InitBT601ColorConvTable();
59 void InitBT709ColorConvTable();
63 static ColorConvTable
* s_color_table_bt601
;
64 static ColorConvTable
* s_color_table_bt709
;
65 static YUV_Type s_default_yuv_type
;
68 #endif // end of __COLOR_CONV_TABLE_H_53D078BB_BBA1_441B_9728_67E29A1CB521__