| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2006, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: $ |
|---|
| 11 | * $brcm_Revision: $ |
|---|
| 12 | * $brcm_Date: $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: $ |
|---|
| 19 | * |
|---|
| 20 | ***************************************************************************/ |
|---|
| 21 | #ifndef BSCREEN_H__ |
|---|
| 22 | #define BSCREEN_H__ |
|---|
| 23 | |
|---|
| 24 | #include "bsettop.h" |
|---|
| 25 | #include "bapp_str_table.h" |
|---|
| 26 | #include "bir_codes.h" |
|---|
| 27 | #include "bapp_palette.h" |
|---|
| 28 | //#include "bscreen_diag.h" |
|---|
| 29 | |
|---|
| 30 | #ifdef CUSTOMER_THOMSON |
|---|
| 31 | #define NUMBER_BUTTONS |
|---|
| 32 | #endif |
|---|
| 33 | |
|---|
| 34 | /* Screen defines */ |
|---|
| 35 | #define APP_DEFAULT_YIELD (50) /* Milliseconds */ |
|---|
| 36 | #define SCREEN_DEFAULT_TIMEOUT (6 *10 * 60 * 1000) /* Milliseconds */ |
|---|
| 37 | #define HIDE_BANNER_TIMEOUT (10 * 1000) /* Milliseconds */ |
|---|
| 38 | #define BANNER_SMALL_TIMEOUT (5000) /* Milliseconds */ |
|---|
| 39 | #define BANNER_BIG_TIMEOUT (10 * 1000) /* Milliseconds */ |
|---|
| 40 | #define BANNER_10_KEY_TIMEOUT (2 * 1000) /* Milliseconds */ |
|---|
| 41 | #define BANNER_VOLUME_TIMEOUT (1 * 1000) /* Milliseconds */ |
|---|
| 42 | #define BANNER_SAP_TIMEOUT (2 * 1000) /* Milliseconds */ |
|---|
| 43 | #define BANNER_CC_TIMEOUT (2 * 1000) /* Milliseconds */ |
|---|
| 44 | #define BANNER_AR_TIMEOUT (2 * 1000) |
|---|
| 45 | |
|---|
| 46 | #define SCREENSAVER_IMAGE_TIMEOUT (3 * 1000) /* Milliseconds */ |
|---|
| 47 | #define VOLUME_INCREMENT (1) |
|---|
| 48 | #if 1 |
|---|
| 49 | #define AUTO_POWER_OFF_TIMEOUT 4 * 60 * 60 * 200 /* ticks 200 = 1s*/ |
|---|
| 50 | #else |
|---|
| 51 | #define AUTO_POWER_OFF_TIMEOUT (4 * 60 * 60 * 100) /* Ticks */ |
|---|
| 52 | #endif |
|---|
| 53 | #define AUTO_POWER_OFF_RESTART_TIMEOUT (1000 * 10) /* Milliseconds */ |
|---|
| 54 | |
|---|
| 55 | /* Default to one repeat event every 3/4 second then accelerate */ |
|---|
| 56 | #define DEFAULT_REPEAT_TIMEOUT ((3 * g_ticks_per_second) / 4) |
|---|
| 57 | #define MAX_REPEAT_ACCEL 8 |
|---|
| 58 | #define REPEAT_INC 4 |
|---|
| 59 | #define KEY_UP 0x40000000 |
|---|
| 60 | #ifdef ACB612/*janzy@20121115,OSD TimeOut*/ |
|---|
| 61 | #define MENU_TIMEOUT 30*1000 /* Milliseconds */ |
|---|
| 62 | #define NO_SIGNAL_TIMEOUT 15*60*200 /* ticks 200 = 1s*/ |
|---|
| 63 | #endif |
|---|
| 64 | |
|---|
| 65 | /* Layout enums */ |
|---|
| 66 | typedef enum bscreen_layout_t |
|---|
| 67 | { |
|---|
| 68 | #if (DISPLAY_NTSC || DISPLAY_PAL_M) |
|---|
| 69 | eHEIGHT = 480, |
|---|
| 70 | #elif (DISPLAY_PAL || DISPLAY_PAL_NC) |
|---|
| 71 | eHEIGHT = 576, |
|---|
| 72 | #else |
|---|
| 73 | #error display format (NTSC, PAL, PAL-M or PAL-NC) must be defined |
|---|
| 74 | #endif |
|---|
| 75 | |
|---|
| 76 | eWIDTH = 720, |
|---|
| 77 | eSCREEN_ACTION_SAFE_PERCENT = 10, |
|---|
| 78 | eSCREEN_ACTION_SAFE_X = (eWIDTH * eSCREEN_ACTION_SAFE_PERCENT / 100), |
|---|
| 79 | eSCREEN_ACTION_SAFE_Y = (eHEIGHT * eSCREEN_ACTION_SAFE_PERCENT / 100), |
|---|
| 80 | eSCREEN_ACTION_SAFE_WIDTH = (eWIDTH - (2 * eSCREEN_ACTION_SAFE_X)), |
|---|
| 81 | eSCREEN_ACTION_SAFE_HEIGHT = (eHEIGHT - (2 * eSCREEN_ACTION_SAFE_Y)), |
|---|
| 82 | |
|---|
| 83 | eINFO_AREA_HEIGHT = 30, |
|---|
| 84 | eINFO_AREA_Y = (eHEIGHT - eSCREEN_ACTION_SAFE_Y - eINFO_AREA_HEIGHT), |
|---|
| 85 | |
|---|
| 86 | eMENU_TITLE_AREA_HEIGHT_0_LINE = 60, |
|---|
| 87 | eMENU_TITLE_AREA_HEIGHT_1_LINE = 80, |
|---|
| 88 | eMENU_TITLE_AREA_HEIGHT_2_LINE = 100, |
|---|
| 89 | eMENU_TITLE_AREA_HEIGHT_3_LINE = 120, |
|---|
| 90 | eMENU_TITLE_AREA_HEIGHT_4_LINE = 140, |
|---|
| 91 | |
|---|
| 92 | eMENU_TITLE_TEXT_X = (20 + eSCREEN_ACTION_SAFE_X), |
|---|
| 93 | //eMENU_TITLE_TEXT_Y = (14 + eSCREEN_ACTION_SAFE_Y), |
|---|
| 94 | eMENU_TITLE_TEXT_Y = (10 + eSCREEN_ACTION_SAFE_Y), |
|---|
| 95 | eMENU_TITLE_TEXT_WIDTH = (eSCREEN_ACTION_SAFE_WIDTH - 2 * (eMENU_TITLE_TEXT_X - eSCREEN_ACTION_SAFE_X)), |
|---|
| 96 | //eMENU_TITLE_TEXT_HEIGHT = 40, |
|---|
| 97 | eMENU_TITLE_TEXT_HEIGHT = 30, |
|---|
| 98 | |
|---|
| 99 | eMENU_TITLE_DESC_TEXT_X = (20 + eMENU_TITLE_TEXT_X), |
|---|
| 100 | eMENU_TITLE_DESC_TEXT_Y = (30 + eMENU_TITLE_TEXT_Y), |
|---|
| 101 | eMENU_TITLE_DESC_TEXT_WIDTH = (eWIDTH - eMENU_TITLE_DESC_TEXT_X - eMENU_TITLE_TEXT_X), |
|---|
| 102 | //eMENU_TITLE_DESC_TEXT_HEIGHT = 85, |
|---|
| 103 | eMENU_TITLE_DESC_TEXT_HEIGHT = 90, |
|---|
| 104 | eMENU_TITLE_DESC_TEXT_SPACING = 4, |
|---|
| 105 | |
|---|
| 106 | eMENU_PICTURES_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 107 | eMENU_PICTURES_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 10), |
|---|
| 108 | eMENU_PICTURES_BUTTON_WIDTH = 190, |
|---|
| 109 | eMENU_PICTURES_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_PICTURES_FIRST_BUTTON_X - eMENU_PICTURES_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 110 | eMENU_PICTURES_BUTTON_DESC_HEIGHT = 95, |
|---|
| 111 | //eMENU_PICTURES_BUTTON_INC_Y = 75, |
|---|
| 112 | eMENU_PICTURES_BUTTON_INC_Y = 60, |
|---|
| 113 | |
|---|
| 114 | eMENU_SOUND_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 40), |
|---|
| 115 | eMENU_SOUND_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 10), |
|---|
| 116 | eMENU_SOUND_BUTTON_WIDTH = 186, |
|---|
| 117 | eMENU_SOUND_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_SOUND_FIRST_BUTTON_X - eMENU_SOUND_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 118 | eMENU_SOUND_BUTTON_DESC_HEIGHT = 75, |
|---|
| 119 | eMENU_SOUND_BUTTON_INC_Y = 60, |
|---|
| 120 | |
|---|
| 121 | eMENU_AV_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 70), |
|---|
| 122 | eMENU_AV_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 70), |
|---|
| 123 | eMENU_AV_BUTTON_WIDTH = 200, |
|---|
| 124 | eMENU_AV_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_AV_FIRST_BUTTON_X - eMENU_AV_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 125 | eMENU_AV_BUTTON_DESC_HEIGHT = 75, |
|---|
| 126 | eMENU_AV_BUTTON_INC_Y = 60, |
|---|
| 127 | |
|---|
| 128 | eMENU_LANGUAGE_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 129 | eMENU_LANGUAGE_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 15), |
|---|
| 130 | eMENU_LANGUAGE_BUTTON_WIDTH = 150, |
|---|
| 131 | eMENU_LANGUAGE_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_LANGUAGE_FIRST_BUTTON_X - eMENU_LANGUAGE_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 132 | eMENU_LANGUAGE_BUTTON_DESC_HEIGHT = 75, |
|---|
| 133 | eMENU_LANGUAGE_BUTTON_INC_Y = 60, |
|---|
| 134 | |
|---|
| 135 | eMENU_CAPTIONS_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 136 | eMENU_CAPTIONS_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 15), |
|---|
| 137 | eMENU_CAPTIONS_BUTTON_HEIGHT = 30, |
|---|
| 138 | eMENU_CAPTIONS_BUTTON_WIDTH = 150, |
|---|
| 139 | eMENU_CAPTIONS_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_CAPTIONS_FIRST_BUTTON_X - eMENU_CAPTIONS_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 140 | eMENU_CAPTIONS_BUTTON_DESC_HEIGHT = 75, |
|---|
| 141 | eMENU_CAPTIONS_BUTTON_INC_Y = 60, |
|---|
| 142 | eMENU_CAPTIONS_ADVANCED_BUTTON_WIDTH = 180, |
|---|
| 143 | eMENU_CAPTIONS_ADVANCED_FIRST_BUTTON_Y = eMENU_CAPTIONS_FIRST_BUTTON_Y - 40, |
|---|
| 144 | eMENU_CAPTIONS_ADVANCED_BUTTON_INC_Y = 33, |
|---|
| 145 | eMENU_CAPTIONS_ADVANCED_BUTTON_HEIGHT = 30, |
|---|
| 146 | eMENU_CAPTIONS_FONT_OPTIONS_BUTTON_WIDTH = 170, |
|---|
| 147 | eMENU_CAPTIONS_FONT_OPTIONS_FIRST_BUTTON_Y = eMENU_CAPTIONS_FIRST_BUTTON_Y - 24, |
|---|
| 148 | eMENU_CAPTIONS_FONT_OPTIONS_BUTTON_INC_Y = 50, |
|---|
| 149 | eMENU_CAPTIONS_FONT_OPTIONS_BUTTON_HEIGHT = 40, |
|---|
| 150 | eMENU_CAPTIONS_BACK_OPTIONS_BUTTON_WIDTH = 170, |
|---|
| 151 | eMENU_CAPTIONS_BACK_OPTIONS_FIRST_BUTTON_Y = eMENU_CAPTIONS_FIRST_BUTTON_Y - 16, |
|---|
| 152 | eMENU_CAPTIONS_BACK_OPTIONS_BUTTON_HEIGHT = 40, |
|---|
| 153 | eMENU_CAPTIONS_FONT_BUTTON_WIDTH = 190, |
|---|
| 154 | eMENU_CAPTIONS_FONT_FIRST_BUTTON_Y = eMENU_CAPTIONS_FIRST_BUTTON_Y - 32, |
|---|
| 155 | eMENU_CAPTIONS_FONT_BUTTON_INC_Y = 33, |
|---|
| 156 | eMENU_CAPTIONS_FONT_COLOR_BUTTON_INC_Y = 29, |
|---|
| 157 | eMENU_CAPTIONS_FONT_BUTTON_HEIGHT = 30, |
|---|
| 158 | eMENU_CAPTIONS_FONT_COLOR_BUTTON_HEIGHT = 25, |
|---|
| 159 | eMENU_CAPTIONS_FONT_FIRST_STYLE_BUTTON_Y = eMENU_CAPTIONS_FIRST_BUTTON_Y - 16, |
|---|
| 160 | eMENU_CAPTIONS_FONT_FIRST_SIZE_BUTTON_Y = eMENU_CAPTIONS_FIRST_BUTTON_Y - 16, |
|---|
| 161 | eMENU_CAPTIONS_FONT_STYLE_BUTTON_WIDTH = 170, |
|---|
| 162 | eMENU_CAPTIONS_OPACITY_FIRST_BUTTON_Y = eMENU_CAPTIONS_FIRST_BUTTON_Y - 26, |
|---|
| 163 | eMENU_CAPTIONS_FONT_OPACITY_BUTTON_WIDTH = 200, |
|---|
| 164 | eMENU_CAPTIONS_OPACITY_BUTTON_INC_Y = 50, |
|---|
| 165 | eMENU_CAPTIONS_RESET_FIRST_BUTTON_Y = eMENU_CAPTIONS_FIRST_BUTTON_Y + 15, |
|---|
| 166 | eMENU_CAPTIONS_EDGE_TYPE_FIRST_BUTTON_Y= eMENU_CAPTIONS_FIRST_BUTTON_Y - 40, |
|---|
| 167 | eMENU_CAPTIONS_EDGE_TYPE_BUTTON_WIDTH = 216, |
|---|
| 168 | eMENU_CAPTIONS_EDGE_TYPE_BUTTON_INC_Y = 40, |
|---|
| 169 | |
|---|
| 170 | eMENU_SETUP_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 171 | #ifdef CONFIG_EIA_708 |
|---|
| 172 | eMENU_SETUP_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 22), |
|---|
| 173 | eMENU_SETUP_BUTTON_INC_Y = 38, |
|---|
| 174 | #else |
|---|
| 175 | eMENU_SETUP_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 16), |
|---|
| 176 | eMENU_SETUP_BUTTON_INC_Y = 42, |
|---|
| 177 | #endif |
|---|
| 178 | eMENU_SETUP_BUTTON_WIDTH = 200, |
|---|
| 179 | eMENU_SETUP_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_SETUP_FIRST_BUTTON_X - eMENU_SETUP_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 180 | eMENU_SETUP_BUTTON_DESC_HEIGHT = 75, |
|---|
| 181 | |
|---|
| 182 | eMENU_CH_SCAN_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 183 | eMENU_CH_SCAN_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 35), |
|---|
| 184 | eMENU_CH_SCAN_BUTTON_WIDTH = 160, |
|---|
| 185 | eMENU_CH_SCAN_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_CH_SCAN_FIRST_BUTTON_X - eMENU_CH_SCAN_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), eMENU_CH_SCAN_BUTTON_DESC_HEIGHT = 75, |
|---|
| 186 | //eMENU_CH_SCAN_BUTTON_INC_Y = 75, |
|---|
| 187 | eMENU_CH_SCAN_BUTTON_INC_Y = 60, |
|---|
| 188 | |
|---|
| 189 | eMENU_RESET_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 190 | eMENU_RESET_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 25), |
|---|
| 191 | eMENU_RESET_BUTTON_WIDTH = 168, |
|---|
| 192 | eMENU_RESET_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_RESET_FIRST_BUTTON_X - eMENU_RESET_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 193 | eMENU_RESET_BUTTON_DESC_HEIGHT = 75, |
|---|
| 194 | eMENU_RESET_BUTTON_INC_Y = 75, |
|---|
| 195 | |
|---|
| 196 | eMENU_WIZ_WELCOME_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 197 | eMENU_WIZ_WELCOME_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 65), |
|---|
| 198 | eMENU_WIZ_WELCOME_BUTTON_WIDTH = 150, |
|---|
| 199 | eMENU_WIZ_WELCOME_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_WIZ_WELCOME_FIRST_BUTTON_X - eMENU_WIZ_WELCOME_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 200 | eMENU_WIZ_WELCOME_BUTTON_DESC_HEIGHT = 75, |
|---|
| 201 | eMENU_WIZ_WELCOME_BUTTON_INC_Y = 75, |
|---|
| 202 | |
|---|
| 203 | eMENU_WIZ_ANTENNA_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 204 | eMENU_WIZ_ANTENNA_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 45), |
|---|
| 205 | eMENU_WIZ_ANTENNA_BUTTON_WIDTH = 150, |
|---|
| 206 | eMENU_WIZ_ANTENNA_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_WIZ_ANTENNA_FIRST_BUTTON_X - eMENU_WIZ_ANTENNA_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 207 | eMENU_WIZ_ANTENNA_BUTTON_DESC_HEIGHT = 75, |
|---|
| 208 | eMENU_WIZ_ANTENNA_BUTTON_INC_Y = 60, |
|---|
| 209 | |
|---|
| 210 | eMENU_WIZ_CH_SCAN_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 211 | eMENU_WIZ_CH_SCAN_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 25), |
|---|
| 212 | eMENU_WIZ_CH_SCAN_BUTTON_WIDTH = 150, |
|---|
| 213 | eMENU_WIZ_CH_SCAN_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_WIZ_CH_SCAN_FIRST_BUTTON_X - eMENU_WIZ_CH_SCAN_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 214 | eMENU_WIZ_CH_SCAN_BUTTON_DESC_HEIGHT = 75, |
|---|
| 215 | eMENU_WIZ_CH_SCAN_BUTTON_INC_Y = 60, |
|---|
| 216 | |
|---|
| 217 | eMENU_WIZ_DONE_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 218 | eMENU_WIZ_DONE_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 65), |
|---|
| 219 | eMENU_WIZ_DONE_BUTTON_WIDTH = 150, |
|---|
| 220 | eMENU_WIZ_DONE_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_WIZ_DONE_FIRST_BUTTON_X - eMENU_WIZ_DONE_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 221 | eMENU_WIZ_DONE_BUTTON_DESC_HEIGHT = 75, |
|---|
| 222 | eMENU_WIZ_DONE_BUTTON_INC_Y = 75, |
|---|
| 223 | |
|---|
| 224 | eMENU_AUTO_POWER_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 225 | eMENU_AUTO_POWER_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT-36), |
|---|
| 226 | eMENU_AUTO_POWER_BUTTON_WIDTH = 180, |
|---|
| 227 | eMENU_AUTO_POWER_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_AUTO_POWER_FIRST_BUTTON_X - eMENU_AUTO_POWER_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 228 | eMENU_AUTO_POWER_BUTTON_DESC_HEIGHT = 75, |
|---|
| 229 | eMENU_AUTO_POWER_BUTTON_INC_Y = 65, |
|---|
| 230 | |
|---|
| 231 | eMENU_TIMEZONE_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 232 | #ifndef ACB612 |
|---|
| 233 | eMENU_TIMEZONE_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT-40), |
|---|
| 234 | #else |
|---|
| 235 | eMENU_TIMEZONE_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT-20), |
|---|
| 236 | #endif |
|---|
| 237 | eMENU_TIMEZONE_BUTTON_WIDTH = 200, |
|---|
| 238 | eMENU_TIMEZONE_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_TIMEZONE_FIRST_BUTTON_X - eMENU_TIMEZONE_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 239 | eMENU_TIMEZONE_BUTTON_DESC_HEIGHT = 75, |
|---|
| 240 | eMENU_TIMEZONE_BUTTON_INC_Y = 45, |
|---|
| 241 | |
|---|
| 242 | eMENU_RATINGS_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 243 | eMENU_RATINGS_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 10), |
|---|
| 244 | eMENU_RATINGS_BUTTON_WIDTH = 196, |
|---|
| 245 | eMENU_RATINGS_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_RATINGS_FIRST_BUTTON_X - eMENU_RATINGS_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 246 | eMENU_RATINGS_BUTTON_DESC_HEIGHT = 75, |
|---|
| 247 | eMENU_RATINGS_BUTTON_INC_Y = 60, |
|---|
| 248 | |
|---|
| 249 | eMENU_RATINGS_LOCK_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 250 | eMENU_RATINGS_LOCK_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT), |
|---|
| 251 | eMENU_RATINGS_LOCK_BUTTON_WIDTH = 200, |
|---|
| 252 | eMENU_RATINGS_LOCK_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_RATINGS_LOCK_FIRST_BUTTON_X - eMENU_RATINGS_LOCK_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 253 | eMENU_RATINGS_LOCK_BUTTON_DESC_HEIGHT = 75, |
|---|
| 254 | eMENU_RATINGS_LOCK_BUTTON_INC_Y = 60, |
|---|
| 255 | |
|---|
| 256 | eMENU_RATINGS_LIMITS_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 257 | eMENU_RATINGS_LIMITS_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 5), |
|---|
| 258 | eMENU_RATINGS_LIMITS_BUTTON_WIDTH = 156, |
|---|
| 259 | eMENU_RATINGS_LIMITS_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_RATINGS_LIMITS_FIRST_BUTTON_X - eMENU_RATINGS_LIMITS_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 260 | eMENU_RATINGS_LIMITS_BUTTON_DESC_HEIGHT= 75, |
|---|
| 261 | eMENU_RATINGS_LIMITS_BUTTON_INC_Y = 55, |
|---|
| 262 | |
|---|
| 263 | eMENU_RATINGS_TV_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 50), |
|---|
| 264 | |
|---|
| 265 | eMENU_RATINGS_RRT_DIM_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 110), |
|---|
| 266 | eMENU_RATINGS_RRT_DIM_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 48), |
|---|
| 267 | eMENU_RATINGS_RRT_DIM_BUTTON_INC_Y = 28, |
|---|
| 268 | eMENU_RATINGS_RRT_DIM_BUTTON_WIDTH = 350, |
|---|
| 269 | eMENU_RATINGS_RRT_DIM_BUTTON_HEIGHT = 25, |
|---|
| 270 | |
|---|
| 271 | eMENU_RATINGS_RRT_VAL_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 110), |
|---|
| 272 | eMENU_RATINGS_RRT_VAL_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 48), |
|---|
| 273 | eMENU_RATINGS_RRT_VAL_BUTTON_INC_Y = 28, |
|---|
| 274 | eMENU_RATINGS_RRT_VAL_BUTTON_WIDTH = 350, |
|---|
| 275 | eMENU_RATINGS_RRT_VAL_BUTTON_HEIGHT = 25, |
|---|
| 276 | |
|---|
| 277 | eMENU_RATINGS_RRT_UPDATE_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 278 | eMENU_RATINGS_RRT_UPDATE_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 15), |
|---|
| 279 | eMENU_RATINGS_RRT_UPDATE_BUTTON_INC_Y = 75, |
|---|
| 280 | eMENU_RATINGS_RRT_UPDATE_BUTTON_WIDTH = 200, |
|---|
| 281 | eMENU_RATINGS_TV_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 35), |
|---|
| 282 | |
|---|
| 283 | eMENU_RATINGS_TV_DLSV_FIRST_BUTTON_X = eMENU_RATINGS_TV_FIRST_BUTTON_X + 80, |
|---|
| 284 | eMENU_RATINGS_TV_GRID_BUTTON_WIDTH = 120, |
|---|
| 285 | eMENU_RATINGS_TV_DLSV_GRID_BUTTON_WIDTH= 70, |
|---|
| 286 | eMENU_RATINGS_TV_BUTTON_WIDTH = 150, |
|---|
| 287 | eMENU_RATINGS_TV_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_RATINGS_TV_FIRST_BUTTON_X - eMENU_RATINGS_TV_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 288 | eMENU_RATINGS_TV_BUTTON_DESC_HEIGHT = 75, |
|---|
| 289 | eMENU_RATINGS_TV_BUTTON_INC_Y = 40, |
|---|
| 290 | |
|---|
| 291 | eMENU_RATINGS_MOVIES_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 15), |
|---|
| 292 | eMENU_RATINGS_MOVIES_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 35), |
|---|
| 293 | eMENU_RATINGS_MOVIES_BUTTON_WIDTH = 126, |
|---|
| 294 | eMENU_RATINGS_MOVIES_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_RATINGS_MOVIES_FIRST_BUTTON_X - eMENU_RATINGS_MOVIES_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 295 | eMENU_RATINGS_MOVIES_BUTTON_DESC_HEIGHT= 75, |
|---|
| 296 | eMENU_RATINGS_MOVIES_BUTTON_INC_Y = 33, |
|---|
| 297 | |
|---|
| 298 | eMENU_CONTENT_MA_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 30), |
|---|
| 299 | eMENU_CONTENT_MA_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 20), |
|---|
| 300 | eMENU_CONTENT_MA_BUTTON_WIDTH = 140, |
|---|
| 301 | eMENU_CONTENT_MA_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_CONTENT_MA_FIRST_BUTTON_X - eMENU_CONTENT_MA_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 302 | eMENU_CONTENT_MA_BUTTON_DESC_HEIGHT = 75, |
|---|
| 303 | eMENU_CONTENT_MA_BUTTON_INC_Y = 50, |
|---|
| 304 | |
|---|
| 305 | eMENU_CONTENT_14_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 60), |
|---|
| 306 | eMENU_CONTENT_14_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 40), |
|---|
| 307 | eMENU_CONTENT_14_BUTTON_WIDTH = 140, |
|---|
| 308 | eMENU_CONTENT_14_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_CONTENT_14_FIRST_BUTTON_X - eMENU_CONTENT_14_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 309 | eMENU_CONTENT_14_BUTTON_DESC_HEIGHT = 75, |
|---|
| 310 | eMENU_CONTENT_14_BUTTON_INC_Y = 50, |
|---|
| 311 | |
|---|
| 312 | eMENU_CONTENT_PG_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 50), |
|---|
| 313 | eMENU_CONTENT_PG_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 40), |
|---|
| 314 | eMENU_CONTENT_PG_BUTTON_WIDTH = 140, |
|---|
| 315 | eMENU_CONTENT_PG_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_CONTENT_PG_FIRST_BUTTON_X - eMENU_CONTENT_PG_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 316 | eMENU_CONTENT_PG_BUTTON_DESC_HEIGHT = 75, |
|---|
| 317 | eMENU_CONTENT_PG_BUTTON_INC_Y = 50, |
|---|
| 318 | |
|---|
| 319 | eMENU_CONTENT_Y7_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 70), |
|---|
| 320 | eMENU_CONTENT_Y7_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT - 10), |
|---|
| 321 | eMENU_CONTENT_Y7_BUTTON_WIDTH = 140, |
|---|
| 322 | eMENU_CONTENT_Y7_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_CONTENT_Y7_FIRST_BUTTON_X - eMENU_CONTENT_Y7_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 323 | eMENU_CONTENT_Y7_BUTTON_DESC_HEIGHT = 75, |
|---|
| 324 | eMENU_CONTENT_Y7_BUTTON_INC_Y = 50, |
|---|
| 325 | |
|---|
| 326 | ePIN_INC_X = 10, |
|---|
| 327 | ePIN_WIDTH = 76, |
|---|
| 328 | ePIN_HEIGHT = 76, |
|---|
| 329 | ePIN_X = eSCREEN_ACTION_SAFE_X + (eSCREEN_ACTION_SAFE_WIDTH / 2) - (((ePIN_WIDTH * 4) + (ePIN_INC_X * 3)) / 2) + 1, |
|---|
| 330 | ePIN_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 40), |
|---|
| 331 | |
|---|
| 332 | eMENU_WRONG_PIN_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 20), |
|---|
| 333 | eMENU_WRONG_PIN_FIRST_BUTTON_Y = (eMENU_TITLE_DESC_TEXT_Y + eMENU_TITLE_DESC_TEXT_HEIGHT + 30), |
|---|
| 334 | eMENU_WRONG_PIN_BUTTON_WIDTH = 140, |
|---|
| 335 | eMENU_WRONG_PIN_BUTTON_DESC_WIDTH = (eWIDTH - eMENU_WRONG_PIN_FIRST_BUTTON_X - eMENU_WRONG_PIN_BUTTON_WIDTH - eSCREEN_ACTION_SAFE_X), |
|---|
| 336 | eMENU_WRONG_PIN_BUTTON_DESC_HEIGHT = 75, |
|---|
| 337 | eMENU_WRONG_PIN_BUTTON_INC_Y = 75, |
|---|
| 338 | |
|---|
| 339 | eMENU_RETRY_BUTTON_WIDTH = 140, |
|---|
| 340 | |
|---|
| 341 | eBANNER_WIDTH_OFFSET = 30, |
|---|
| 342 | eBANNER_X = eSCREEN_ACTION_SAFE_X + eBANNER_WIDTH_OFFSET, |
|---|
| 343 | eBANNER_Y = eSCREEN_ACTION_SAFE_Y + 20, |
|---|
| 344 | eBANNER_WIDTH = eSCREEN_ACTION_SAFE_WIDTH - (2 * eBANNER_WIDTH_OFFSET), |
|---|
| 345 | eBANNER_SMALL_HEIGHT = 110, |
|---|
| 346 | eBANNER_LARGE_HEIGHT = 130, |
|---|
| 347 | eBANNER_TITLE_X = eBANNER_X + 10, |
|---|
| 348 | eBANNER_TITLE_Y = eBANNER_Y + 10, |
|---|
| 349 | eBANNER_TITLE_WIDTH = eBANNER_WIDTH - 135, |
|---|
| 350 | eBANNER_TITLE_HEIGHT = 20, |
|---|
| 351 | eBANNER_CH_NUM_WIDTH = 130, |
|---|
| 352 | eBANNER_CH_NUM_HEIGHT = eBANNER_TITLE_HEIGHT, |
|---|
| 353 | eBANNER_CH_NUM_X = eBANNER_X + eBANNER_WIDTH - eBANNER_CH_NUM_WIDTH + 24, |
|---|
| 354 | eBANNER_CH_NUM_Y = eBANNER_TITLE_Y, |
|---|
| 355 | eBANNER_CALLSIGN_WIDTH = 130, |
|---|
| 356 | eBANNER_CALLSIGN_HEIGHT = eBANNER_TITLE_HEIGHT, |
|---|
| 357 | eBANNER_CALLSIGN_X = eBANNER_X + eBANNER_WIDTH - eBANNER_CALLSIGN_WIDTH + 24, |
|---|
| 358 | eBANNER_CALLSIGN_Y = eBANNER_TITLE_Y + eBANNER_CH_NUM_HEIGHT + 5, |
|---|
| 359 | eBANNER_NEXT_TITLE_X = eBANNER_X + 100, |
|---|
| 360 | eBANNER_NEXT_TITLE_Y = eBANNER_CALLSIGN_Y, |
|---|
| 361 | eBANNER_EPISODE_WIDTH = 380, |
|---|
| 362 | eBANNER_EPISODE_HEIGHT = eBANNER_TITLE_HEIGHT, |
|---|
| 363 | eBANNER_EPISODE_X = eBANNER_TITLE_X, |
|---|
| 364 | eBANNER_EPISODE_Y = eBANNER_CALLSIGN_Y, |
|---|
| 365 | eBANNER_TIME_WIDTH = 130, |
|---|
| 366 | eBANNER_TIME_HEIGHT = eBANNER_TITLE_HEIGHT, |
|---|
| 367 | eBANNER_TIME_X = eBANNER_X + eBANNER_WIDTH - eBANNER_TIME_WIDTH + 24, |
|---|
| 368 | eBANNER_TIME_Y = eBANNER_CALLSIGN_Y + eBANNER_CALLSIGN_HEIGHT + 5, |
|---|
| 369 | eBANNER_RATINGS_WIDTH = eBANNER_WIDTH, |
|---|
| 370 | eBANNER_RATINGS_HEIGHT = eBANNER_TITLE_HEIGHT, |
|---|
| 371 | eBANNER_RATINGS_X = eBANNER_TITLE_X, |
|---|
| 372 | eBANNER_RATINGS_Y = eBANNER_TIME_Y + eBANNER_TIME_HEIGHT + 2, |
|---|
| 373 | eBANNER_SAP_WIDTH = 40, |
|---|
| 374 | eBANNER_SAP_HEIGHT = eBANNER_TITLE_HEIGHT, |
|---|
| 375 | eBANNER_SAP_X = eBANNER_TIME_X - eBANNER_SAP_WIDTH - 5, |
|---|
| 376 | eBANNER_SAP_Y = eBANNER_TIME_Y, |
|---|
| 377 | eBANNER_DESC_WIDTH = eBANNER_WIDTH - 20, |
|---|
| 378 | eBANNER_DESC_HEIGHT = eBANNER_LARGE_HEIGHT - 60, |
|---|
| 379 | eBANNER_DESC_X = eBANNER_X + 10, |
|---|
| 380 | eBANNER_DESC_Y = eBANNER_Y + eBANNER_SMALL_HEIGHT + 4, |
|---|
| 381 | eBANNER_DESC_LINE_SPACING = 4, |
|---|
| 382 | eBANNER_STATUS_HEIGHT = 125, |
|---|
| 383 | eBANNER_STATUS_TITLE_ONLY_HEIGHT = 40, |
|---|
| 384 | eBANNER_STATUS_WIDTH = eBANNER_WIDTH, |
|---|
| 385 | eBANNER_STATUS_X = eBANNER_X, |
|---|
| 386 | eBANNER_STATUS_Y = eSCREEN_ACTION_SAFE_Y + eSCREEN_ACTION_SAFE_HEIGHT - eBANNER_STATUS_HEIGHT - 10, |
|---|
| 387 | eBANNER_STATUS_TITLE_ONLY_Y_OFFSET = 65, |
|---|
| 388 | eBANNER_POPUP_TITLE_X = eBANNER_STATUS_X + 10, |
|---|
| 389 | eBANNER_POPUP_TITLE_Y = eBANNER_STATUS_Y + 10, |
|---|
| 390 | eBANNER_POPUP_TITLE_WIDTH = eBANNER_STATUS_WIDTH - 125, |
|---|
| 391 | eBANNER_POPUP_VOL_TITLE_WIDTH = 40, |
|---|
| 392 | eBANNER_POPUP_TITLE_HEIGHT = 22, |
|---|
| 393 | eBANNER_POPUP_DESC_X = eBANNER_STATUS_X + 10, |
|---|
| 394 | eBANNER_POPUP_DESC_Y = eBANNER_POPUP_TITLE_Y + eBANNER_POPUP_TITLE_HEIGHT + 10, |
|---|
| 395 | eBANNER_POPUP_DESC_WIDTH = eBANNER_STATUS_WIDTH - 20, |
|---|
| 396 | eBANNER_POPUP_DESC_HEIGHT = eBANNER_STATUS_Y + eBANNER_STATUS_HEIGHT - 10 - eBANNER_POPUP_DESC_Y, |
|---|
| 397 | eBANNER_SIGNAL_X = eBANNER_X + 10, |
|---|
| 398 | eBANNER_SIGNAL_Y = eBANNER_TIME_Y + 8, |
|---|
| 399 | eBANNER_SIGNAL_WIDTH = 55, |
|---|
| 400 | eBANNER_SIGNAL_HEIGHT = 10, |
|---|
| 401 | eBANNER_START_END_TIME_X = eBANNER_SIGNAL_X + eBANNER_SIGNAL_WIDTH + 35, |
|---|
| 402 | eBANNER_START_END_TIME_Y = eBANNER_TIME_Y, |
|---|
| 403 | eBANNER_START_END_TIME_WIDTH = 180, |
|---|
| 404 | eBANNER_START_END_TIME_HEIGHT = eBANNER_TIME_HEIGHT, |
|---|
| 405 | |
|---|
| 406 | eMENU_FIRST_BUTTON_X = (eSCREEN_ACTION_SAFE_X + 30), |
|---|
| 407 | eMENU_BUTTON_WIDTH = 186, |
|---|
| 408 | eMENU_BUTTON_INC_Y = 50, |
|---|
| 409 | eMENU_FIRST_BUTTON_Y = (eSCREEN_ACTION_SAFE_Y + 85), |
|---|
| 410 | eMENU_ITEM_DESC_X = (180 + 60 + 4 + eSCREEN_ACTION_SAFE_X), |
|---|
| 411 | eMENU_ITEM_DESC_Y = (90 + 2 + eSCREEN_ACTION_SAFE_Y), |
|---|
| 412 | eMENU_INFO_X = (10 + eSCREEN_ACTION_SAFE_X), |
|---|
| 413 | eMENU_INFO_Y = (eINFO_AREA_Y), |
|---|
| 414 | eMENU_INFO_LINE_SPACING = 4, |
|---|
| 415 | ePROGRESS_X = 130, |
|---|
| 416 | ePROGRESS_Y = 220, |
|---|
| 417 | ePROGRESS_WIDTH = 400, |
|---|
| 418 | ePROGRESS_HEIGHT = 50, |
|---|
| 419 | ePROGRESS_LABEL_SPACING = 6, |
|---|
| 420 | ePROGRESS_VOLUME_X = eBANNER_POPUP_TITLE_X + 175, |
|---|
| 421 | ePROGRESS_VOLUME_WIDTH = 260, |
|---|
| 422 | ePROGRESS_VOLUME_HEIGHT = 25, |
|---|
| 423 | ePROGRESS_GUIDE_X = eBANNER_TITLE_X + 430, |
|---|
| 424 | ePROGRESS_GUIDE_Y = eBANNER_TITLE_Y - 10, |
|---|
| 425 | ePROGRESS_GUIDE_WIDTH = 80, |
|---|
| 426 | ePROGRESS_GUIDE_HEIGHT = 25, |
|---|
| 427 | ePROGRESS_GUIDE_TEXT_X = ePROGRESS_GUIDE_X - 110, |
|---|
| 428 | ePROGRESS_GUIDE_TEXT_Y = ePROGRESS_GUIDE_Y + 3, |
|---|
| 429 | ePROGRESS_GUIDE_TEXT_WIDTH = 100, |
|---|
| 430 | ePROGRESS_GUIDE_TEXT_HEIGHT = 50, |
|---|
| 431 | eBUTTON_HEIGHT = 40, |
|---|
| 432 | eBUTTON_HEIGHT_RATINGS = 30, |
|---|
| 433 | eBUTTON_BEVEL_GRADIENT_STEP = 2, |
|---|
| 434 | eBUTTON_MARGIN_X = 4, |
|---|
| 435 | eBUTTON_MARGIN_RIGHT = 70, |
|---|
| 436 | eBUTTON_RADIO_BOX_WIDTH = 20, |
|---|
| 437 | eBUTTON_RADIO_BOX_DOT_WIDTH = 4, |
|---|
| 438 | eBUTTON_RADIO_BOX_BORDER = 4, |
|---|
| 439 | eBUTTON_RADIO_BOX_MARGIN_X = 10, |
|---|
| 440 | eBUTTON_PROGRESS_BORDER = 4, |
|---|
| 441 | eBUTTON_VOL_PROGRESS_BORDER = 2, |
|---|
| 442 | eMENU_TEXT_DROPSHADOW = 2, |
|---|
| 443 | eSIGNAL_LEVEL_Y = 180, |
|---|
| 444 | eSIGNAL_QUALITY_Y = 270, |
|---|
| 445 | }bscreen_layout_t; |
|---|
| 446 | |
|---|
| 447 | /* Font Size Enum */ |
|---|
| 448 | typedef enum bapp_font_size_t |
|---|
| 449 | { |
|---|
| 450 | eFONT_SIZE_SMALL, |
|---|
| 451 | eFONT_SIZE_MED, |
|---|
| 452 | eFONT_SIZE_LARGE, |
|---|
| 453 | eFONT_SIZE_MAX |
|---|
| 454 | }bapp_font_size_t; |
|---|
| 455 | |
|---|
| 456 | /* Screen ID Enum */ |
|---|
| 457 | typedef enum bapp_screen_id_t |
|---|
| 458 | { |
|---|
| 459 | eSCREEN_NULL, |
|---|
| 460 | eSCREEN_MAIN, |
|---|
| 461 | eSCREEN_PICTURE, |
|---|
| 462 | eSCREEN_SOUND, |
|---|
| 463 | eSCREEN_AV, |
|---|
| 464 | eSCREEN_ANTENNA, |
|---|
| 465 | eSCREEN_CAPTIONS_ADVANCED, |
|---|
| 466 | eSCREEN_CAPTIONS_FONT_OPTIONS, |
|---|
| 467 | eSCREEN_CAPTIONS_BACK_OPTIONS, |
|---|
| 468 | eSCREEN_CAPTIONS_FONT, |
|---|
| 469 | eSCREEN_CAPTIONS_FONT_SIZE,/*10*/ |
|---|
| 470 | eSCREEN_CAPTIONS_FONT_STYLE, |
|---|
| 471 | eSCREEN_CAPTIONS_FONT_COLOR, |
|---|
| 472 | eSCREEN_CAPTIONS_FONT_OPACITY, |
|---|
| 473 | eSCREEN_CAPTIONS_BACK_COLOR, |
|---|
| 474 | eSCREEN_CAPTIONS_BACK_OPACITY, |
|---|
| 475 | eSCREEN_CAPTIONS_EDGE_COLOR, |
|---|
| 476 | eSCREEN_CAPTIONS_EDGE_TYPE, |
|---|
| 477 | eSCREEN_CAPTIONS_RESET, |
|---|
| 478 | eSCREEN_LANGUAGE, |
|---|
| 479 | eSCREEN_SETUP,/*20*/ |
|---|
| 480 | eSCREEN_CH_SCAN, |
|---|
| 481 | eSCREEN_CH_SCAN_PROGRESS, |
|---|
| 482 | eSCREEN_RESET, |
|---|
| 483 | eSCREEN_WIZ_WELCOME, |
|---|
| 484 | eSCREEN_WIZ_LANGUAGE, |
|---|
| 485 | eSCREEN_WIZ_CH_SCAN,/*26*/ |
|---|
| 486 | eSCREEN_WIZ_PIN_NEW, |
|---|
| 487 | eSCREEN_WIZ_PIN_CONFIRM, |
|---|
| 488 | eSCREEN_WIZ_MISMATCHED_PINS, |
|---|
| 489 | eSCREEN_WIZ_DONE,/*30*/ |
|---|
| 490 | eSCREEN_AUTO_POWER, |
|---|
| 491 | eSCREEN_RATINGS, |
|---|
| 492 | eSCREEN_RATINGS_LOCK, |
|---|
| 493 | eSCREEN_RATINGS_LIMITS, |
|---|
| 494 | eSCREEN_RATINGS_TV, |
|---|
| 495 | eSCREEN_RATINGS_MOVIES, |
|---|
| 496 | eSCREEN_RATINGS_RRT_DIM, |
|---|
| 497 | eSCREEN_RATINGS_RRT_VAL, |
|---|
| 498 | eSCREEN_RATINGS_RRT_UPDATE, |
|---|
| 499 | eSCREEN_PIN_VERIFY_LIVE,/*40*/ |
|---|
| 500 | eSCREEN_PIN_VERIFY_RATINGS, |
|---|
| 501 | eSCREEN_PIN_VERIFY_RESET, |
|---|
| 502 | eSCREEN_PIN_NEW, |
|---|
| 503 | eSCREEN_PIN_CONFIRM, |
|---|
| 504 | eSCREEN_WRONG_PIN_LIVE, |
|---|
| 505 | eSCREEN_WRONG_PIN_RATINGS, |
|---|
| 506 | eSCREEN_WRONG_PIN_RESET, |
|---|
| 507 | eSCREEN_MISMATCHED_PINS, |
|---|
| 508 | eSCREEN_BANNER_SMALL, |
|---|
| 509 | eSCREEN_GUIDE,/*50*/ |
|---|
| 510 | eSCREEN_SCREENSAVER, |
|---|
| 511 | eSCREEN_POWER_OFF, |
|---|
| 512 | eSCREEN_TIMEZONE, |
|---|
| 513 | eSCREEN_STATUS, |
|---|
| 514 | eSCREEN_DIAG_MENU, |
|---|
| 515 | eSCREEN_SYS_INFO,/*56*/ |
|---|
| 516 | eSCREEN_TUNER_STATUS, |
|---|
| 517 | eSCREEN_CH_STATUS, |
|---|
| 518 | eSCREEN_DECODER_STATUS, |
|---|
| 519 | eSCREEN_SD_OUTPUT_OPTIONS,/*60*/ |
|---|
| 520 | eSCREEN_RFM, |
|---|
| 521 | eSCREEN_DIGITAL, |
|---|
| 522 | eSCREEN_WIZ_TIMEZONE, |
|---|
| 523 | eSCREEN_DETAILED_GUIDE, |
|---|
| 524 | eSCREEN_FREQUENCY_CONFIGURE, |
|---|
| 525 | eSCREEN_AUDIO_CHANNEL, |
|---|
| 526 | eSCREEN_MAX |
|---|
| 527 | }bapp_screen_id_t; |
|---|
| 528 | |
|---|
| 529 | #define eSCREEN_BANNER eSCREEN_NULL |
|---|
| 530 | |
|---|
| 531 | /* Types of buttons and attibutes*/ |
|---|
| 532 | typedef enum bbutton_type_t |
|---|
| 533 | { |
|---|
| 534 | eBUTTON_MENU = 0x1, |
|---|
| 535 | eBUTTON_RADIO = 0x2, |
|---|
| 536 | eBUTTON_CHECK = 0x4, |
|---|
| 537 | eBUTTON_CHECK_LOCK = 0x8, |
|---|
| 538 | eBUTTON_DESC_BOX = 0x10, |
|---|
| 539 | eBUTTON_MAX |
|---|
| 540 | }bbutton_type_t; |
|---|
| 541 | |
|---|
| 542 | /* Button states */ |
|---|
| 543 | typedef enum bbutton_state_t |
|---|
| 544 | { |
|---|
| 545 | eBUTTON_STATE_OFF = 0x0, |
|---|
| 546 | eBUTTON_STATE_ON = 0x1, |
|---|
| 547 | eBUTTON_STATE_SELECTED = 0x2, |
|---|
| 548 | eBUTTON_STATE_MAX |
|---|
| 549 | }bbutton_state_t; |
|---|
| 550 | |
|---|
| 551 | typedef enum tv_ratings_position_t |
|---|
| 552 | { |
|---|
| 553 | ePOS_TV_Y, |
|---|
| 554 | ePOS_TV_Y7, |
|---|
| 555 | ePOS_TV_Y7_FV, |
|---|
| 556 | ePOS_TV_G, |
|---|
| 557 | ePOS_TV_PG, |
|---|
| 558 | ePOS_TV_PG_D, |
|---|
| 559 | ePOS_TV_PG_L, |
|---|
| 560 | ePOS_TV_PG_S, |
|---|
| 561 | ePOS_TV_PG_V, |
|---|
| 562 | ePOS_TV_14, |
|---|
| 563 | ePOS_TV_14_D, |
|---|
| 564 | ePOS_TV_14_L, |
|---|
| 565 | ePOS_TV_14_S, |
|---|
| 566 | ePOS_TV_14_V, |
|---|
| 567 | ePOS_TV_MA, |
|---|
| 568 | ePOS_TV_MA_L, |
|---|
| 569 | ePOS_TV_MA_S, |
|---|
| 570 | ePOS_TV_MA_V, |
|---|
| 571 | ePOS_TV_LAST |
|---|
| 572 | }tv_ratings_position_t; |
|---|
| 573 | |
|---|
| 574 | /* Button info structure */ |
|---|
| 575 | typedef struct bbutton_t |
|---|
| 576 | { |
|---|
| 577 | bbutton_type_t type; |
|---|
| 578 | unsigned short x; |
|---|
| 579 | unsigned short y; |
|---|
| 580 | unsigned short width; |
|---|
| 581 | unsigned short height; |
|---|
| 582 | btext_id_t text_id; |
|---|
| 583 | btext_id_t desc_text_id; |
|---|
| 584 | bapp_screen_id_t next_screen_id; |
|---|
| 585 | bapp_screen_id_t next_screen_back_id; |
|---|
| 586 | unsigned short right_justify_text; |
|---|
| 587 | unsigned int background_color; |
|---|
| 588 | }bbutton_t; |
|---|
| 589 | |
|---|
| 590 | typedef enum bevent_type_t |
|---|
| 591 | { |
|---|
| 592 | eS_EVENT_IR, |
|---|
| 593 | eS_EVENT_IDLE, |
|---|
| 594 | eS_EVENT_SETUP, |
|---|
| 595 | eS_EVENT_SETUP_DONE, |
|---|
| 596 | eS_EVENT_SELECTED, |
|---|
| 597 | eS_EVENT_CHECKED, |
|---|
| 598 | eS_EVENT_PROGRESS, |
|---|
| 599 | eS_EVENT_DONE, |
|---|
| 600 | eS_EVENT_REDRAW, |
|---|
| 601 | eS_EVENT_CANCEL, |
|---|
| 602 | eS_EVENT_MAX |
|---|
| 603 | }bevent_type_t; |
|---|
| 604 | |
|---|
| 605 | /* Screen event structure */ |
|---|
| 606 | typedef struct bscreen_event_t |
|---|
| 607 | { |
|---|
| 608 | bevent_type_t type; |
|---|
| 609 | unsigned int id; |
|---|
| 610 | void *data; |
|---|
| 611 | }bscreen_event_t; |
|---|
| 612 | |
|---|
| 613 | /* Screen data structure */ |
|---|
| 614 | typedef struct bscreen_t |
|---|
| 615 | { |
|---|
| 616 | btext_id_t title_text_id; |
|---|
| 617 | btext_id_t desc_text_id; |
|---|
| 618 | btext_id_t help_text_id; |
|---|
| 619 | uint16_t top_banner_height; |
|---|
| 620 | unsigned char button_selection; |
|---|
| 621 | unsigned char button_checked; |
|---|
| 622 | unsigned char num_buttons; |
|---|
| 623 | unsigned int idle_timeout; |
|---|
| 624 | bapp_screen_id_t last_screen_id; |
|---|
| 625 | bbutton_t * p_button_array; |
|---|
| 626 | void (*draw)(void *p_app, void *p_screen); |
|---|
| 627 | int (*handle_event)(void *p_app, void *p_screen, bscreen_event_t *p_event); |
|---|
| 628 | unsigned int local_state; |
|---|
| 629 | }bscreen_t; |
|---|
| 630 | |
|---|
| 631 | |
|---|
| 632 | /* |
|---|
| 633 | Summary: |
|---|
| 634 | screen draw callback functions. |
|---|
| 635 | */ |
|---|
| 636 | void screen_null_draw(void *v_app, void *v_screen); |
|---|
| 637 | |
|---|
| 638 | /* |
|---|
| 639 | Summary: |
|---|
| 640 | screen event handler callback functions. |
|---|
| 641 | */ |
|---|
| 642 | int screen_picture_event(void *v_app, void *v_screen, |
|---|
| 643 | bscreen_event_t *p_event); |
|---|
| 644 | int screen_sound_event(void *v_app, void *v_screen, |
|---|
| 645 | bscreen_event_t *p_event); |
|---|
| 646 | int screen_antenna_event(void *v_app, void *v_screen, |
|---|
| 647 | bscreen_event_t *p_event); |
|---|
| 648 | #if 0 |
|---|
| 649 | int screen_captions_event(void *v_app, void *v_screen, |
|---|
| 650 | bscreen_event_t *p_event); |
|---|
| 651 | int screen_captions_on_off_event(void *v_app, void *v_screen, |
|---|
| 652 | bscreen_event_t *p_event); |
|---|
| 653 | int screen_captions_basic_event(void *v_app, void *v_screen, |
|---|
| 654 | bscreen_event_t *p_event); |
|---|
| 655 | #endif |
|---|
| 656 | int screen_captions_advanced_event(void *v_app, void *v_screen, |
|---|
| 657 | bscreen_event_t *p_event); |
|---|
| 658 | int screen_captions_font_options_event(void *v_app, void *v_screen, |
|---|
| 659 | bscreen_event_t *p_event); |
|---|
| 660 | int screen_captions_back_options_event(void *v_app, void *v_screen, |
|---|
| 661 | bscreen_event_t *p_event); |
|---|
| 662 | int screen_captions_font_event(void *v_app, void *v_screen, |
|---|
| 663 | bscreen_event_t *p_event); |
|---|
| 664 | int screen_captions_font_size_event(void *v_app, void *v_screen, |
|---|
| 665 | bscreen_event_t *p_event); |
|---|
| 666 | int screen_captions_font_style_event(void *v_app, void *v_screen, |
|---|
| 667 | bscreen_event_t *p_event); |
|---|
| 668 | int screen_captions_font_color_event(void *v_app, void *v_screen, |
|---|
| 669 | bscreen_event_t *p_event); |
|---|
| 670 | int screen_captions_font_opacity_event(void *v_app, void *v_screen, |
|---|
| 671 | bscreen_event_t *p_event); |
|---|
| 672 | int screen_captions_back_color_event(void *v_app, void *v_screen, |
|---|
| 673 | bscreen_event_t *p_event); |
|---|
| 674 | int screen_captions_back_opacity_event(void *v_app, void *v_screen, |
|---|
| 675 | bscreen_event_t *p_event); |
|---|
| 676 | int screen_captions_edge_color_event(void *v_app, void *v_screen, |
|---|
| 677 | bscreen_event_t *p_event); |
|---|
| 678 | int screen_captions_edge_type_event(void *v_app, void *v_screen, |
|---|
| 679 | bscreen_event_t *p_event); |
|---|
| 680 | int screen_captions_reset_event(void *v_app, void *v_screen, |
|---|
| 681 | bscreen_event_t *p_event); |
|---|
| 682 | int screen_language_event(void *v_app, void *v_screen, |
|---|
| 683 | bscreen_event_t *p_event); |
|---|
| 684 | int screen_setup_event(void *v_app, void *v_screen, |
|---|
| 685 | bscreen_event_t *p_event); |
|---|
| 686 | int screen_ch_scan_event(void *v_app, void *v_screen, |
|---|
| 687 | bscreen_event_t *p_event); |
|---|
| 688 | int screen_ch_scan_progress_event(void *v_app, void *v_screen, |
|---|
| 689 | bscreen_event_t *p_event); |
|---|
| 690 | int screen_reset_event(void *v_app, void *v_screen, |
|---|
| 691 | bscreen_event_t *p_event); |
|---|
| 692 | int screen_wiz_welcome_event(void *v_app, void *v_screen, |
|---|
| 693 | bscreen_event_t *p_event); |
|---|
| 694 | int screen_wiz_language_event(void *v_app, void *v_screen, |
|---|
| 695 | bscreen_event_t *p_event); |
|---|
| 696 | int screen_wiz_ch_scan_event(void *v_app, void *v_screen, |
|---|
| 697 | bscreen_event_t *p_event); |
|---|
| 698 | int screen_wiz_done_event(void *v_app, void *v_screen, |
|---|
| 699 | bscreen_event_t *p_event); |
|---|
| 700 | int screen_auto_power_event(void *v_app, void *v_screen, |
|---|
| 701 | bscreen_event_t *p_event); |
|---|
| 702 | int screen_ratings_event(void *v_app, void *v_screen, |
|---|
| 703 | bscreen_event_t *p_event); |
|---|
| 704 | int screen_ratings_lock_event(void *v_app, void *v_screen, |
|---|
| 705 | bscreen_event_t *p_event); |
|---|
| 706 | int screen_ratings_limits_event(void *v_app, void *v_screen, |
|---|
| 707 | bscreen_event_t *p_event); |
|---|
| 708 | int screen_ratings_tv_event(void *v_app, void *v_screen, |
|---|
| 709 | bscreen_event_t *p_event); |
|---|
| 710 | const int screen_ratings_tv_pos2dim(int button_position); |
|---|
| 711 | const int screen_ratings_tv_pos2value(int button_position); |
|---|
| 712 | const int screen_ratings_tv_xds2pos(int xds_tv_rating); |
|---|
| 713 | const int screen_ratings_movie_xds2pos(int xds_movie_rating); |
|---|
| 714 | |
|---|
| 715 | int screen_ratings_movies_event(void *v_app, void *v_screen, |
|---|
| 716 | bscreen_event_t *p_event); |
|---|
| 717 | int screen_ratings_rrt_dim_event(void *v_app, void *v_screen, |
|---|
| 718 | bscreen_event_t *p_event); |
|---|
| 719 | int screen_ratings_rrt_val_event(void *v_app, void *v_screen, |
|---|
| 720 | bscreen_event_t *p_event); |
|---|
| 721 | int screen_ratings_rrt_update_event(void *v_app, void *v_screen, |
|---|
| 722 | bscreen_event_t *p_event); |
|---|
| 723 | |
|---|
| 724 | int screen_pin_event(void *v_app, void *v_screen, |
|---|
| 725 | bscreen_event_t *p_event); |
|---|
| 726 | int screen_wrong_pin_event(void *v_app, void *v_screen, |
|---|
| 727 | bscreen_event_t *p_event); |
|---|
| 728 | int screen_banner_event(void *v_app, void *v_screen, |
|---|
| 729 | bscreen_event_t *p_event); |
|---|
| 730 | int screen_guide_event(void *v_app, void *v_screen, |
|---|
| 731 | bscreen_event_t *p_event); |
|---|
| 732 | int screen_screensaver_event(void *v_app, void *v_screen, |
|---|
| 733 | bscreen_event_t *p_event); |
|---|
| 734 | int screen_power_off_event(void *v_app, void *v_screen, |
|---|
| 735 | bscreen_event_t *p_event); |
|---|
| 736 | |
|---|
| 737 | int bscreen_wiz_timezone_event(void *v_app, void *v_screen, bscreen_event_t *p_event); |
|---|
| 738 | |
|---|
| 739 | /* detailed EPG UI support */ |
|---|
| 740 | int screen_detailed_guide_event(void *v_app, void *v_screen, bscreen_event_t *p_event); |
|---|
| 741 | |
|---|
| 742 | /* frequency configure support */ |
|---|
| 743 | int screen_frequency_event(void *v_app, void *v_screen, bscreen_event_t *p_event); |
|---|
| 744 | |
|---|
| 745 | /* Audio only channel handling */ |
|---|
| 746 | void bscreen_audio_channel_draw(void *v_app, void *v_screen); |
|---|
| 747 | int screen_audio_channel_event(void *v_app, void *v_screen, bscreen_event_t *p_event); |
|---|
| 748 | |
|---|
| 749 | /* |
|---|
| 750 | Summary: |
|---|
| 751 | default screen callback functions. |
|---|
| 752 | */ |
|---|
| 753 | void bscreen_default_setup(void *v_app, void *v_screen); |
|---|
| 754 | int bscreen_default_idle(void *v_app, void *v_screen); |
|---|
| 755 | int bscreen_default_event(void *v_app, void *v_screen, |
|---|
| 756 | bscreen_event_t *p_event); |
|---|
| 757 | int bscreen_tv_event(void *v_app, void *v_screen, |
|---|
| 758 | bscreen_event_t *p_event); |
|---|
| 759 | void bscreen_default_draw(void *v_app, void *v_screen); |
|---|
| 760 | void bscreen_antenna_draw(void *v_app, void *v_screen); |
|---|
| 761 | void bscreen_ch_scan_progress_draw(void *v_app, void *v_screen); |
|---|
| 762 | void bscreen_wiz_welcome_draw(void *v_app, void *v_screen); |
|---|
| 763 | void bscreen_wiz_ch_scan_draw(void *v_app, void *v_screen); |
|---|
| 764 | void bscreen_wiz_done_draw(void *v_app, void *v_screen); |
|---|
| 765 | void bscreen_ratings_tv_draw(void *v_app, void *v_screen); |
|---|
| 766 | void bscreen_pin_draw(void *v_app, void *v_screen); |
|---|
| 767 | void bscreen_auto_power_draw(void *v_app, void *v_screen); |
|---|
| 768 | void bscreen_popup(void *v_app, void *v_screen); |
|---|
| 769 | void bscreen_popup_draw(void *v_app, void *v_screen, btext_id_t title, btext_id_t desc); |
|---|
| 770 | void bscreen_banner_draw(void *v_app, void *v_screen); |
|---|
| 771 | void bscreen_guide_draw(void *v_app, void *v_screen); |
|---|
| 772 | /* detailed EPG UI support */ |
|---|
| 773 | void bscreen_detailed_guide_draw(void *v_app, void *v_screen); |
|---|
| 774 | /* frequency configure support */ |
|---|
| 775 | void bscreen_frequency_draw(void *v_app, void *v_screen); |
|---|
| 776 | void bscreen_screensaver_draw(void *v_app, void *v_screen); |
|---|
| 777 | void bscreen_power_off_draw(void *v_app, void *v_screen); |
|---|
| 778 | void bscreen_rrt_dim_draw(void *v_app, void *v_screen); |
|---|
| 779 | void bscreen_rrt_val_draw(void *v_app, void *v_screen); |
|---|
| 780 | |
|---|
| 781 | void bscreen_debug_draw(void *v_app, void *v_screen); |
|---|
| 782 | int bscreen_debug_event(void *v_app, void *v_screen, |
|---|
| 783 | bscreen_event_t *p_event); |
|---|
| 784 | void bscreen_status_draw(void *v_app, void *v_screen); |
|---|
| 785 | int bscreen_status_event(void *v_app, void *v_screen, |
|---|
| 786 | bscreen_event_t *p_event); |
|---|
| 787 | void bscreen_timezone_draw(void *v_app, void *v_screen); |
|---|
| 788 | int bscreen_timezone_event(void *v_app, void *v_screen, |
|---|
| 789 | bscreen_event_t *p_event); |
|---|
| 790 | |
|---|
| 791 | |
|---|
| 792 | |
|---|
| 793 | |
|---|
| 794 | void bscreen_diag_menu_draw(void *v_app, void *v_screen); |
|---|
| 795 | int bscreen_diag_menu_event(void *v_app, void *v_screen, |
|---|
| 796 | bscreen_event_t *p_event); |
|---|
| 797 | |
|---|
| 798 | void bscreen_sys_info_draw(void *v_app, void *v_screen); |
|---|
| 799 | int bscreen_sys_info_event(void *v_app, void *v_screen, |
|---|
| 800 | bscreen_event_t *p_event); |
|---|
| 801 | |
|---|
| 802 | void bscreen_dta_status_draw(void *v_app, void *v_screen); |
|---|
| 803 | int bscreen_dta_status_event(void *v_app, void *v_screen, |
|---|
| 804 | bscreen_event_t *p_event); |
|---|
| 805 | |
|---|
| 806 | void bscreen_tuner_status_draw(void *v_app, void *v_screen); |
|---|
| 807 | int bscreen_tuner_status_event(void *v_app, void *v_screen, |
|---|
| 808 | bscreen_event_t *p_event); |
|---|
| 809 | |
|---|
| 810 | void bscreen_decoder_status_draw(void *v_app, void *v_screen); |
|---|
| 811 | int bscreen_decoder_status_event(void *v_app, void *v_screen, |
|---|
| 812 | bscreen_event_t *p_event); |
|---|
| 813 | |
|---|
| 814 | void bscreen_mso_info_draw(void *v_app, void *v_screen); |
|---|
| 815 | int bscreen_mso_info_event(void *v_app, void *v_screen, |
|---|
| 816 | bscreen_event_t *p_event); |
|---|
| 817 | |
|---|
| 818 | void bscreen_ch_status_draw(void *v_app, void *v_screen); |
|---|
| 819 | int bscreen_ch_status_event(void *v_app, void *v_screen, |
|---|
| 820 | bscreen_event_t *p_event); |
|---|
| 821 | int bscreen_ch_map_status_event(void *v_app, void *v_screen, |
|---|
| 822 | bscreen_event_t *p_event); |
|---|
| 823 | void bscreen_ch_map_status_draw(void *v_app, void *v_screen); |
|---|
| 824 | |
|---|
| 825 | void bscreen_code_objects_draw(void *v_app, void *v_screen); |
|---|
| 826 | int bscreen_code_objects_event(void *v_app, void *v_screen, |
|---|
| 827 | bscreen_event_t *p_event); |
|---|
| 828 | void bscreen_msg_status_draw(void *v_app, void *v_screen); |
|---|
| 829 | int bscreen_msg_status_event(void *v_app, void *v_screen, |
|---|
| 830 | bscreen_event_t *p_event); |
|---|
| 831 | |
|---|
| 832 | void bscreen_code_download_draw(void *v_app, void *v_screen); |
|---|
| 833 | int bscreen_code_download_event(void *v_app, void *v_screen, |
|---|
| 834 | bscreen_event_t *p_event); |
|---|
| 835 | void bscreen_video_format_draw(void *v_app, void *v_screen); |
|---|
| 836 | int bscreen_video_format_event(void *v_app, void *v_screen, |
|---|
| 837 | bscreen_event_t *p_event); |
|---|
| 838 | |
|---|
| 839 | void bscreen_confirm_change_draw(void *v_app, void *v_screen); |
|---|
| 840 | int bscreen_confirm_change_event(void *v_app, void *v_screen, |
|---|
| 841 | bscreen_event_t *p_event); |
|---|
| 842 | |
|---|
| 843 | #ifdef CONFIG_FACTORY_TEST |
|---|
| 844 | void factory_draw(void *v_app, void *v_screen); |
|---|
| 845 | int factory_handle_event(void *v_app, void *v_screen, bscreen_event_t *p_event); |
|---|
| 846 | #endif |
|---|
| 847 | |
|---|
| 848 | /* SD output options configuration */ |
|---|
| 849 | int screen_sd_output_options_config_event(void *v_app, void *v_screen, bscreen_event_t *p_event); |
|---|
| 850 | /* HD output options configuration */ |
|---|
| 851 | int screen_hd_output_options_config_event(void *v_app, void *v_screen, bscreen_event_t *p_event); |
|---|
| 852 | |
|---|
| 853 | /* |
|---|
| 854 | Summary: |
|---|
| 855 | screen button arrays. |
|---|
| 856 | */ |
|---|
| 857 | extern bbutton_t g_buttons_main[]; |
|---|
| 858 | #ifndef NO_VCHIP |
|---|
| 859 | #define g_buttons_main_num 5 |
|---|
| 860 | #else |
|---|
| 861 | #define g_buttons_main_num 4 |
|---|
| 862 | #endif |
|---|
| 863 | |
|---|
| 864 | extern bbutton_t g_buttons_picture[]; |
|---|
| 865 | #define g_buttons_picture_num 2 |
|---|
| 866 | extern bbutton_t g_buttons_sound[]; |
|---|
| 867 | #define g_buttons_sound_num 2 |
|---|
| 868 | |
|---|
| 869 | extern bbutton_t g_buttons_av[]; |
|---|
| 870 | #define g_buttons_av_num 3 |
|---|
| 871 | |
|---|
| 872 | extern bbutton_t g_buttons_rfm[]; |
|---|
| 873 | #define g_buttons_rfm_num 2 |
|---|
| 874 | |
|---|
| 875 | extern bbutton_t g_buttons_language[]; |
|---|
| 876 | #ifdef ACB612 |
|---|
| 877 | #define g_buttons_language_num 2 |
|---|
| 878 | #else |
|---|
| 879 | #define g_buttons_language_num 3 |
|---|
| 880 | #endif |
|---|
| 881 | extern bbutton_t g_buttons_setup[]; |
|---|
| 882 | |
|---|
| 883 | #ifdef CONFIG_EIA_708 |
|---|
| 884 | #define g_buttons_setup_num 6 |
|---|
| 885 | #else |
|---|
| 886 | #define g_buttons_setup_num 5 |
|---|
| 887 | #endif |
|---|
| 888 | |
|---|
| 889 | extern bbutton_t g_buttons_ch_scan[]; |
|---|
| 890 | #define g_buttons_ch_scan_num 2 |
|---|
| 891 | extern bbutton_t g_buttons_reset[]; |
|---|
| 892 | #define g_buttons_reset_num 2 |
|---|
| 893 | extern bbutton_t g_buttons_wiz_welcome[]; |
|---|
| 894 | #define g_buttons_wiz_welcome_num 1 |
|---|
| 895 | extern bbutton_t g_buttons_wiz_language[]; |
|---|
| 896 | #ifdef ACB612 |
|---|
| 897 | #define g_buttons_wiz_language_num 2 |
|---|
| 898 | #else |
|---|
| 899 | #define g_buttons_wiz_language_num 3 |
|---|
| 900 | #endif |
|---|
| 901 | extern bbutton_t g_buttons_wiz_ch_scan[]; |
|---|
| 902 | #define g_buttons_wiz_ch_scan_num 2 |
|---|
| 903 | extern bbutton_t g_buttons_wiz_mismatched_pins[]; |
|---|
| 904 | #define g_buttons_wiz_mismatched_pins_num 1 |
|---|
| 905 | extern bbutton_t g_buttons_wiz_done[]; |
|---|
| 906 | #define g_buttons_wiz_done_num 1 |
|---|
| 907 | extern bbutton_t g_buttons_auto_power[]; |
|---|
| 908 | #define g_buttons_auto_power_num 4 |
|---|
| 909 | extern bbutton_t g_buttons_ratings[]; |
|---|
| 910 | #define g_buttons_ratings_num 3 |
|---|
| 911 | extern bbutton_t g_buttons_ratings_lock[]; |
|---|
| 912 | #define g_buttons_ratings_lock_num 3 |
|---|
| 913 | extern bbutton_t g_buttons_ratings_limits[]; |
|---|
| 914 | #define g_buttons_ratings_limits_num 3 |
|---|
| 915 | extern bbutton_t g_buttons_ratings_tv[]; |
|---|
| 916 | #define g_buttons_ratings_tv_num ePOS_TV_LAST |
|---|
| 917 | #if 0 |
|---|
| 918 | extern bbutton_t g_buttons_captions[]; |
|---|
| 919 | #define g_buttons_captions_num 3 |
|---|
| 920 | extern bbutton_t g_buttons_captions_on_off[]; |
|---|
| 921 | #define g_buttons_captions_on_off_num 2 |
|---|
| 922 | extern bbutton_t g_buttons_captions_basic[]; |
|---|
| 923 | #define g_buttons_captions_basic_num 6 |
|---|
| 924 | #endif |
|---|
| 925 | extern bbutton_t g_buttons_captions_advanced[]; |
|---|
| 926 | #define g_buttons_captions_advanced_num 4 |
|---|
| 927 | extern bbutton_t g_buttons_captions_font_options[]; |
|---|
| 928 | #define g_buttons_captions_font_options_num 5 |
|---|
| 929 | extern bbutton_t g_buttons_captions_back_options[]; |
|---|
| 930 | #define g_buttons_captions_back_options_num 4 |
|---|
| 931 | extern bbutton_t g_buttons_captions_font[]; |
|---|
| 932 | #define g_buttons_captions_font_num 8 |
|---|
| 933 | extern bbutton_t g_buttons_captions_font_size[]; |
|---|
| 934 | #define g_buttons_captions_font_size_num 4 |
|---|
| 935 | extern bbutton_t g_buttons_captions_font_style[]; |
|---|
| 936 | #define g_buttons_captions_font_style_num 3 |
|---|
| 937 | extern bbutton_t g_buttons_captions_color[]; |
|---|
| 938 | #define g_buttons_captions_color_num 9 |
|---|
| 939 | extern bbutton_t g_buttons_captions_font_opacity[]; |
|---|
| 940 | extern bbutton_t g_buttons_captions_back_opacity[]; |
|---|
| 941 | #ifndef ACB612/*janzy@20121106,remove Text is a solid flashing color*/ |
|---|
| 942 | #define g_buttons_captions_opacity_num 5 |
|---|
| 943 | #else |
|---|
| 944 | #define g_buttons_captions_opacity_num 4 |
|---|
| 945 | #endif |
|---|
| 946 | extern bbutton_t g_buttons_captions_reset[]; |
|---|
| 947 | #define g_buttons_captions_reset_num 2 |
|---|
| 948 | extern bbutton_t g_buttons_captions_edge_type[]; |
|---|
| 949 | #define g_buttons_captions_edge_type_num 6 |
|---|
| 950 | extern bbutton_t g_buttons_captions_font_color[]; |
|---|
| 951 | #define g_buttons_captions_font_color_num 9 |
|---|
| 952 | extern bbutton_t g_buttons_captions_edge_color[]; |
|---|
| 953 | #define g_buttons_captions_edge_color_num 9 |
|---|
| 954 | extern bbutton_t g_buttons_timezone[]; |
|---|
| 955 | #ifdef ACB612 |
|---|
| 956 | #define g_buttons_timezone_num 4 |
|---|
| 957 | #else |
|---|
| 958 | #define g_buttons_timezone_num 6 |
|---|
| 959 | #endif |
|---|
| 960 | |
|---|
| 961 | extern bbutton_t g_buttons_ratings_movies[]; |
|---|
| 962 | #define g_buttons_ratings_movies_num 7 |
|---|
| 963 | |
|---|
| 964 | extern bbutton_t g_buttons_captions_digital[]; |
|---|
| 965 | #define g_buttons_captions_digital_num 2 |
|---|
| 966 | |
|---|
| 967 | #define MAX_RRT_DIM_BUTTONS 9 |
|---|
| 968 | #define MAX_RRT_VAL_BUTTONS 9 |
|---|
| 969 | extern bbutton_t g_buttons_ratings_rrt_dim[]; |
|---|
| 970 | #define g_buttons_ratings_rrt_dim_num MAX_RRT_DIM_BUTTONS; |
|---|
| 971 | extern bbutton_t g_buttons_ratings_rrt_val[]; |
|---|
| 972 | #define g_buttons_ratings_rrt_val_num MAX_RRT_VAL_BUTTONS; |
|---|
| 973 | |
|---|
| 974 | extern bbutton_t g_buttons_ratings_rrt_update[]; |
|---|
| 975 | #define g_buttons_ratings_rrt_update_num 2 |
|---|
| 976 | |
|---|
| 977 | extern bbutton_t g_buttons_wrong_pin_live[]; |
|---|
| 978 | #define g_buttons_wrong_pin_live_num 1 |
|---|
| 979 | extern bbutton_t g_buttons_wrong_pin_ratings[]; |
|---|
| 980 | #define g_buttons_wrong_pin_ratings_num 2 |
|---|
| 981 | extern bbutton_t g_buttons_wrong_pin_reset[]; |
|---|
| 982 | #define g_buttons_wrong_pin_reset_num 2 |
|---|
| 983 | extern bbutton_t g_buttons_mismatched_pins[]; |
|---|
| 984 | #define g_buttons_mismatched_pins_num 2 |
|---|
| 985 | |
|---|
| 986 | /* HD configuration */ |
|---|
| 987 | extern bbutton_t g_buttons_sd_output_options_config[]; |
|---|
| 988 | #if(AOV_MODEL != ALCO) /*janzy@20121120,remove video output->auto*/ |
|---|
| 989 | #define g_buttons_sd_output_options_config_num 4 |
|---|
| 990 | #else |
|---|
| 991 | #define g_buttons_sd_output_options_config_num 2 |
|---|
| 992 | #endif |
|---|
| 993 | extern bbutton_t g_buttons_hd_output_options_config[]; |
|---|
| 994 | #define g_buttons_hd_output_options_config_num 4 |
|---|
| 995 | |
|---|
| 996 | extern bbutton_t g_buttons_video_output_format[]; |
|---|
| 997 | #define g_buttons_video_output_format_num 5 |
|---|
| 998 | |
|---|
| 999 | extern bbutton_t g_buttons_video_output_format_confirm[]; |
|---|
| 1000 | #define g_buttons_video_output_format_confirm_num 2 |
|---|
| 1001 | |
|---|
| 1002 | /* Banner state types */ |
|---|
| 1003 | |
|---|
| 1004 | typedef enum banner_mode_t |
|---|
| 1005 | { |
|---|
| 1006 | eLS_BANNER_OFF, |
|---|
| 1007 | eLS_BANNER_SMALL, |
|---|
| 1008 | eLS_BANNER_BIG, |
|---|
| 1009 | eLS_BANNER_EAS_TEXT_SCROLLING, |
|---|
| 1010 | eLS_BANNER_MAX |
|---|
| 1011 | }banner_mode_t; |
|---|
| 1012 | |
|---|
| 1013 | typedef struct banner_state_t |
|---|
| 1014 | { |
|---|
| 1015 | char majorCh[3]; |
|---|
| 1016 | char minorCh[3]; |
|---|
| 1017 | unsigned char majorChIndex; |
|---|
| 1018 | unsigned char minorChIndex; |
|---|
| 1019 | unsigned char dot; |
|---|
| 1020 | unsigned char enter; |
|---|
| 1021 | banner_mode_t mode; |
|---|
| 1022 | bscreen_event_t event; |
|---|
| 1023 | unsigned int repeat_timeout; |
|---|
| 1024 | unsigned int repeat_rate; |
|---|
| 1025 | unsigned int timeout; |
|---|
| 1026 | unsigned int ten_key_timeout; |
|---|
| 1027 | unsigned int volume_timeout; |
|---|
| 1028 | char volume_dirty; |
|---|
| 1029 | unsigned int SAP_timeout; |
|---|
| 1030 | char SAP_dirty; |
|---|
| 1031 | unsigned int CC_timeout; |
|---|
| 1032 | char CC_dirty; |
|---|
| 1033 | unsigned int auto_power_restart_timeout; |
|---|
| 1034 | char auto_power_one_min_warning; |
|---|
| 1035 | /* Button to set Aspect Ratio (video output format) */ |
|---|
| 1036 | unsigned int AR_timeout; |
|---|
| 1037 | char AR_dirty; |
|---|
| 1038 | }banner_state_t; |
|---|
| 1039 | |
|---|
| 1040 | extern banner_state_t g_banner_state; |
|---|
| 1041 | |
|---|
| 1042 | |
|---|
| 1043 | /* Screensaver State */ |
|---|
| 1044 | typedef struct screensaver_state_t |
|---|
| 1045 | { |
|---|
| 1046 | unsigned int image_swap_timeout; |
|---|
| 1047 | }screensaver_state_t; |
|---|
| 1048 | |
|---|
| 1049 | extern screensaver_state_t g_screensaver_state; |
|---|
| 1050 | |
|---|
| 1051 | /* Guide State */ |
|---|
| 1052 | |
|---|
| 1053 | typedef struct guide_state_t |
|---|
| 1054 | { |
|---|
| 1055 | unsigned int selection; |
|---|
| 1056 | int column; |
|---|
| 1057 | unsigned int offset; |
|---|
| 1058 | char ch_num_str[32]; |
|---|
| 1059 | bscreen_event_t event; |
|---|
| 1060 | unsigned int repeat_timeout; |
|---|
| 1061 | unsigned int repeat_rate; |
|---|
| 1062 | unsigned char update_progress; |
|---|
| 1063 | }guide_state_t; |
|---|
| 1064 | |
|---|
| 1065 | extern guide_state_t g_guide_state; |
|---|
| 1066 | |
|---|
| 1067 | /* Detailed Guide State */ |
|---|
| 1068 | |
|---|
| 1069 | typedef struct detailed_guide_state_t |
|---|
| 1070 | { |
|---|
| 1071 | unsigned int selection; |
|---|
| 1072 | unsigned int offset; |
|---|
| 1073 | bool skip; |
|---|
| 1074 | bool favorite; |
|---|
| 1075 | bool save; /* save channel map if needed, using a flag since we don't want to save it one by one, but after quiting from Guide screen */ |
|---|
| 1076 | } detailed_guide_state_t; |
|---|
| 1077 | |
|---|
| 1078 | extern detailed_guide_state_t g_detailed_guide_state; |
|---|
| 1079 | |
|---|
| 1080 | /* |
|---|
| 1081 | Summary: |
|---|
| 1082 | Use the this function to get a UNI string. |
|---|
| 1083 | */ |
|---|
| 1084 | |
|---|
| 1085 | void bscreen_get_string( |
|---|
| 1086 | bapp_lang_t e_lang, /* Language enum */ |
|---|
| 1087 | btext_id_t e_text_id, /* Text enum */ |
|---|
| 1088 | unsigned int *p_uni_str, /* Buffer to put UNI string into */ |
|---|
| 1089 | unsigned int *str_len /* The string length. */ |
|---|
| 1090 | ); |
|---|
| 1091 | /* |
|---|
| 1092 | Summary: |
|---|
| 1093 | Draw the buttons for the screen. |
|---|
| 1094 | Description: |
|---|
| 1095 | Draw the buttons for the screen. |
|---|
| 1096 | */ |
|---|
| 1097 | void bscreen_draw_buttons( |
|---|
| 1098 | void *v_app, /* Opaque app reference */ |
|---|
| 1099 | void *v_screen /* Opaque screen reference */ |
|---|
| 1100 | ); |
|---|
| 1101 | |
|---|
| 1102 | /* |
|---|
| 1103 | Summary: |
|---|
| 1104 | Draw a button for the screen. |
|---|
| 1105 | Description: |
|---|
| 1106 | Draw a button for the screen. |
|---|
| 1107 | */ |
|---|
| 1108 | void bscreen_draw_button(void *v_app, /* application structure */ |
|---|
| 1109 | const bbutton_t *p_button, /* button info structure */ |
|---|
| 1110 | int selected, /* Button selected when non-zero */ |
|---|
| 1111 | int checked, /* Button checked when non-zero */ |
|---|
| 1112 | int idx /* button index or -1 for non index button */ |
|---|
| 1113 | ); |
|---|
| 1114 | |
|---|
| 1115 | /* |
|---|
| 1116 | Summary: |
|---|
| 1117 | Draw a button but override the p_button->text_id text with str_text. |
|---|
| 1118 | Description: |
|---|
| 1119 | Draw a button but override the p_button->text_id text with str_text. |
|---|
| 1120 | */ |
|---|
| 1121 | void bscreen_draw_button_custom_text(void *v_app, /* application structure */ |
|---|
| 1122 | const bbutton_t *p_button, /* button info structure */ |
|---|
| 1123 | char *str_text, /* button text to use (overrides p_button->text_id) */ |
|---|
| 1124 | char *str_desc_text, /* description text to use (overrides p_button->desc_text_id) */ |
|---|
| 1125 | int selected, /* Button selected when non-zero */ |
|---|
| 1126 | int checked, /* Button checked when non-zero */ |
|---|
| 1127 | int idx /* button index or -1 for non index button */ |
|---|
| 1128 | ); |
|---|
| 1129 | /* |
|---|
| 1130 | Summary: |
|---|
| 1131 | Draw a progress meter for the screen. |
|---|
| 1132 | Description: |
|---|
| 1133 | Draw a progress meter for the screen. |
|---|
| 1134 | */ |
|---|
| 1135 | void bscreen_draw_progress(void * v_app, /* Opague app reference */ |
|---|
| 1136 | unsigned int x, /* x coord for progress meter */ |
|---|
| 1137 | unsigned int y, /* y coord for progress meter */ |
|---|
| 1138 | unsigned int width, /* width of progress meter */ |
|---|
| 1139 | unsigned int height, /* height of progress meter */ |
|---|
| 1140 | unsigned int border_width, /* width of meter border */ |
|---|
| 1141 | unsigned int border_color, /* color of meter border */ |
|---|
| 1142 | unsigned int background_color, /* background color behind thumb */ |
|---|
| 1143 | unsigned int percent, /* percentage thumb size (0-max_percent) */ |
|---|
| 1144 | unsigned int max_percent); /* max percentage to draw */ |
|---|
| 1145 | |
|---|
| 1146 | /* |
|---|
| 1147 | Summary: |
|---|
| 1148 | Draw a pin entry field for the screen. |
|---|
| 1149 | Description: |
|---|
| 1150 | Draw a pin entry field for the screen. |
|---|
| 1151 | */ |
|---|
| 1152 | void bscreen_draw_pin(void * v_app, /* Opague app reference */ |
|---|
| 1153 | unsigned int x, /* x coord for pin field */ |
|---|
| 1154 | unsigned int y, /* y coord for pin field */ |
|---|
| 1155 | unsigned int width, /* width of pin field */ |
|---|
| 1156 | unsigned int height, /* height of pin field*/ |
|---|
| 1157 | unsigned int inc_x, /* x increment between digits */ |
|---|
| 1158 | unsigned int selection, /* selected digit */ |
|---|
| 1159 | unsigned int field); /* pin field to draw */ |
|---|
| 1160 | |
|---|
| 1161 | /* |
|---|
| 1162 | Summary: |
|---|
| 1163 | Draw signal level meter in banner |
|---|
| 1164 | Description: |
|---|
| 1165 | Draw signal level meter in banner |
|---|
| 1166 | */ |
|---|
| 1167 | void bscreen_draw_banner_signal_level(void * v_app, /* Opaque app reference */ |
|---|
| 1168 | unsigned int signal); /* signal level */ |
|---|
| 1169 | |
|---|
| 1170 | /* |
|---|
| 1171 | Summary: |
|---|
| 1172 | rfm CH3/4 switch handler |
|---|
| 1173 | Description: |
|---|
| 1174 | rfm CH3/4 switch handler |
|---|
| 1175 | */ |
|---|
| 1176 | int screen_rfm_event(void *v_app, void *v_screen, bscreen_event_t *p_event); |
|---|
| 1177 | |
|---|
| 1178 | /* |
|---|
| 1179 | Summary: |
|---|
| 1180 | Digital captioning selection screen event handler |
|---|
| 1181 | Description: |
|---|
| 1182 | Digital captioning selection screen event handler. |
|---|
| 1183 | */ |
|---|
| 1184 | int screen_digital_captioning_event(void *v_app, void *v_screen, bscreen_event_t *p_event); |
|---|
| 1185 | |
|---|
| 1186 | #define DEFAULT_PIN 0x04030201 |
|---|
| 1187 | #endif /* BSCREEN_H__ */ |
|---|