?? ircmd_video.c
字號:
#endif
}
}
#ifdef ADD_PC_VGA_OUT//PC_VGA_OUT//nono change the name of the definition.5-8-22 21:14
extern UINT8 eTITLEKEY[5];
extern void cssx_set_titlekey(UINT8 title_key[5]);
static UINT8 prev_tv_out_id = 0;
if ((prev_tv_out_id == PC_VGA) && (id != PC_VGA)) // VGA -> non-VGA
{
pause_n_fields(2); // wait at least one field end for cxx rld, (joey, 2007/08/28)
cssx_set_titlekey(eTITLEKEY);
}
prev_tv_out_id = id;
#endif
#ifdef DYNAMIC_SPECTRUM
if(bEqDisplay)
Show3dspectrum();
#endif
//initializing infomation displaying OSD
#ifdef SUPPORT_MP4_SUBTITLE
if(IS_EXT_SUP_ACTIVATED())
osd_init_OSDSRT();
else
#endif
{
#ifdef SUPPORT_OSDID3
////jiangxl for stop state executing restore show id3 in title.
if((Is_MP3_STATE())&&(!(full_scrn & SETUP)&&(play_state!=VCD_STATE_STOP))) //lyc add 2005-10-7 for executing restore when showing setup_menu
{
osd_init_OSDID3();
show_id3();
}
#endif
}
#ifdef SUPPORT_CD_TEXT//lizhx add 2004/08/24
if( cd_type_loaded == CDDA )
{
osd_init_CDText();
show_CDText( v11_trk_now );
}
#endif
#ifdef GBM_USE_VFD_CONTROL_P_SCAN_LED //gerry,2004-2-20 14:23
if(full_scrn==SETUP)
{
if(p_scan==0)
write_vfd_led(0xf); //3 led are all off,2004-2-19 21:03
else//GBM_USE_VFD_CONTROL_P_SCAN_LED
write_vfd_led(0xe); //only p-san led on,2004-2-19 21:03
}
#endif//GBM_USE_VFD_CONTROL_P_SCAN_LED
#ifdef ORITRON_RECEIVER_6001
scart_pin_change(); //OP fcr 2005-9-27 3:22
#endif
#ifdef HW_FIX_TV_NINT_GRAB_WRONG_FIELD
if(hw_fix_tv_nint_grab_wrong_field) /* steve.chang 20071107 */
{
// when N to P or P to N
set_osdtv_int = 1; //HW_FIX_TV_NINT_GRAB_WRONG_FIELD
}
#endif // #endif HW_FIX_TV_NINT_GRAB_WRONG_FIELD
}
void search_ap_tv_out_id(void)
{
UINT8 i;
for(i=0;i<=MODE_MAX_PSCAN;i++)
{
if(tv_out_id == tv_out_map[i])
{
ap_tv_out_id = i;
return;
}
}
ap_tv_out_id = 0;
}
//terry,2004/2/4 06:05PM
#ifndef MINTON_DVD //hq, let "AUTO" between "NTSC" and "PAL" for ngailik,4-2-17 1:00
const UINT8 TV_format_table[] = {
#ifdef SUPPORT_NTSC
#ifndef PAL_VERSION
MODE_NTSC,
#endif
#endif
#ifdef SUPPORT_NTSCJ
MODE_NTSCJ,
#endif
#ifdef SUPPORT_PAL
#ifndef NTSC_VERSION
MODE_PAL,
#endif
#endif
#ifdef SUPPORT_PAL60
MODE_PAL60,
#endif
#ifdef SUPPORT_PALM
MODE_PALM,
#endif
#ifdef SUPPORT_PALN
MODE_PALN,
#endif
#ifdef SUPPORT_PALNc
MODE_PALNC,
#endif
MODE_AUTO
};
#else
const UINT8 TV_format_table[] =
{
MODE_NTSC,
MODE_AUTO,
MODE_PAL
};
#endif //end ifndef MINTON_DVD, hq,4-2-17 1:03
//terry,2004/2/5 12:11PM
UINT8 tv_format_sel=0;
void update_tv_format_sel(void)
{
//int i;
UINT8 i;//nono 2004-2-20 0:38 cancel warning...
for(i=0;i<sizeof(TV_format_table)/sizeof(TV_format_table[0]);i++)
{
if(TV_format_table[i]==tv_format)
{
tv_format_sel=i;
break;
}
}
}
static inline void ircmd_TV_format_toggle(void)
{
UINT8 id=STR_OS_PAL;
#ifdef SUPPORT_MIDIDISK_TITLE //ouyang add for the lyric will move down when read title 050408
if (bIsPlayMidiTitle)
{
invalid_key();
return;
}
#endif
#ifdef NEWSTYLE_WINDOW // alan, 2003/8/27 10:06AM
if (full_scrn&MESSAGE)
{
invalid_key();
return;
}
#endif
#ifdef ALCO_8200P_MULTIKEY
if((!IS_STOP_OPEN_IDLE_STATE()) && !((play_state==VCD_STATE_MP3_FILELIST)&&Is_JPEG_STATE()&&(!pFsJpeg->gbfsSlide)))
{
invalid_key();
return;
}
#endif
#ifndef ADJUSTING_ACTION_VALID_RIGHT_NOW
if(action_click)
#endif
{
tv_format_sel++;
#ifdef SUPPORT_HD_RESOLUTION //modify the N/P behavior for HD, by robert.chang, 2006-07-18
if( ((GET_TV_RESOLUTION() == HD_720)||(GET_TV_RESOLUTION() == HD_1080)) ) {
if(tv_format == MODE_PAL) // if HD is active, then tv_format only have the MODE_NTSC and MODE_PAL.
tv_format_sel = 0;
}
#endif
#ifdef ALCO_DVD_UI
if((tv_format_sel==1) && (tv_format==MODE_AUTO))
tv_format_sel = 0;
#endif
if (tv_format_sel>=sizeof(TV_format_table)/sizeof(TV_format_table[0])) {
tv_format_sel=0;
}
tv_format = TV_format_table[tv_format_sel];
#ifdef SUPPORT_HD_RESOLUTION //modify the N/P behavior for HD, by robert.chang, 2006-07-18
hd_setting_start();
extern void set_vpp_disp_window(int,int,int,int);
if(GET_TV_RESOLUTION() == HD_720){
if(tv_format == MODE_NTSC) {
sp8200tv_set_hd_mode(HD_720P_F60, 1);
}
else if(tv_format == MODE_PAL) {
sp8200tv_set_hd_mode(HD_720P_F50, 1);
}
set_vpp_disp_window(0,0,1280,720);
}
else if(GET_TV_RESOLUTION() == HD_1080){
if(tv_format == MODE_NTSC) {
sp8200tv_set_hd_mode(HD_1080I_F60, 1);
}
else if(tv_format == MODE_PAL) {
sp8200tv_set_hd_mode(HD_1080I_F50, 1);
}
set_vpp_disp_window(0,0,1920,1080);
}
#endif
#ifdef TCON_DRIVER_ARK1819//shenyj add 2007-4-6 14:24 only for AR1819 T-CON
WriteI2c(0xd8,0x21,0x38,1);
WriteI2c(0xd8,0x4e,0x00,1);
WriteI2c(0xd8,0xf8,0x62,1);
#endif
setup_tv_format(tv_format);
#ifdef SUPORT_TFT_TCON //shenyj move here 2007-4-6 14:24
set_tft_tcon_tv_format(tv_format);
#endif
#ifdef SUPPORT_HD_RESOLUTION
hd_setting_end();
#endif
#ifdef SCALER_6500 //helm for HDMI video format switch, 051017
extern BYTE AUTO_Setup_Position;
if (tv_format == MODE_PAL)
exe_setup_function (STR_OS_TV_SYS, STR_OS_PAL, 1);
if (tv_format == MODE_NTSC) // set default
exe_setup_function (STR_OS_TV_SYS, STR_OS_NTSC, 1);
if (tv_format == MODE_AUTO){
setup_VA[SETUP_VA_TV_SYS] = AUTO_Setup_Position;
run_save_sel_cmd(setup_VA[SETUP_VA_TV_SYS], SETUP_VA_TV_SYS);
if (Ksetup_tv_format == TV_FORMAT_PAL){
dvi311_tv_mode = STR_OS_PAL;
}
if (Ksetup_tv_format == TV_FORMAT_NTSC){
dvi311_tv_mode = STR_OS_NTSC;
}
scaler_6500_main();
}
#endif
osd_move_subtitle_region(); // 2005/07/12 yltseng
#ifdef ADD_DVI311_SETUP
if(tv_format==MODE_NTSC)
dvi311_tv_mode=0x85; //NTSC
else if(tv_format==MODE_PAL)
dvi311_tv_mode=0x84;
else if(tv_format==MODE_PAL60)
dvi311_tv_mode=0x86;
if(tv_out_id!=P_SCAN) //not HD output kevin@2k0708
{
if((dvi311_tv_mode>0x84&&dvi311_mode==Mode_576P)//576P @kevin 2k40525
||(dvi311_tv_mode==0x84&&dvi311_mode==Mode_480P))//480P @kevin 2k40525 change for display correct !
{
#ifdef DVI311_NO_PC_MODE
if(dvi311_tv_mode>0x84)
dvi311_mode=Mode_480P;
else if(dvi311_tv_mode==0x84)
dvi311_mode=Mode_576P;
#else
dvi311_mode=Mode_VGA;//SVGA
#endif
}
}
else if(tv_out_id==P_SCAN) //not HD output kevin@2k0708
{
if(dvi311_tv_mode>0x84&&dvi311_mode==Mode_576P)// NTSC and 480P @kevin 2k40708
dvi311_mode=Mode_480P;
if(dvi311_tv_mode==0x84&&dvi311_mode==Mode_480P)// PAL and 576P @kevin 2k40708
dvi311_mode=Mode_576P;
}
scaler_main();
#endif
}
//joshua, 2007/5/10 11:10
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -