- /*
- * COPYRIGHT (C) STMicroelectronics Pte Ltd 2004.
- *
- * Source file name : usifglob.c
- * Description : Usif global definition
- * Author : TM CHUA
- *
- * =======================
- * IMPROVEMENTS THOUGHT OF
- * =======================
- *
- * =====================
- * MODIFICATION HISTORY:
- * =====================
- *
- * Date Initials Modification
- * ---- -------- ------------
- * 15.04.04 TM CHUA Created
- */
- /* Includes --------------------------------------------------------------- */
- #include "stddefs.h"
- #include "usif.h"
- #ifdef ENABLE_DVR_FEATURE
- #include "sr_dvr.h"
- #endif
- /*
- * Global variables & structures
- */
- dbase_module_state_t dbase_module_state;
- epg_module_state_t epg_module_state;
- MENU_DATA_STRUCT astMenuData[MAX_NO_OF_MENU_ELEMENTS_IN_BIG_SCREEN];
- MENU_DATA_STRUCT *pstMenuDataHead,*pstMenuDataTail;
- menu_page_sel_t menu_page_last_sel = NEXT_PAGE;
- BOOL bShowFirstProgram = TRUE;
- #ifdef PIP_SUPPORT
- SHORT sCurTransponderId_Multiple[2];
- int iCurrentProgramNo_Multiple[2];
- #else
- SHORT sCurTransponderId;
- int iCurrentProgramNo;
- #endif
- char acGeneralBuffer[80];
- semaphore_t *psemDisplayBufferAccessLock = NULL;
- char acDisplayBuffer[3][60];
- //BOX_INFO_STRUCT *pstBoxInfo;
- BOOL bOSD_NTSC = FALSE;
- opaque_t idNvmBoxInfoId;
- BOOL bNvmBoxInfoPresent = FALSE;
- signed char cCurVolBalance = VOL_BALANCE_CENTRE;
- STAUD_Stereo_t stCurAudMode;
- BOOL bAudioMuteState = FALSE;
- WORD2SHORT uiProgBeingWatched = 0xFFFF;
- wait_duration_sel_t wait_duration_forced_during = WAIT_AT_STARTUP;
- clock_t tclkWaitDuration;
- //State_t eState = kDefaultState;
- int iXpdrToBeDele;
- int iInputFrequency = 0;
- int iSymbolRate = 0;
- #ifdef BUILD_FOR_DVBS
- int LnbIndex = 0;
- BOOL LnbSupplyOn = FALSE;
- int iSatelliteId = 0;
- int iPolarization = 1; /* 1 = Horizontal; 2 = Vertical */
- #endif
- #ifdef BUILD_FOR_DVBC
- int iModulation = 0;
- #endif
- #ifdef BUILD_FOR_DVBT
- int iSatelliteId = 0; /*ZXQ*/
- int iBandWidth=1; /*8M*/
- int iInputFreqOffset= 0;
- #endif
- int iResolution = 1; /* 1=1080i; 2=720P; 3=480p */
- int iAspectRatio = 2;/* 1=16:9; 2=4:3 */
- int iOutputType = 1; /* 1=RGB; 2=YUV */
- int AudioMode = 3; /* 1=MonoR; 2=MonoL; 3=Stereo */
- int LangSelect= 2; /* 1=Chinese; 2=English */ /* 1 =Thai, 2 =English */
- /* kc-060811am */
- BOOL LOCK_TRANSIT_UNLOCK = FALSE;
- /* displayMode only have use for mosaic and nothing else??? */
- BOOL displayMode = false; /*JJL: move two defining to here to avoid compile warning*/
- signed char iDisplayMode; /* defines current PAL-NTSC or Auto Mode */
- //SRAVC_AspectRatio_t glob_AspectRatio; /* kc-060823pm - 0=4:3, 1=16:9*/
- char CurrentPassword[9] = {""};
- BOOL bPasswordWrong = TRUE;
- BOOL bFavChannelsLocked = FALSE; /* TRUE, favorite channels are locked. FALSE otherwise */
- U16 AudLevel = MID_VOL_LEVEL; /* 50 levels. 20 is temp used, will be replaced later --- jesse */
- BOOL parentalLockEnabled = FALSE;
- #ifdef ENABLE_DVR_FEATURE
- char playbackFileName[SRDVR_MAX_FILENAME_LEN]; /* id of the file currently shown */
- #endif
- U8 newHoursData = 0;
- U8 newMinutesData = 0;
- U8 newYearData = 0;
- U8 newMonthData = 0;
- U8 newDayData = 0;
- /*eof*/