?? v_std.h
字號(hào):
#ifndef _VIDEO_STANDARD_H
#define _VIDEO_STANDARD_H
typedef enum
{
PAL_CIF = 0x0000,
PAL_HD1 = 0x0001,
PAL_D1 = 0x0002,
NTSC_CIF = 0x1000,
NTSC_HD1 = 0x1001,
NTSC_D1 = 0x1002
} VIDEO_STANDARDS;
inline int vs_width(VIDEO_STANDARDS vs)
{
static int w_table[2][3] = { {352, 704, 704}, {352, 704, 704} } ;
return w_table[vs>>12][vs&0xf] ;
}
inline int vs_height(VIDEO_STANDARDS vs)
{
static int h_table[2][3] = { {288, 288, 576}, {240, 240, 480} } ;
return h_table[vs>>12][vs&0xf] ;
}
inline VIDEO_STANDARDS get_vs(int width, int height)
{
if (width == 704) {
if (height == 576)
return PAL_D1 ;
else if (height == 480)
return NTSC_D1 ;
else if (height == 288)
return PAL_HD1 ;
else if (height == 240)
return NTSC_HD1 ;
else
return PAL_CIF ; //error
}
else if (width == 352) {
if (height == 288)
return PAL_CIF ;
else if (height == 240)
return NTSC_CIF ;
else
return PAL_CIF ; //error
}
else
return PAL_CIF ; //error
/* if( width == 352 )
{
return PAL_CIF;
}
if( width == 704 )
{
if( height == 576 )
return PAL_D1;
else
return PAL_HD1;
}
if( width == 320 )
{
return NTSC_CIF;
}
if( width == 640 )
{
if( height == 480 )
return NTSC_D1;
else
return NTSC_HD1;
}
return PAL_CIF;
*/
}
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -