123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- /********************************************************************
- ** File Name: app_guiobj_source.h
- **
- ** File Description: The header file of source control gui object.
- **
- ** Copyright(c) 2009 Sunplus Technologies - All Rights Reserved
- **
- ** History Information Description
- ** Date Author Modification
- ** 2010/04/22 qin.he Creation
- ********************************************************************/
- #ifndef _APP_GUIOBJ_SOURCE_H_
- #define _APP_GUIOBJ_SOURCE_H_
- /********************************************************************
- Including Files
- ********************************************************************/
- #include "gobj_datastruct.h"
- #include "board_config.h"
- #include "mid_dtv_display.h"
- #include "app_change_board.h"
- #include "vip2_ioctl.h"
- /********************************************************************
- Macros
- ********************************************************************/
- #define SOURCE_MENU_LIST_DISPLAY_ITEM_NUM (6)
- /********************************************************************
- Type definitions
- ********************************************************************/
- #ifdef CONFIG_ISDB_SYSTEM
- typedef enum
- {
- RF_INPUT_PORT_AIR = 0,
- RF_INPUT_PORT_CABLE,
- }rf_input_port_t;
- typedef enum
- {
- AIR_SOURCE_TYPE_ATV = 0,
- AIR_SOURCE_TYPE_DTV,
- AIR_SOURCE_TYPE_RADIO,
- }air_source_type_t;
- typedef enum
- {
- ATV_SOURCE_TYPE_AIR = 0,
- ATV_SOURCE_TYPE_CABLE,
- }atv_source_type_t;
- #endif
- #ifdef CONFIG_SUPPORT_ATV_SCAN_NTSCM_PALM_N
- typedef enum
- {
- ATV_TYPE_AIR = 0,
- ATV_TYPE_CATV,
- }atv_type_t;
- #endif
- #ifdef CONFIG_BLUETOOTH_SUPPORT
- enum
- {
- NeedToReconnect = 0x10,
- KeepConnected = 0x20,
- };
- #endif
- typedef enum {
- APP_SOURCE_CLASS_ATV = 0,
- APP_SOURCE_CLASS_DTV,
- APP_SOURCE_CLASS_RADIO,
- APP_SOURCE_CLASS_SCART,
- APP_SOURCE_CLASS_AV,
- APP_SOURCE_CLASS_SVIDEO,
- APP_SOURCE_CLASS_YPBPR,
- APP_SOURCE_CLASS_HDMI,
- APP_SOURCE_CLASS_PC,
- APP_SOURCE_CLASS_MEDIA,
- APP_SOURCE_CLASS_KARAOKE,
- APP_SOURCE_CLASS_NET,
- APP_SOURCE_CLASS_DVD,
- APP_SOURCE_CLASS_ANDRO,
- APP_SOURCE_CLASS_GAME,
- APP_SOURCE_CLASS_BLUETOOTH,
- APP_SOURCE_CLASS_MAX,
- } APP_Source_Class_t;
- /********************************************************************
- Extern Global Functions
- ********************************************************************/
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_GetBootStatus
- **
- ** DESCRIPTION :
- ** Get Boot status
- **
- ** PARAMETERS :
- ** NULL
- **
- ** RETURN VALUES:
- ** True or False
- *****************************************************************************/
- Boolean APP_GUIOBJ_Source_GetBootStatus(void);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_RecordtStandbySource
- **
- ** DESCRIPTION :
- ** Record Standby source
- **
- ** PARAMETERS :
- ** APP_Source_Type_t
- **
- ** RETURN VALUES:
- ** NULL
- *****************************************************************************/
- void APP_GUIOBJ_Source_RecordStandbySource(APP_Source_Type_t eSourceType);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_GetStandbySource
- **
- ** DESCRIPTION :
- ** Get Standby source
- **
- ** PARAMETERS :
- ** NULL
- **
- ** RETURN VALUES:
- ** APP_Source_Type_t
- *****************************************************************************/
- APP_Source_Type_t APP_GUIOBJ_Source_GetStandbySource(void);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_GetLastSource
- **
- ** DESCRIPTION :
- ** Get current source
- **
- ** PARAMETERS :
- ** eSourceType - current source type
- **
- ** RETURN VALUES:
- ** SP_SUCCESS
- *****************************************************************************/
- int APP_GUIOBJ_Source_GetLastSource(APP_Source_Type_t *eSourceType);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_SetAppSource
- **
- ** DESCRIPTION :
- ** Set current source, change source
- **
- ** PARAMETERS :
- ** eSourceType - current source type
- **
- ** RETURN VALUES:
- ** SP_SUCCESS
- *****************************************************************************/
- int APP_GUIOBJ_Source_SetAppSource(APP_Source_Type_t eSourceType);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_SetMidSource
- **
- ** DESCRIPTION :
- ** middleware source change with parameter
- **
- ** PARAMETERS :
- ** pSourType: NULL, means setting current app source
- ** other, means setting the specific source
- ** RETURN VALUES:
- ** SP_SUCCESS
- *****************************************************************************/
- INT32 APP_GUIOBJ_Source_SetMidSource(APP_Source_Type_t* pSourType);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_SetVideoMute
- **
- ** DESCRIPTION :
- **
- **
- ** PARAMETERS :
- ** bMute:
- **
- ** RETURN VALUES:
- ** SP_SUCCESS
- *****************************************************************************/
- void APP_GUIOBJ_Source_SetVideoMute(APP_BOOL IsMute,
- APP_BOOL fRefVideoInSatus, APP_Mute_Mode_e IsMode, APP_Source_Type_t SourceType);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_GetCurrSource
- **
- ** DESCRIPTION :
- ** Get current source
- **
- ** PARAMETERS :
- ** eSourceType - current source type
- **
- ** RETURN VALUES:
- ** SP_SUCCESS
- *****************************************************************************/
- int APP_GUIOBJ_Source_GetCurrSource(APP_Source_Type_t *eSourceType);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_GetMidSource
- **
- ** DESCRIPTION :
- ** Get current Mid source
- **
- ** PARAMETERS :
- ** eSourceType - current source type
- ** eSourcePort - current source pcb port
- ** RETURN VALUES:
- ** SP_SUCCESS
- *****************************************************************************/
- int APP_GUIOBJ_Source_GetMidSource(APP_Source_Type_t *eSourceType, InputSrc_t *eSourcePort);
- /*****************************************************************************
- ** FUNCTION : MAINAPP_FormatChangeCallback
- **
- ** DESCRIPTION :
- ** Middle display format change callback function, post format change message to system app
- **
- ** PARAMETERS :
- ** eAspect: aspect ratio value
- ** fRefAuto: aspect ratio auto flag
- ** fRefOverscan: aspect ratio Over scan flag
- **
- ** RETURN VALUES:
- ** None
- *****************************************************************************/
- void MAINAPP_FormatChangeCallback(DISP_Aspect_Ratio_e eAspect, Boolean fRefAuto, Boolean fRefOverscan);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_GetCurrentInputPin
- **
- ** DESCRIPTION :
- ** Get current Mid source Real Input Pin On PCB
- **
- ** PARAMETERS :
- ** InputVideoConf_st - current source Input Pin
- ** RETURN VALUES:
- ** SP_SUCCESS
- *****************************************************************************/
- int APP_GUIOBJ_Source_GetCurrentInputPin(InputVideoConf_st* stInputPin);
- int APP_GUIOBJ_Source_Set_Next_Pre_AppSource(UINT8 NextFlag);
- void APP_GOBJ_Source_Get_Support_InputSource_String(void);
- void APP_GOBJ_Source_Get_Support_InputSource_String_for_hotel(void);
- int APP_GUIOBJ_Source_LoopChangeSource_InSourceClass(APP_Source_Class_t eSourceClass);
- int APP_GUIOBJ_Source_SourceMapping_Table(APP_SourceConfig_t *eSourceConfigTable,UINT16 *eSourceConfigTableSize);
- int APP_GUIOBJ_Source_SetSourceMapping_Table(APP_SourceConfig_t *eSourceConfigTable);
- #ifdef CONFIG_HDMI_SUPPORT_MHL
- void APP_GOBJ_Source_CheckAndGetMHLSource(UINT8 *isMHLSource, APP_Source_Type_t *eMhlSrc);
- #endif
- #ifdef SUPPORT_FACTORY_AUTO_TEST
- int APP_GOBJ_Source_Set_SourceCheck(APP_Source_Type_t eSource);
- #endif
- int APP_GOBJ_Source_SourceCheck(APP_Source_Type_t eSource);
- void APP_Video_SetVideoMuteState(UINT8 state);
- UINT8 APP_GetVideoMuteState(void);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_SetSourceTransState
- **
- ** DESCRIPTION :
- ** Set source translate state
- **
- ** PARAMETERS :
- ** state - source translate state
- **
- ** RETURN VALUES:
- ** None
- *****************************************************************************/
- void APP_GUIOBJ_Source_SetSourceTransState(Boolean state);
- /*****************************************************************************
- ** FUNCTION : APP_GUIOBJ_Source_GetSourceTransState
- **
- ** DESCRIPTION :
- ** Get source translate state
- **
- ** PARAMETERS :
- ** None
- **
- ** RETURN VALUES:
- ** g_bSourceTranslate - source translate state
- *****************************************************************************/
- Boolean APP_GUIOBJ_Source_GetSourceTransState(void);
- #ifdef NET_SUPPORT
- int _APP_GOBJ_Source_CloseMainmenuRegion(void);
- #endif
- #ifdef CONFIG_SUPPORT_3D_EN
- int APP_GUIOBJ_3DMenu_GetMode(UINT32 *u32Mode);
- int APP_GUIOBJ_3DMenu_SetMode(UINT32 u32Mode);
- int APP_GUIOBJ_3DMenu_SetModeNoSave(UINT32 u32Mode);
- int APP_GUIOBJ_3DMenu_GetForce2D(UINT32 *u32Force2D);
- Boolean APP_GUIOBJ_3DMenu_FPType(void);
- INT32 APP_GUIOBJ_3DMenu_Timer(void);
- int APP_GUIOBJ_3DMenu_TimerCountdown(UINT32 u32TimerCountdown);
- UINT8 APP_GUIOBJ_3DMenu_getCurrentSourceSupport3DType(void);
- #endif
- #ifdef CONFIG_ISDB_SYSTEM
- void APP_GUIOBJ_Source_SetRFPort(rf_input_port_t port);
- rf_input_port_t APP_GUIOBJ_Source_GetRFPort(void);
- void APP_GUIOBJ_Source_SetAirSource(air_source_type_t source);
- air_source_type_t APP_GUIOBJ_Source_GetAirSource(void);
- void APP_GUIOBJ_Source_SetAtvSource(atv_source_type_t source);
- atv_source_type_t APP_GUIOBJ_Source_GetAtvSource(void);
- void APP_GUIOBJ_Source_ChangeAirCable(rf_input_port_t port);
- #endif
- #ifdef CONFIG_SUPPORT_ATV_SCAN_NTSCM_PALM_N
- void APP_GUIOBJ_Source_StoreATVType(atv_type_t SourceType);
- atv_type_t APP_GUIOBJ_Source_GetCurATVType(void);
- void APP_GUIOBJ_Source_ChangeATVDBType(atv_type_t SourceType);
- #endif
- INT32 APP_GUIOBJ_Source_GetSourceTypeSupportTypeByStrID(
- UINT32 u32StrID, APP_Source_Type_t* SourceType, e_SUPPORT_SOURCE_TYPE* SupportType);
- INT32 APP_GUIOBJ_Source_GetStrIDSupportTypeBySourceType(
- APP_Source_Type_t SourceType, UINT32 *u32StrID, e_SUPPORT_SOURCE_TYPE* SupportType);
- void APP_GUIOBJ_Source_GetVipSourceType(APP_Source_Type_t AppSourceType , SRCTYPE_t *pVipSourceType);
- void APP_GUIOBJ_Source_SetEnterProfileFlag(Boolean flag);
- #ifdef SUPPORT_CEC_TV
- UINT8 APP_GUIOBJ_Source_GetAmplifierPort(void);
- bool APP_GUIOBJ_Source_GetCECRefreshListFlag(void);
- void APP_GUIOBJ_Source_SetCECRefreshListFlag(bool flag);
- #endif
- APP_AudioIn_Type_e APP_GUIOBJ_Source_GetPCAudioLineIn(void);
- #ifdef SUPPORT_HIDE_TV_OR_ATV
- void APP_GOBJ_Source_TVSource_HideOrShow(Boolean bOnlyHideATV);
- #endif
- int APP_GOBJ_Source_Audio_Enable(void);
- #ifdef CONFIG_AUTO_DETECT_VALID_SOURCE
- void APP_GUIOBJ_Source_AutoDetectSourceInit();
- void APP_GUIOBJ_Source_AutoDetectSourceDisable();
- void APP_GUIOBJ_Source_AutoDetectSourceEnable();
- #endif
- #endif /* !_APP_GUIOBJ_SOURCE_H_ */
|