1#ifndef __THEATRE_H__ 2#define __THEATRE_H__ 3 4#define MODE_UNINITIALIZED 1 5#define MODE_INITIALIZATION_IN_PROGRESS 2 6#define MODE_INITIALIZED_FOR_TV_IN 3 7 8typedef struct { 9 GENERIC_BUS_Ptr VIP; 10 11 int theatre_num; 12 uint32_t theatre_id; 13 int mode; 14 const char* microc_path; 15 const char* microc_type; 16 17 uint16_t video_decoder_type; 18 uint32_t wStandard; 19 uint32_t wConnector; 20 int iHue; 21 int iSaturation; 22 uint32_t wSaturation_U; 23 uint32_t wSaturation_V; 24 int iBrightness; 25 int dbBrightnessRatio; 26 uint32_t wSharpness; 27 int iContrast; 28 int dbContrast; 29 uint32_t wInterlaced; 30 uint32_t wTunerConnector; 31 uint32_t wComp0Connector; 32 uint32_t wSVideo0Connector; 33 uint32_t dwHorzScalingRatio; 34 uint32_t dwVertScalingRatio; 35 36 } TheatreRec, * TheatrePtr; 37 38 39/* DO NOT FORGET to setup constants before calling InitTheatre */ 40#define xf86_InitTheatre InitTheatre 41_X_EXPORT void InitTheatre(TheatrePtr t); 42#define xf86_RT_SetTint RT_SetTint 43_X_EXPORT void RT_SetTint (TheatrePtr t, int hue); 44#define xf86_RT_SetSaturation RT_SetSaturation 45_X_EXPORT void RT_SetSaturation (TheatrePtr t, int Saturation); 46#define xf86_RT_SetBrightness RT_SetBrightness 47_X_EXPORT void RT_SetBrightness (TheatrePtr t, int Brightness); 48#define xf86_RT_SetSharpness RT_SetSharpness 49_X_EXPORT void RT_SetSharpness (TheatrePtr t, uint16_t wSharpness); 50#define xf86_RT_SetContrast RT_SetContrast 51_X_EXPORT void RT_SetContrast (TheatrePtr t, int Contrast); 52#define xf86_RT_SetInterlace RT_SetInterlace 53_X_EXPORT void RT_SetInterlace (TheatrePtr t, uint8_t bInterlace); 54#define xf86_RT_SetStandard RT_SetStandard 55_X_EXPORT void RT_SetStandard (TheatrePtr t, uint16_t wStandard); 56#define xf86_RT_SetOutputVideoSize RT_SetOutputVideoSize 57_X_EXPORT void RT_SetOutputVideoSize (TheatrePtr t, uint16_t wHorzSize, uint16_t wVertSize, uint8_t fCC_On, uint8_t fVBICap_On); 58#define xf86_RT_SetConnector RT_SetConnector 59_X_EXPORT void RT_SetConnector (TheatrePtr t, uint16_t wConnector, int tunerFlag); 60#define xf86_ResetTheatreRegsForNoTVout ResetTheatreRegsForNoTVout 61_X_EXPORT void ResetTheatreRegsForNoTVout(TheatrePtr t); 62#define xf86_ResetTheatreRegsForTVout ResetTheatreRegsForTVout 63_X_EXPORT void ResetTheatreRegsForTVout(TheatrePtr t); 64#define xf86_DumpRageTheatreRegs DumpRageTheatreRegs 65_X_EXPORT void DumpRageTheatreRegs(TheatrePtr t); 66#define xf86_DumpRageTheatreRegsByName DumpRageTheatreRegsByName 67_X_EXPORT void DumpRageTheatreRegsByName(TheatrePtr t); 68#define xf86_ShutdownTheatre ShutdownTheatre 69_X_EXPORT void ShutdownTheatre(TheatrePtr t); 70 71#endif 72