?? color_space.h
字號:
#ifndef _COLOR_SPACE_H
#define _COLOR_SPACE_H
//##ModelId=3F9348FB034E
typedef enum
{
csNONE = -1,
csAUTO = 0, ///< 自動選擇最優方式.
csYV12 = 1, ///< 未使用
csYUY2 = 2, ///< YUV 422 Y0 U0 Y1 V0.
csUYVY = 4, ///< YUV 422 U0 Y0 V0 Y1.
csYUV = 7,
csRGB555= 8, ///< RGB 16位 555格式.
csRGB565= 16, ///< RGB 16位 565格式.
csRGB24 = 32, ///< RGB 24位.
csRGB32 = 64, ///< RGB 32位.
csRGB = 0x60, ///< RGB自動模式
} COLOR_SPACE;
inline int get_bitcount(COLOR_SPACE cs)
{
switch(cs)
{
case csYV12:
return 12;
case csYUY2:
case csUYVY:
case csRGB555:
case csRGB565:
return 16;
case csRGB24:
return 24;
case csRGB32:
return 32;
default:
return 0;
}
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -