📄 key_handler_setup.c
字号:
{ SetupLang_t lang; MenuDom4State_et d4_index; SetupInfoGetMenuLang(&lang); switch( gOSD_state.etSetup_dsp.d2_list ) { case MENU_D2_LANG_AUDIO: if( lang.audio == LANG_OTHER ) { d4_index = GuiSetupGetDom4UsingLangList(lang.audio_other); } else { d4_index = MENU_D4_LANG_OTH_START+1; } break; case MENU_D2_LANG_SUBTITLE: if( lang.subtitle == LANG_OTHER ) { d4_index = GuiSetupGetDom4UsingLangList(lang.subtitle_other); } else { d4_index = MENU_D4_LANG_OTH_START+1; } break; case MENU_D2_LANG_DISCMENU: if( lang.menu == LANG_OTHER ) { d4_index = GuiSetupGetDom4UsingLangList(lang.menu_other); } else { d4_index = MENU_D4_LANG_OTH_START+1; } break; default: d4_index = MENU_D4_LANG_OTH_START+1; break; } return d4_index;}#if _APP_CAP_AUD_SETUP_SPEAKER/******************************************************************************* Function name : GuiSetupGetFirstDom4Item* Arguments : * IN * MenuDom3State_et d4_state* OUT * I/O * Return : MenuDom4State_et* * By : changlina060428* Description : * Revision : 1.0 *******************************************************************************/ MenuDom4State_et GuiSetupGetFirstDom4Item(MenuDom3State_et d3_state){ SetupSpeaker_t speaker; MenuDom4State_et d4 = NULL; SetupInfoGetMenuSpeaker(&speaker); switch(d3_state) {#if _APP_CAP_AUD_CONTROL_VOLUME case MENU_D3_SPK_VOLUME_SET: d4=(MENU_D4_SPK_VOL_START+1)+speaker.Volume.VolumeChannel; /*SET_SPK_VOL_FL/.....*/ break;#endif #if _APP_CAP_AUD_TIME_DELAY case MENU_D3_SPK_TIME_DELAY_SET: d4=(MENU_D4_SPK_TIME_DLY_START+1)+speaker.tdly_type; /*SET_SPK_VOL_FL/.....*/ break;#endif default: break; } return d4;}/******************************************************************************* Function name : GuiSetupGetFirstDom5Item* Arguments : * IN * MenuDom4State_et d4_state* OUT * I/O * Return : MenuDom5State_et* * By : changlina060428* Description : * Revision : 1.0 *******************************************************************************/ MenuDom5State_et GuiSetupGetFirstDom5Item(MenuDom4State_et d4_state){ SetupSpeaker_t speaker; MenuDom5State_et d5; SetupInfoGetMenuSpeaker(&speaker); switch(d4_state) {#if _APP_CAP_AUD_TIME_DELAY case MENU_D4_SPK_TIME_SDLY: d5= ((MENU_D5_SPK_SDLY_START+1) + speaker.s_delay ); break; case MENU_D4_SPK_TIME_CDLY: d5= ((MENU_D5_SPK_CDLY_START+1) + speaker.c_delay ); break;#endif#if _APP_CAP_AUD_CONTROL_VOLUME case MENU_D4_SPK_VOL_FL: d5= ((MENU_D5_SPK_VOL_FL_START+1) + speaker.Volume.VolumeFL); //ASSERT(d5 < MENU_D5_SPK_VOL_FL_END); break; case MENU_D4_SPK_VOL_FR: d5= ((MENU_D5_SPK_VOL_FR_START+1) + speaker.Volume.VolumeFR); break; case MENU_D4_SPK_VOL_SL: d5=((MENU_D5_SPK_VOL_SL_START+1) + speaker.Volume.VolumeSL); break; case MENU_D4_SPK_VOL_SR: d5= ((MENU_D5_SPK_VOL_SR_START+1) + speaker.Volume.VolumeSR); break; case MENU_D4_SPK_VOL_CEN: d5= ((MENU_D5_SPK_VOL_CEN_START+1) + speaker.Volume.VolumeCEN); break; case MENU_D4_SPK_VOL_SUB: d5= ((MENU_D5_SPK_VOL_SUB_START+1) + speaker.Volume.VolumeSUB); break;#endif default: break; } return d5;} UINT GuiSetupGetFirstDom5Volume(MenuDom4State_et d4_state){ SetupSpeaker_t speaker; UINT volume; SetupInfoGetMenuSpeaker(&speaker); switch(d4_state) {#if _APP_CAP_AUD_TIME_DELAY case MENU_D4_SPK_TIME_SDLY: volume=speaker.s_delay ; break; case MENU_D4_SPK_TIME_CDLY: volume= speaker.c_delay ; break;#endif#if _APP_CAP_AUD_CONTROL_VOLUME case MENU_D4_SPK_VOL_FL: volume= speaker.Volume.VolumeFL; break; case MENU_D4_SPK_VOL_FR: volume= speaker.Volume.VolumeFR; break; case MENU_D4_SPK_VOL_SL: volume= speaker.Volume.VolumeSL; break; case MENU_D4_SPK_VOL_SR: volume= speaker.Volume.VolumeSR; break; case MENU_D4_SPK_VOL_CEN: volume= speaker.Volume.VolumeCEN; break; case MENU_D4_SPK_VOL_SUB: volume= speaker.Volume.VolumeSUB; break;#endif default: break; } return volume;}#endif/******************************************************************************* Function name : GuiSetupCheckDom1List* Arguments : * IN * MenuDom1State_et d1_state* OUT * I/O * Return : BOOL* * By : changlina* Description : * Revision : 1.0 *******************************************************************************/STATIC BOOL GuiSetupCheckDom1List( MenuDom1State_et *d1_state)//clina 20060320{ if( *d1_state <= MENU_D1_SUB_START ) { *d1_state = MENU_D1_SUB_PARENT; return FALSE; } else if( *d1_state >= MENU_D1_SUB_END ) { *d1_state = MENU_D1_SUB_LANG; return FALSE; } else { return TRUE; }}//clina 20060320STATIC BOOL GuiSetupCheckDom2List( MenuDom1State_et d1_state, MenuDom2State_et *d2_state ){ switch( d1_state ) { case MENU_D1_SUB_LANG: if( *d2_state <= MENU_D2_LANG_START ) { *d2_state = MENU_D2_LANG_RESET; return FALSE; } else if( *d2_state >= MENU_D2_LANG_END ) { *d2_state = MENU_D2_LANG_OSDMENU; return FALSE; } else { return TRUE; } break; case MENU_D1_SUB_DISP: if( *d2_state <= MENU_D2_DISP_START ) { *d2_state = MENU_D2_DISP_END - 1; return FALSE; } else if( *d2_state >= MENU_D2_DISP_END ) { *d2_state = MENU_D2_DISP_START + 1; return FALSE; } else { return TRUE; } break; case MENU_D1_SUB_AUDIO: { SetupAudio_t audio1; //clina 060426 MenuDom2State_et menu_d2_aud_cur_end ; SetupInfoGetMenuAudio( &audio1 );#if _APP_CAP_AUD_SPDIF_PCM_DOWNMIX menu_d2_aud_cur_end=MENU_D2_AUDIO_END-1;#else menu_d2_aud_cur_end=MENU_D2_AUDIO_END;#endif #if !_APP_CAP_AUD_ONLY_2CH_OUT if(audio1.channel !=SPK_CHANNEL_5_1) menu_d2_aud_cur_end = MENU_D2_AUDIO_END-1; #endif if( *d2_state <= MENU_D2_AUDIO_START ) { *d2_state = menu_d2_aud_cur_end-1; return FALSE; } else if( *d2_state >= menu_d2_aud_cur_end ) { *d2_state = MENU_D2_AUDIO_DYN_COMP; return FALSE; } else { return TRUE; } break; }#if _APP_CAP_AUD_SETUP_SPEAKER case MENU_D1_SUB_SPEAKER: { SetupAudio_t audio; //clina 060425 MenuDom2State_et menu_d2_spk_cur_end ; SetupInfoGetMenuAudio( &audio ); if(audio.channel==SPK_CHANNEL_5_1) { menu_d2_spk_cur_end=MENU_D2_SPK_END; if(GetDiscState()!=DUMMY_DISC&&GetDiscState() !=NO_DISC )// no testtone menu_d2_spk_cur_end=MENU_D2_SPK_END-1; } else menu_d2_spk_cur_end=MENU_D2_SPK_START+(_APP_CAP_AUD_SUB_3D_SEPERATED&&_APP_CAP_AUD_3D) +(_APP_CAP_AUD_EQ)+(_APP_CAP_AUD_REVERBERATION)+1; if( *d2_state <= MENU_D2_SPK_START ) { *d2_state = menu_d2_spk_cur_end-1; return FALSE; } else if( *d2_state >= menu_d2_spk_cur_end ) { *d2_state = MENU_D2_SPK_START+1; return FALSE; } else { return TRUE; } break; }#endif#if _APP_CAP_AUD_KARAOKE case MENU_D1_SUB_KARAOKE: if( *d2_state <= MENU_D2_KARA_START ) { *d2_state = MENU_D2_KARA_KEY; return FALSE; } else if( *d2_state >= MENU_D2_KARA_END ) { *d2_state = MENU_D2_KARA_ONOFF; return FALSE; } else { return TRUE; } break;#endifcase MENU_D1_SUB_PARENT: if( *d2_state <= MENU_D2_LOCK_START ) { SetupAdult_t adult; SetupInfoGetMenuAdult( &adult ); if( adult.set ) *d2_state = MENU_D2_LOCK_CHANGE; else *d2_state = MENU_D2_LOCK_ONOFF; return FALSE; } else if( *d2_state >= MENU_D2_LOCK_END ) { *d2_state = MENU_D2_LOCK_ONOFF; return FALSE; } else { return TRUE; } break; default: return TRUE; } return TRUE;}//clina 20060321STATIC BOOL GuiSetupCheckDom3List( MenuDom2State_et d2_state, MenuDom3State_et *d3_state ){ switch( d2_state ) { case MENU_D2_LANG_OSDMENU: if( *d3_state <= MENU_D3_LANG_MENU_START ) { *d3_state = MENU_D3_LANG_MENU_END-1; return FALSE; } else if( *d3_state >= MENU_D3_LANG_MENU_END ) { *d3_state = MENU_D3_LANG_MENU_ENG; return FALSE; } else { return TRUE; } break; case MENU_D2_LANG_DISCMENU: if( *d3_state <= MENU_D3_LANG_DISC_START ) { *d3_state = MENU_D3_LANG_DISC_OTHER; return FALSE; } else if( *d3_state >= MENU_D3_LANG_DISC_END ) { *d3_state = MENU_D3_LANG_DISC_ENG; return FALSE; } else { return TRUE; } break; case MENU_D2_LANG_AUDIO: if( *d3_state <= MENU_D3_LANG_AUDIO_START ) { *d3_state = MENU_D3_LANG_AUDIO_ORIGINAL; return FALSE; } else if( *d3_state >= MENU_D3_LANG_AUDIO_END ) { *d3_state = MENU_D3_LANG_AUDIO_ENG; return FALSE; } else { return TRUE; } break; case MENU_D2_LANG_SUBTITLE: if( *d3_state <= MENU_D3_LANG_SUBTITLE_START ) { *d3_state = MENU_D3_LANG_SUBTITLE_OTHER; return FALSE; } else if( *d3_state >= MENU_D3_LANG_SUBTITLE_END ) { *d3_state = MENU_D3_LANG_SUBTITLE_OFF; return FALSE; } else { return TRUE; } break; case MENU_D2_LANG_VERSION: if( *d3_state <= MENU_D3_LANG_VERSION_START ) { *d3_state = MENU_D3_LANG_VERSION_END-1; //clina060421 return FALSE; } else if( *d3_state >= MENU_D3_LANG_VERSION_END ) { *d3_state = MENU_D3_LANG_VERSION_START+1; return FALSE; } else { return TRUE; } break; case MENU_D2_LANG_SAVER: if( *d3_state <= MENU_D3_LANG_SAVER_START ) { *d3_state = MENU_D3_LANG_SAVER_ON; return FALSE; } else if( *d3_state >= MENU_D3_LANG_SAVER_END ) { *d3_state = MENU_D3_LANG_SAVER_OFF; return FALSE; } else { return TRUE; } break; case MENU_D2_LANG_RESET: if( *d3_state <= MENU_D3_LANG_RESET_START) { *d3_state = MENU_D3_LANG_RESET_RESTORE; return FALSE; } else if( *d3_state >= MENU_D3_LANG_RESET_END ) { *d3_state = MENU_D3_LANG_RESET_RESTORE; return FALSE; } else { return TRUE; } break; case MENU_D2_DISP_ASPECT: if( *d3_state <= MENU_D3_DISP_ASPECT_START ) { *d3_state = MENU_D3_DISP_ASPECT_169WIDE; return FALSE; } else if( *d3_state >= MENU_D3_DISP_ASPECT_END ) { *d3_state = MENU_D3_DISP_ASPECT_43LB; return FALSE; } else { return TRUE; } break; case MENU_D2_DISP_PAUSE: if( *d3_state <= MENU_D3_DISP_PAUSE_START ) { *d3_state = MENU_D3_DISP_PAUSE_FIELD; return FALSE; } else if( *d3_state >= MENU_D3_DISP_PAUSE_END ) { *d3_state = MENU_D3_DISP_PAUSE_AUTO; return FALSE; } else { return TRUE; } break; case MENU_D2_DISP_MESSAGE: if( *d3_state <= MENU_D3_DISP_MESSAGE_START ) { *d3_state = MENU_D3_DISP_MESSAGE_ON; return FALSE; } else if( *d3_state >= MENU_D3_DISP_MESSAGE_END ) { *d3_state = MENU_D3_DISP_MESSAGE_OFF; return FALSE; } else { return TRUE; } break; #if _COP_UI_OSD_ANGLE_IN_SETUP case MENU_D2_DISP_ANGLE: if( *d3_state <= MENU_D3_DISP_ANGLE_START ) { *d3_state = MENU_D3_DISP_ANGLE_ON; return FALSE; } else if( *d3_state >= MENU_D3_DISP_ANGLE_END ) { *d3_state = MENU_D3_DISP_ANGLE_OFF; return FALSE; } else { return TRUE; } break;#endif#if _APP_CAP_OSD_CAPTURE_LOGO_IN_SETUP case MENU_D2_DISP_CPT_LOGO: if( *d3_state <= MENU_D3_DISP_CPT_LOGO_START ) { *d3_state = MENU_D3_DISP_CPT_LOGO_ON; return FALSE; } else if( *d3_state >= MENU_D3_DISP_CPT_LOGO_END ) { *d3_state = MENU_D3_DISP_CPT_LOGO_OFF;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -