📄 fsosd.h
字号:
* displayed string
*/
#define OSD_TIME_SIZE 6
#if (!CUST3 && !CUST4 && !P315)
#define OSD_TRACK_SIZE OSD_TIME_SIZE
#else
#if defined(S215) || defined(P315)
#define OSD_TRACK_SIZE 2
#else
#ifdef CUST4
#define OSD_TRACK_SIZE 7
#else
#define OSD_TRACK_SIZE 8
#endif /* CUST4 */
#endif /* S215 */
#endif /* !CUST3 && !CUST4 */
#ifdef P4O
#ifdef FOUR_LINE_OSD
#define OSD_AUDIO_REGION 7
#define OSD_DIGEST_REGION 8
#define OSD_VOCAL_REGION 9
#define OSD_KARAOKE_REGION 11
#define OSD_VOLUME_REGION 11
#else
#define OSD_AUDIO_REGION 10
#define OSD_DIGEST_REGION 11
#define OSD_VOCAL_REGION 12
#define OSD_KARAOKE_REGION 14
#define OSD_VOLUME_REGION 14
#endif /* FOUR_LINE_OSD */
#define OSD_FUNCTION_STATUS_REGION 1
#define OSD_TV_STANDARD_REGION 6
#define OSD_CD_TYPE_REGION 4
#define OSD_REPEAT_REGION 1
#define OSD_PAUSE_REGION 3
#define OSD_VIEW_REGION 2
#else /* not P4O */
#if (CUST71 || CUSTDVD)
#define MAIN_REGION 4
#define REGION_ONE 1
#define FUNCTION_REGION 3+3
#define PLAY_MODE_REGION 4+3
#define AUDIO_MODE_REGION 6+3
#ifdef VIDEO_IMPROVE
#define KEY_VOL_REGION_2 8
#else
#define KEY_VOL_REGION_2 8+3
#endif
#define TV_SYSTEM_REGION 3+3 /* temporary */
#ifdef VIDEO_IMPROVE
#define REGION_5 5
#define KEY_VOL_REGION_1 5
#define KEY_VOL_REGION_3 10
#define KEY_VOL_REGION_4 11
#define KEY_VOL_REGION_5 12
#else
#define KEY_VOL_REGION_1 5+3
#define KEY_VOL_REGION_3 10+3
#define KEY_VOL_REGION_4 11+3
#define KEY_VOL_REGION_5 12+3
#endif /* VIDEO_IMPROVE */
#endif
#ifdef CUST4
#define OSD_FUNCTION_STATUS_REGION 4
#define OSD_AUDIO_REGION 6
#define OSD_TV_STANDARD_REGION 8
#define OSD_PBC_REGION 1
#define OSD_NUM_INPUT_REGION 3
#define OSD_INVALID_REGION 5
#define OSD_INPUT_MODE_REGION 2
#define OSD_MODE_REGION 7
#define OSD_SHARPNESS_REGION 9
#define OSD_PLAY_ORDER_REGION 7
#define OSD_GOTO_REGION 3
#define OSD_DIGEST_REGION 10
#define OSD_REPEAT_REGION 10
#else /* not CUST4 */
#ifdef P315
#define OSD_FUNCTION_STATUS_REGION 6
#else
#define OSD_FUNCTION_STATUS_REGION 1
#endif
#ifdef FOUR_LINE_OSD
#define OSD_INPUT_MODE_REGION 2
#define OSD_KARAOKE_REGION 11
#define OSD_AUDFX_REGION 7
#define OSD_AUDIO_REGION 9
#define OSD_VOCAL_REGION 8
#define OSD_PBC_REGION 2
#define OSD_REPEAT_REGION 5
#else
#define OSD_INPUT_MODE_REGION 1
#define OSD_KARAOKE_REGION 14
#define OSD_AUDFX_REGION 10
#define OSD_AUDIO_REGION 10
#define OSD_VOCAL_REGION 12
#define OSD_PBC_REGION 5
#define OSD_REPEAT_REGION 8
#endif /* FOUR_LINE_OSD */
#if defined(S215)||defined(P315)
#define OSD_CD_TYPE_REGION 6
#else
#define OSD_CD_TYPE_REGION 4
#endif
#define OSD_TV_STANDARD_REGION 6
#define OSD_PLAY_ORDER_REGION 4
#define OSD_GOTO_REGION 5
#define OSD_TIME_TYPE_REGION 1
#define OSD_DIGEST_REGION 11
#ifdef P2O
#define OSD_PAUSE_REGION 1
#endif /*P2O*/
#endif /* CUST4 */
#endif /* P4O */
/* OSD_output macros */
#ifdef BILINGUAL_OSD
#define OUTOSD(area, msg1, msg2, sec) OSD_output(area, msg1, msg2, sec)
#else
#define OUTOSD(area, msg, dummy_msg, sec) OSD_output(area, msg, sec)
#endif
#define CLEAROSD(area) OSD_clear_region(area)
#define CLEARALLOSD() OSD_clear_all()
/* Used in initOsd() to set colors */
#define OSD_BLACK 0x9000
#define OSD_CLEAR 0x7000
#define OSD_BLUE 0xb7f0
#define OSD_GREEN 0x1ba0
#define OSD_PINK 0x1f40
#define OSD_RED 0xde70
#define OSD_WHITE 0x7000
#define OSD_PURPLE 0xd620
#define OSD_MAGENTA 0xf560
#define OSD_YELLOW 0x5910
#define OSD_BROWN 0xbf40
#define OSD_GRAY 0x1000
#define OSD_CYAN 0x3290
#define OSD_ORANGE 0x0c50
#define NO_OSD 2
#define CHINESE_OSD 1
#define ENGLISH_OSD 0
/* Index into line's section */
#define OSD_LINE_SECT(x) (Line_sect[x])
/* Get line index from region */
#define OSD_LINE_NUM(x) (OSD_line_index[x])
#define OSD_DRAM_YOFFSET(x) (OSD_line_index[x])
typedef struct {
char start, end;
} OSD_Region;
/* Each symbol is composed of 2 parts, a 32b part and a 16b part */
/* Small font is 24x16 */
typedef unsigned long FONT_FULL[][OSD_CHAR_HEIGHT/2];
typedef unsigned short FONT_HALF[][OSD_CHAR_HEIGHT/2];
/************************************************************************
* Global variables *
************************************************************************/
GBLDEF(unsigned char OSD_total_areas, OSD_TOTAL_AREAS);
GBLDEF(unsigned char OSD_lines_in_area_1, OSD_LINES_IN_AREA_1);
GBLDEF(unsigned char OSD_lines_in_area_2, OSD_LINES_IN_AREA_2);
GBLDEF(unsigned char OSD_regions_per_line, OSD_REGIONS_PER_LINE);
GBLDEF_0(unsigned short vid_scn_osd_vstart1, 0);
GBLDEF_0(unsigned short vid_scn_osd_vend1, 0);
GBLDEF_0(unsigned short vid_scn_osd_vstart2, 0);
GBLDEF_0(unsigned short vid_scn_osd_vend2, 0);
EXPORT unsigned char OSD_lines[][OSD_MAX_CHAR];
EXPORT OSD_Region OSD_regions[];
EXPORT unsigned short OSD_displayed_regions; /* bits indicate region(s) with */
/* message actively displayed */
EXPORT unsigned short OSD_scheduled_regions; /* bits indicate region(s) */
/* scheduled for clearing */
EXPORT unsigned short OSD_suppressed_regions; /* bits indicate region(s) */
/* whose display(s) are suppressed */
EXPORT unsigned short OSD_update_regions; /* regions to be updated in dram */
EXPORT int OSD_schedule_time[];
EXPORT unsigned char OSD_new_time[];
EXPORT unsigned char OSD_new_track[];
EXPORT unsigned char OSD_new[];
EXPORT unsigned char Line_sect[];
EXPORT unsigned char OSD_line_index[];
EXPORT unsigned short *ptrLshift;
#ifdef BILINGUAL_OSD
EXPORT unsigned char OSD_language;
#endif
#ifdef CUST4
EXPORT unsigned char OSD_blink_msg[];
EXPORT unsigned char OSD_msg_override;
EXPORT char OSD_blink_region;
EXPORT int OSD_blink_time;
#endif /*CUST4*/
#if 0
EXPORT int Ntsc_osd_vert_pos2;
EXPORT int Pal_osd_vert_pos2;
EXPORT int Ntsc_osd_vert_end2;
EXPORT int Pal_osd_vert_end2;
#endif
EXPORT unsigned int OSD_last_servo_info;
EXPORT unsigned char OSD_last_bcd_num_of_track;
EXPORT unsigned char OSD_time_minute;/* BCD time for minute*/
EXPORT unsigned char OSD_time_second;/* BCD time for second */
/************************************************************************
* Global functions *
************************************************************************/
EXPORT void initOsd(void);
#ifdef BILINGUAL_OSD
EXPORT void OSD_language_change(void);
EXPORT void OSD_output(int, unsigned char *,
unsigned char *, int);
#else
EXPORT void OSD_output(int, unsigned char *, int);
#endif
EXPORT void OSD_clear_region(int);
EXPORT void OSD_delay_clear_region(int, int);
EXPORT void OSD_update_info(void);
#ifndef BF43
EXPORT void OSD_clear_line(int, unsigned short);
#endif /* not BF43 */
EXPORT void OSD_clear_all(void);
EXPORT void OSD_init_display(void);
EXPORT void OSD_echo(void);
#if defined(CUST3)||defined(P315)
EXPORT void OSD_pitch_bar(int, int);
#else
EXPORT void OSD_pitch_bar(int);
#endif
EXPORT void OSD_time_track(unsigned short, int);
#ifdef CUST3
EXPORT void showOsdTime(int);
EXPORT void showOsdTrack(int);
#endif
EXPORT void OSD_digest_menu(int);
#ifdef CUST4
EXPORT void OSD_blinkit(int);
#endif /*CUST4*/
void OSD_copy_data(int);
void OSD_copy_one_char(unsigned int, int, int, int);
#endif /* _FSOSD_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -