📄 osdmm.h
字号:
//**************************************************************************// Copyright (c) 2003, Cheertek Inc . All rights reserved.// D300, all right reserved.// Product : WinDVD Firmware// Date : 2004.6.11// Author : Cheertek (D300 CoCo Chiang)// Purpose : Provide the UI for Media Manager.// Sources : OSDMM.c/OSDMM.h//***************************************************************************#ifndef __OSDMM_H__#define __OSDMM_H__
#define OSDMM_REGION_WIDTH 616
#define OSDMM_MIX_RATIO_BACKGROUND 28//define the maximum items in the file window.#define OSDMM_MAX_ITEM_IN_FILE_WINDOW 8//define the maximum DIR in the left file window#define OSDMM_MAX_DIR_IN_FILE_WINDOW 5// record the row numbers of filter dialog pop up menu.#define OSDMM_FILTER_DLG_ROW_NUM 4#define OSDMM_FILTER_DLG_CLOUME_NUM 2//define the max number of charachters for file string#define OSDMM_MAX_FILENAME_LENGTH 20 //define the max number of charachters for file string#define OSDMM_MAX_DIRNAME_LENGTH 16//define the time to flash an audio file.#define OSDMM_FLASH_AUDIO_FILE_TIME COUNT_300_MSEC//define the time to update audio spectrum#define OSDMM_UPDATE_AUDIO_SPECTRUM_TIME COUNT_50_MSEC
//define the pixels for tuning the OSD region in PAL mode.
#define OSDMM_TUNE_PAL_REGION_PIXELS 40//define the shift bits of amplitude for audio spectrum#define OSDMM_AMPLITUDE_SHIFT_BITS 12//define the value of the arc of the background#define OSDMM_BACKGROUND_ARC_BALUE 19 //can be 13, 15, 17, 19, 21, 23, 25.//define the value of the arc of the background#define OSDMM_BACKGROUND_OUTER_ARC_BALUE 25 //can be 13, 15, 17, 19, 21, 23, 25.//define the pixels between the outer and inner arc of the background#define OSDMM_BACKGROUND_OUTER_INNER_ARC_PIXEL (OSDMM_BACKGROUND_OUTER_ARC_BALUE-OSDMM_BACKGROUND_ARC_BALUE+2)//define the value of the arc of the info region#define OSDMM_INFO_REGION_ARC_VALUE 13//define the value of the outer arc of the info region#define OSDMM_INFO_REGION_OUTER_ARC_VALUE 15//define the pixels between the outer and inner arc of the info region#define OSDMM_INFO_REGION_OUTER_INNER_ARC_PIXEL (OSDMM_INFO_REGION_OUTER_ARC_VALUE-OSDMM_INFO_REGION_ARC_VALUE)//define the value of the arc of the button#define OSDMM_BUTTON_ARC_VALUE 13//define the value of the outer arc of the button#define OSDMM_BUTTON_OUTER_ARC_VALUE 15//define the pixels between the outer and inner arc of the button#define OSDMM_BUTTON_REGION_OUTER_INNER_ARC_PIXEL (OSDMM_BUTTON_OUTER_ARC_VALUE-OSDMM_BUTTON_ARC_VALUE)//define the value of the arc of dialog box#define OSDMM_DIALOG_BOX_ARC_VALUE 19//define the value of the outer arc of the dialog box#define OSDMM_DIALOG_BOX_OUTER_ARC_VALUE 23//define the pixels between the outer and inner arc of the dialog box#define OSDMM_DIALOG_BOX_OUTER_INNER_ARC_PIXEL (OSDMM_DIALOG_BOX_OUTER_ARC_VALUE-OSDMM_DIALOG_BOX_ARC_VALUE)//define the height for displaying each dir or file#define OSDMM_ITEM_HEIGHT 36//40//define the icon width#define OSDMM_ICON_WIDTH 32//define the icon width for dialog box. (Check box, radio box, etc.)#define OSDMM_DLG_ICON_WIDTH 28//define the height of the font in file window#define OSDMM_FILE_WINDOW_FONT_HEIGHT 26#define OSDMM_TITLE_FONT_HEIGHT 26#define OSDMM_HELP_FONT_HEIGHT 26//define the distance between the first item and the frame#define OSDMM_START_ITEM_DISTANCE_V 10//define the mode for initialize File Manager UI#define OSDMM_MODE_INITIAL_UI 0#define OSDMM_MODE_RECOVER_UI 1//Parameters for the type of separate frame#define OSDMM_HORIZONTAL_SEPARATE_FRAME 0#define OSDMM_VERTICAL_SEPARATE_FRAME 1//define the state we want to update highlight#define OSDMM_UPDATE_DRAW 0#define OSDMM_UPDATE_CLEAR 1//define the state to change the page#define OSDMM_CHANGE_PAGE_NEXT 0#define OSDMM_CHANGE_PAGE_PREVIOUS 1 //define the file window#define OSDMM_LEFT_FILE_WINDOW 0#define OSDMM_RIGHT_FILE_WINDOW 1//define the button's state#define OSDMM_BUTTON_ENABLE 0#define OSDMM_BUTTON_DISABLE 1#define OSDMM_BUTTON_HIGHLIGHT 2//Define the type of audio spectrum#define OSDMM_SPECTRUM_LOW 0#define OSDMM_SPECTRUM_HIGH 1//define the region to be cleared.#define OSDMM_TITLE_REGION 0#define OSDMM_LEFT_FILE_WINDOW_REGION 1#define OSDMM_RIGHT_FILE_WINDOW_REGION 2#define OSDMM_RIGHT_SCROLL_BAR_REGION 3#define OSDMM_LEFT_SCROLL_BAR_REGION 4#define OSDMM_RECOVER_UPPER_REGION 5#define OSDMM_RECOVER_BOTTOM_REGION 6 #define OSDMM_TITLE_SUB_REGION 7#define OSDMM_LEFT_FILE_WINDOW_CONTENT_REGION 8#define OSDMM_RIGHT_FILE_WINDOW_CONTENT_REGION 9#define OSDMM_BUTTON_REGION 10#define OSDMM_HELP_REGION 11#define OSDMM_PREVIEW_REGION 12#define OSDMM_TIME_REGION 13#define OSDMM_ALL_REGION 14#define OSDMM_DLG_REGION 15#define OSDMM_DLG_TITLE_REGION 16
//define the OSD DRAM configuration
#define OSDMM_OSD_REGION_HEIGHT 440//define the vertical starting position of the title#define OSDMM_TITLE_START_V 16//define the width of the title#define OSDMM_TITLE_PLAYING_DIR_WIDTH 124#define OSDMM_TITLE_PLAYING_FILE_WIDTH 120 //6 digits+ 1 slash#define OSDMM_TITLE_PLAYING_DIR_FILE_DISTANCE 12 #define OSDMM_TITLE_WIDTH (OSDMM_ICON_WIDTH*2+OSDMM_TITLE_PLAYING_DIR_WIDTH+OSDMM_TITLE_PLAYING_FILE_WIDTH+OSDMM_TITLE_PLAYING_DIR_FILE_DISTANCE) //344//define the position and the size of the big frame #define OSDMM_BIG_FRAME_THICKNESS 8#define OSDMM_BIG_FRAME_H 16#define OSDMM_TITLE_BIG_FRAME_DISTANCE_V 4#define OSDMM_BIG_FRAME_V (OSDMM_TITLE_START_V+OSDMM_TITLE_FONT_HEIGHT+OSDMM_TITLE_BIG_FRAME_DISTANCE_V)#define OSDMM_BIG_FRAME_WIDTH 584#define OSDMM_BIG_FRAME_HEIGHT (OSDMM_MAX_ITEM_IN_FILE_WINDOW*OSDMM_ITEM_HEIGHT+OSDMM_START_ITEM_DISTANCE_V+OSDMM_BIG_FRAME_THICKNESS*2) //define the distance between the normal display and the big frame#define OSDMM_BIG_FRAME_ND_DISTANCE 24//define the horizontal starting position of the title#define OSDMM_TITLE_START_H OSDMM_BIG_FRAME_H//define the time region to show current audio playing time.#define OSDMM_TIME_START_H (OSDMM_TITLE_START_H+OSDMM_TITLE_WIDTH)#define OSDMM_TIME_START_V OSDMM_TITLE_START_V#define OSDMM_TIME_WIDTH 96//112//define the position of the vertical separate frame#define OSDMM_VERTICAL_SEPARATE_FRAME_H 264#define OSDMM_VERTICAL_SEPARATE_FRAME_V (OSDMM_BIG_FRAME_V + OSDMM_BIG_FRAME_THICKNESS)#define OSDMM_VERTICAL_SEPARATE_FRAME_WIDTH 4#define OSDMM_VERTICAL_SEPARATE_FRAME_HEIGHT (OSDMM_BIG_FRAME_HEIGHT - OSDMM_BIG_FRAME_THICKNESS*2)#define OSDMM_VERTICAL_SEPARATE_FRAME_THICKNESS 4//define the position of the horizontal separate frame#define OSDMM_HORIZONTAL_SEPARATE_FRAME_H (OSDMM_BIG_FRAME_H+OSDMM_BIG_FRAME_THICKNESS)#define OSDMM_HORIZONTAL_SEPARATE_FRAME_V (OSDMM_ICON_LEFT_WINDOW_START_V+OSDMM_MAX_DIR_IN_FILE_WINDOW*OSDMM_ITEM_HEIGHT+1)#define OSDMM_HORIZONTAL_SEPARATE_FRAME_WIDTH (OSDMM_VERTICAL_SEPARATE_FRAME_H-OSDMM_BIG_FRAME_H-OSDMM_BIG_FRAME_THICKNESS)#define OSDMM_HORIZONTAL_SEPARATE_FRAME_HEIGHT 4#define OSDMM_HORIZONTAL_SEPARATE_FRAME_THICKNESS 4//define the distance between the icon and the big frame#define OSDMM_FRAME_ICON_DISTANCE_H 24//define the starting position of the icon in the left window#define OSDMM_ICON_LEFT_WINDOW_START_H (OSDMM_BIG_FRAME_H+OSDMM_FRAME_ICON_DISTANCE_H)#define OSDMM_ICON_LEFT_WINDOW_START_V (OSDMM_BIG_FRAME_V+OSDMM_BIG_FRAME_THICKNESS+OSDMM_START_ITEM_DISTANCE_V)//define the distance between the icon and the item#define OSDMM_ICON_ITEM_DISTANCE 8//define the starting position of the DIR in the left window.#define OSDMM_ITEM_LEFT_WINDOW_START_H (OSDMM_ICON_LEFT_WINDOW_START_H+OSDMM_ICON_WIDTH+OSDMM_ICON_ITEM_DISTANCE)#define OSDMM_ITEM_LEFT_WINDOW_START_V OSDMM_ICON_LEFT_WINDOW_START_V//define the preview region#define OSDMM_PREVIEW_WINDOW_START_H (OSDMM_BIG_FRAME_H+OSDMM_BIG_FRAME_THICKNESS)#define OSDMM_PREVIEW_WINDOW_START_V (OSDMM_HORIZONTAL_SEPARATE_FRAME_V+OSDMM_HORIZONTAL_SEPARATE_FRAME_THICKNESS)#define OSDMM_PREVIEW_WINDOW_WIDTH OSDMM_HORIZONTAL_SEPARATE_FRAME_WIDTH#define OSDMM_PREVIEW_WINDOW_HEIGHT (OSDMM_BIG_FRAME_V+OSDMM_BIG_FRAME_HEIGHT-OSDMM_HORIZONTAL_SEPARATE_FRAME_V-OSDMM_HORIZONTAL_SEPARATE_FRAME_THICKNESS-OSDMM_BIG_FRAME_THICKNESS)//define the starting position of the icon in the right window#define OSDMM_ICON_RIGHT_WINDOW_START_H 280#define OSDMM_ICON_RIGHT_WINDOW_START_V OSDMM_ICON_LEFT_WINDOW_START_V//define the starting position of the item in the right window.#define OSDMM_ITEM_RIGHT_WINDOW_START_H (OSDMM_ICON_RIGHT_WINDOW_START_H+OSDMM_ICON_WIDTH+OSDMM_ICON_ITEM_DISTANCE)#define OSDMM_ITEM_RIGHT_WINDOW_START_V OSDMM_ICON_LEFT_WINDOW_START_V//define the common attribute for the scroll bar#define OSDMM_SCROLL_BAR_WIDTH 16#define OSDMM_SCROLL_BAR_V (OSDMM_BIG_FRAME_V+OSDMM_BIG_FRAME_THICKNESS)//define the position for the right scroll bar#define OSDMM_RIGHT_SCROLL_BAR_H (OSDMM_BIG_FRAME_H + OSDMM_BIG_FRAME_WIDTH-OSDMM_BIG_FRAME_THICKNESS-OSDMM_SCROLL_BAR_WIDTH)#define OSDMM_RIGHT_SCROLL_BAR_HEIGHT (OSDMM_BIG_FRAME_HEIGHT-OSDMM_BIG_FRAME_THICKNESS*2)//define the position for the left scroll bar#define OSDMM_LEFT_SCROLL_BAR_H (OSDMM_VERTICAL_SEPARATE_FRAME_H-OSDMM_SCROLL_BAR_WIDTH)#define OSDMM_LEFT_SCROLL_BAR_HEIGHT (OSDMM_HORIZONTAL_SEPARATE_FRAME_V - OSDMM_BIG_FRAME_V - OSDMM_BIG_FRAME_THICKNESS - OSDMM_HORIZONTAL_SEPARATE_FRAME_THICKNESS)//define the position of the help string. #define OSDMM_BACKGROUND_HELP_DISTANCE_H 4 #define OSDMM_HELP_START_H (OSDMM_BIG_FRAME_H+OSDMM_BACKGROUND_HELP_DISTANCE_H)
#ifndef NO_MM_BUTTON //CoCo2.38#define OSDMM_HELP_WIDTH 320
#else
#define OSDMM_HELP_WIDTH (OSDMM_BIG_FRAME_WIDTH-OSDMM_BACKGROUND_HELP_DISTANCE_H*2)
#endif //NO_MM_BUTTON //CoCo2.38
#define OSDMM_COPY_HELP_WIDTH 320#define OSDMM_HELP_HEIGHT 26#define OSDMM_FRAME_HELP_DISTANCE 8#define OSDMM_HELP_START_V (OSDMM_BIG_FRAME_V+OSDMM_BIG_FRAME_HEIGHT+OSDMM_FRAME_HELP_DISTANCE)#define OSDMM_HELP_REGION_STRING_DISTANCE 16#define OSDMM_HELP_STRING_START_H (OSDMM_HELP_START_H+OSDMM_HELP_REGION_STRING_DISTANCE)#define OSDMM_HELP_STRING_START_V OSDMM_HELP_START_V#define OSDMM_HELP_AUDIO_DISTANCE 16//define the distance of the background and the content#define OSDMM_BACKGROUND_CONTENT_DISTANCE 8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -