📄 setup.c
字号:
#else
#define ITEMNUM_STD_PAL_NC 5
#endif
#endif
#endif//NO_PAL_M
const OSD_MESSAGES std_vid_list_c[] = {
S_NTSC,
S_PAL,
#ifndef NO_PAL_M//ZORAN LX0316
S_PAL_60,
S_PAL_M,
#endif//NO_PAL_M
S_AUTO,
#ifdef PAL_N_ENABLE //VW0604
S_PAL_N,
#endif
#ifdef PAL_NC_ENABLE //VW0604
S_PAL_NC
#endif
};
#ifdef NO_PAL_M//ZORAN LX0316
const MS_TEXT_LIST std_vid_list = {
#ifdef PAL_N_ENABLE //VW0604
#ifdef PAL_NC_ENABLE
5,
#else
4,
#endif
#else
#ifdef PAL_NC_ENABLE
4,
#else
3,
#endif
#endif
(int *)std_vid_list_c
};
#else//NO_PAL_M
const MS_TEXT_LIST std_vid_list = {
#ifdef PAL_N_ENABLE //VW0604
#ifdef PAL_NC_ENABLE
7,
#else
6,
#endif
#else
#ifdef PAL_NC_ENABLE
6,
#else
5,
#endif
#endif
(int *)std_vid_list_c
};
#endif//NO_PAL_M
//
// Item position definitions
//
//<<<<<<<<FW0310 Add video output
#ifdef D_VIDEO_OUTPUT_MODE
#define ITEMNUM_VID_CVBS 0
#define ITEMNUM_VID_YUV 1
#ifndef NO_RGB
#define ITEMNUM_VID_RGB 2
#endif
const OSD_MESSAGES vid_out_list_c[] = {
S_CVBS,
S_YUV,
#ifndef NO_RGB
S_RGB,
#endif
};
const MS_TEXT_LIST vid_out_list[] = {
#ifndef NO_RGB
3,(int *)vid_out_list_c
#else
2,(int *)vid_out_list_c
#endif
};
#endif
// FW0310 >>>>>>>>>>>
#ifdef TV_GUARDIAN_ENABLE
#define ITEM_TVG_MODE_OFF 0
#define ITEM_TVG_MODE_ONTOL 1
#define ITEM_TVG_MODE_ONSTR 2
const OSD_MESSAGES tvg_mode_list_c[] = {
S_TVG_MODE_OFF,
S_TVG_MODE_ONTOL,
S_TVG_MODE_ONSTR
};
const MS_TEXT_LIST tvg_mode_list[] = {
3, (int *)tvg_mode_list_c
};
#define ITEM_TVG_CC_OFF 0
#define ITEM_TVG_CC_CUSS 1
#define ITEM_TVG_CC_ON 2
const OSD_MESSAGES tvg_cc_list_c[] = {
S_TVG_CC_OFF,
S_TVG_CC_CUSS,
S_TVG_CC_ON
};
const MS_TEXT_LIST tvg_cc_list[] = {
3, (int *)tvg_cc_list_c
};
#define ITEM_TVG_CC_CC1 0
#define ITEM_TVG_CC_CC2 1
//#define ITEM_TVG_CC_CHANNEL_CC3 2
//#define ITEM_TVG_CC_CHANNEL_CC4 3
const OSD_MESSAGES tvg_cc_channel_list_c[] = {
S_TVG_CC_CC1,
S_TVG_CC_CC2,
// S_TVG_CC_CC3,
// S_TVG_CC_CC4
};
const MS_TEXT_LIST tvg_cc_channel_list[] = {
2, (int *)tvg_cc_channel_list_c
};
#endif
#ifdef D_ENABLE_SETUP_JPG_VIEW //DM1015 enable setup the option for JPG view,original/full screen size.
#define ITEMNUM_JPG_ORIGINAL 0
#define ITEMNUM_JPG_FULLSCR 1
const OSD_MESSAGES jpg_view_list_c[] = {
S_ORIGINAL,
S_FULLSCR
};
const MS_TEXT_LIST jpg_view_list = {
2,(int *)jpg_view_list_c
};
#endif //D_ENABLE_SETUP_JPG_VIEW
#define POS1_STAT_LOC {0, MS_LINE_2, OPTION_WIDTH, OPTION_HEIGHT}
#define POS2_STAT_LOC {0, MS_LINE_3, OPTION_WIDTH, OPTION_HEIGHT}
#define POS3_STAT_LOC {0, MS_LINE_4, OPTION_WIDTH, OPTION_HEIGHT}
#define POS4_STAT_LOC {0, MS_LINE_5, OPTION_WIDTH, OPTION_HEIGHT}
#define OSD_STAT_LOC {0, MS_LINE_6, OPTION_WIDTH, OPTION_HEIGHT}
#define POS5_STAT_LOC {0, MS_LINE_6, OPTION_WIDTH, OPTION_HEIGHT}
#define POS6_STAT_LOC {0, MS_LINE_7, OPTION_WIDTH, OPTION_HEIGHT}
#define COLUMN1_STAT_LOC {X_COLUMN1, MS_LINE_1, OPTION_WIDTH, OPTION_HEIGHT}
#define COLUMN2_STAT_LOC {X_COLUMN2, MS_LINE_1, OPTION_WIDTH, OPTION_HEIGHT}
// posX is the position of the original choice value
// choice_posX is the position of the values to choose from
const MS_POS choice_pos0 = {X_COLUMN2 + 24, 8, OPTION_WIDTH, 0};
const MS_POS pos1 = {X_COLUMN1, MS_LINE_2, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS choice_pos1 = {X_COLUMN2, MS_LINE_2, OPTION_WIDTH, 0};
const MS_POS pos2 = {X_COLUMN1, MS_LINE_3, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS choice_pos2 = {X_COLUMN2, MS_LINE_3, OPTION_WIDTH, 0};
const MS_POS pos3 = {X_COLUMN1, MS_LINE_4, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS choice_pos3 = {X_COLUMN2, MS_LINE_4, OPTION_WIDTH, 0};
const MS_POS pos4 = {X_COLUMN1, MS_LINE_5, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS choice_pos4 = {X_COLUMN2, MS_LINE_5, OPTION_WIDTH, 0};
#ifdef D_ENABLE_SETUP_JPG_VIEW //DM1015 enable setup the option for JPG view,original/full screen size.
const MS_POS ppos5 = {X_COLUMN1, MS_LINE_6, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS choice_pos5 = {X_COLUMN2, MS_LINE_6, OPTION_WIDTH, 0};
#endif
const MS_POS pos5 = {X_COLUMN2, MS_LINE_2, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS pos6 = {X_COLUMN2, MS_LINE_3, OPTION_WIDTH, OPTION_HEIGHT};
#ifdef TV_GUARDIAN_ENABLE//ZORAN LX0907
const MS_POS choice_tvg = {X_COLUMN2, MS_LINE_4, OPTION_WIDTH, 0};
const MS_POS choice_tvgcc = {X_COLUMN2, MS_LINE_5, OPTION_WIDTH, 0};
const MS_POS choice_tvgcc_channel= {X_COLUMN2, MS_LINE_6, OPTION_WIDTH, 0};
const MS_POS pos_tvg = {X_COLUMN1, MS_LINE_4, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS pos_tvgcc = {X_COLUMN1, MS_LINE_5, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS pos_tvgcc_channel = {X_COLUMN1, MS_LINE_6, OPTION_WIDTH, OPTION_HEIGHT};
#endif
const MS_POS pos7 = {X_COLUMN2, MS_LINE_4, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS pos8 = {X_COLUMN2, MS_LINE_5, OPTION_WIDTH, OPTION_HEIGHT};
const MS_POS in_place_pos = {X_COLUMN2, MS_LINE_7, 0, 0};
const MS_POS posOSD = {X_COLUMN1, MS_LINE_6, OPTION_WIDTH, OPTION_HEIGHT};
//<<<VW0604 add PALN & PALNC menu
#ifdef PAL_N_ENABLE
const MS_POS choice_pos2nnc = {X_COLUMN2, MS_LINE_1, OPTION_WIDTH, 0};
#else
#ifdef PAL_NC_ENABLE
const MS_POS choice_pos2nnc = {X_COLUMN2, MS_LINE_1, OPTION_WIDTH, 0};
#else
const MS_POS choice_pos2nnc = {X_COLUMN2, MS_LINE_3, OPTION_WIDTH, 0};
#endif
#endif
//VW0604 >>>>
// Lock/Unlock icon position
#define LOCK_POS {X_COLUMN1 + OPTION_WIDTH, MS_LINE_2, 32, OPTION_HEIGHT}
const MS_STATIC pas_par_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS1_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_PASSWORD
};
const MS_STATIC lvl_par_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS2_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_RATING
};
const MS_STATIC lock_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
LOCK_POS,
NO_PARENT,
static_user_op,
},
(void *)S_LOCKED
};
const MS_STATIC unlock_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
LOCK_POS,
NO_PARENT,
static_user_op,
},
(void *)S_UNLOCKED
};
#ifdef D_ENABLE_SETUP_RESTORE_SETTING
const MS_STATIC restore_setting_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS5_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_RESTORE_SETTING
};
const MS_BUTTON restore_setting_btn = {
{
{MS_HOT_SPOT,
ALIGN_CENTER,
I_COLOR,
{X_COLUMN1, MS_LINE_6, OPTION_WIDTH, OPTION_HEIGHT},
NO_PARENT,
button_user_op},
(void *)S_ENTER},
restore_setting_action
};
#endif //D_ENABLE_SETUP_RESTORE_SETTING
const MS_STATIC ac3_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS1_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_AC3
};
const MS_STATIC dts_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS2_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_DTS
};
// ZORAN CDE0724 : Fixed usage of compound D20_BOARD and DTS_DISABLE macros
#if (defined(D20_BOARD) || defined(DTS_DISABLE)) //DM0316 enable DTS SPDIF when disable DTS
//#if D20_BOARD ||DTS_DISABLE //DM0316 enable DTS SPDIF when disable DTS
const MS_STATIC dts_analog_stat = {
{
0,
ALIGN_CENTER,
STAT_COLOR,
{X_COLUMN1, MS_LINE_3, OPTION_WIDTH, OPTION_HEIGHT},
NO_PARENT,
static_user_op,
},
(void *)S_OFF
};
#endif // D20_BOARD
const MS_STATIC mp3_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS3_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_MP3
};
const MS_STATIC others_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS4_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_OTHERS
};
const MS_STATIC digital_out_stat = {
{
0,
ALIGN_CENTER,
STAT_COLOR,
COLUMN2_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_DIGITAL_OUT
};
const MS_STATIC analog_out_stat = {
{
0,
ALIGN_CENTER,
STAT_COLOR,
COLUMN1_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_ANALOG_OUT
};
const MS_STATIC pro_aud_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS1_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_PROLOGIC
};
const MS_STATIC sub_aud_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS2_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_SUBWOOFER
};
///////////////////////////////////////// Ban
#ifdef D_ENABLE_SETUP_PKNOISE
const MS_STATIC pknoise_aud_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
#ifdef D_ENABLE_SETUP_LRMODE
POS4_STAT_LOC, // shift down by 1, if LR selection is available.
#else
POS3_STAT_LOC,
#endif
NO_PARENT,
static_user_op,
},
(void *)S_PKNOISE
};
#endif //D_ENABLE_SETUP_PKNOISE
///////////////////////////////////////// Ban
#ifdef D_ENABLE_SETUP_LRMODE
const MS_STATIC mssLRMode = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS3_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_LR_MODE
};
#endif // D_ENABLE_SETUP_LRMODE
const MS_STATIC res_vid_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS1_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_TV_SHAPE
};
//<<<<<FW0310 Add video output
#ifdef D_VIDEO_OUTPUT_MODE
const MS_STATIC vid_out_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS3_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_VID_OUT
};
#endif
// FW >>>>>>>>>
#ifdef TV_GUARDIAN_ENABLE
const MS_STATIC tvg_mode_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS3_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_TVG_MODE
};
const MS_STATIC tvg_cc_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS4_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_TVG_CC
};
const MS_STATIC tvg_cc_channel_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS5_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_TVG_CHANNEL
};
#endif
const MS_STATIC std_vid_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS2_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_VIDEO
};
#if (defined(D30_BOARD) || defined(D50_BOARD))
const MS_STATIC brightness_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS3_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_BRIGHTNESS
};
const MS_STATIC edges_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS4_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_EDGES
};
#endif // D30_BOARD and D50_BOARD
#ifdef D_ENABLE_SETUP_JPG_VIEW //DM1015 enable setup the option for JPG view,original/full screen size.
const MS_STATIC jpg_view_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
#ifndef D_VIDEO_OUTPUT_MODE
#ifndef NO_BRIGHTNESS_IN_SETUP//(defined(D30_BOARD) || defined(D50_BOARD))
POS5_STAT_LOC,
#else
POS3_STAT_LOC,
#endif
#else
#if NO_BRIGHTNESS_IN_SETUP//(defined(D30_BOARD) || defined(D50_BOARD))
POS4_STAT_LOC,
#else
POS4_STAT_LOC,
#endif
#endif //D_VIDEO_OUTPUT_MODE
NO_PARENT,
static_user_op,
},
(void *)S_JPG_VIEW
};
#endif //D_ENABLE_SETUP_JPG_VIEW
const MS_STATIC osd_lng_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS1_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_OSD_MENU
};
const MS_STATIC sub_lng_stat = {
{
0,
ALIGN_LEFT,
STAT_COLOR,
POS2_STAT_LOC,
NO_PARENT,
static_user_op,
},
(void *)S_SUBTITLE
};
const MS_STATIC aud_lng_stat = {
{
0,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -