37 typedef enum e_stb_av_audio_mode
43 AV_AUDIO_MULTICHANNEL = 4
44 } E_STB_AV_AUDIO_MODE;
46 typedef enum e_stb_av_decode_source
50 } E_STB_AV_DECODE_SOURCE;
52 typedef enum e_stb_av_video_codec
54 AV_VIDEO_CODEC_AUTO = 0,
55 AV_VIDEO_CODEC_MPEG1 = 1,
56 AV_VIDEO_CODEC_MPEG2 = 2,
57 AV_VIDEO_CODEC_H264 = 3,
58 AV_VIDEO_CODEC_H265 = 4,
59 AV_VIDEO_CODEC_AVS = 5,
60 } E_STB_AV_VIDEO_CODEC;
62 typedef enum e_stb_av_audio_codec
64 AV_AUDIO_CODEC_AUTO = 0,
65 AV_AUDIO_CODEC_MP2 = 1,
66 AV_AUDIO_CODEC_MP3 = 2,
67 AV_AUDIO_CODEC_AC3 = 3,
68 AV_AUDIO_CODEC_EAC3 = 4,
69 AV_AUDIO_CODEC_AAC = 5,
70 AV_AUDIO_CODEC_HEAAC = 6,
71 AV_AUDIO_CODEC_AAC_ADTS = 7,
72 AV_AUDIO_CODEC_HEAAC_V2 = 8
73 } E_STB_AV_AUDIO_CODEC;
75 typedef E_ASPECT_RATIO E_STB_AV_ASPECT_RATIO;
77 typedef enum e_stb_av_video_format
79 VIDEO_FORMAT_UNDEFINED = 255,
80 VIDEO_FORMAT_AUTO = 0,
81 VIDEO_FORMAT_ORIGINAL,
88 VIDEO_FORMAT_SECAMBGH,
89 VIDEO_FORMAT_SECAMDKL,
93 VIDEO_FORMAT_720P50HD = VIDEO_FORMAT_720HD,
94 VIDEO_FORMAT_720P60HD,
96 VIDEO_FORMAT_1080P25HD,
97 VIDEO_FORMAT_1080P30HD,
98 VIDEO_FORMAT_1080I50HD,
99 VIDEO_FORMAT_1080P50HD,
100 VIDEO_FORMAT_1080P60HD,
101 VIDEO_FORMAT_2160P24UHD,
102 VIDEO_FORMAT_2160P25UHD,
103 VIDEO_FORMAT_2160P30UHD,
104 VIDEO_FORMAT_2160P50UHD,
105 VIDEO_FORMAT_2160P60UHD,
106 } E_STB_AV_VIDEO_FORMAT;
108 typedef enum e_stb_av_outputs
110 AV_OUTPUT_TV_SCART = 0,
111 AV_OUTPUT_VCR_SCART = 1,
112 AV_OUTPUT_AUX_SCART = 2,
116 typedef enum e_stb_av_sources
118 AV_SOURCE_ENCODER_SVIDEO = 0,
119 AV_SOURCE_ENCODER_RGB = 1,
120 AV_SOURCE_ENCODER_COMPOSITE = 2,
121 AV_SOURCE_VCR_SVIDEO = 3,
122 AV_SOURCE_VCR_RGB = 4,
123 AV_SOURCE_VCR_COMPOSITE = 5,
124 AV_SOURCE_AUX_SVIDEO = 6,
125 AV_SOURCE_AUX_RGB = 7,
126 AV_SOURCE_AUX_COMPOSITE = 8,
127 AV_SOURCE_DVD_SVIDEO = 9,
128 AV_SOURCE_DVD_RGB = 10,
129 AV_SOURCE_DVD_COMPOSITE = 11,
130 AV_SOURCE_ANALOG_TUNER = 12,
131 AV_SOURCE_ANALOG_TUNER_WITH_OSD = 13,
134 AV_SOURCE_TUNER = 16,
138 typedef enum e_stb_av_srm_reply
143 } E_STB_AV_SRM_REPLY;
147 VIDEO_INFO_VIDEO_RESOLUTION = 0x01,
148 VIDEO_INFO_SCREEN_RESOLUTION = 0x02,
149 VIDEO_INFO_VIDEO_ASPECT_RATIO = 0x04,
150 VIDEO_INFO_DISPLAY_ASPECT_RATIO = 0x08,
151 VIDEO_INFO_ASPECT_MODE = 0x10,
152 VIDEO_INFO_AFD = 0x20,
153 VIDEO_INFO_DECODER_STATUS = 0x40
154 } E_STB_AV_VIDEO_INFO_TYPE;
159 DECODER_STATUS_VIDEO,
160 DECODER_STATUS_IFRAME
161 } E_STB_AV_DECODER_STATUS;
166 DIGITAL_AUDIO_COMPRESSED,
168 } E_STB_DIGITAL_AUDIO_TYPE;
170 typedef enum e_stb_av_audio_route
172 SPEAKER_TV_N_AD_HEADPHONE_TV_N_AD,
173 SPEAKER_TV_ONLY_HEADPHONE_AD_ONLY,
174 SPEAKER_TV_N_AD_HEADPHONE_AD_ONLY,
175 SPEAKER_TV_ONLY_HEADPHONE_TV_N_AD,
177 } E_STB_AV_AUDIO_ROUTE;
184 BOOLEAN macrovision_set;
208 E_STB_AV_VIDEO_INFO_TYPE flags;
212 U16BIT screen_height;
213 E_STB_AV_ASPECT_RATIO video_aspect_ratio;
214 E_STB_AV_ASPECT_RATIO display_aspect_ratio;
216 E_STB_AV_DECODER_STATUS status;
448 void STB_AVSetTVType(U8BIT path, E_STB_AV_ASPECT_RATIO ratio, E_STB_AV_VIDEO_FORMAT format);
635 BOOLEAN include_slow_speeds);
669 E_STB_AV_SRM_REPLY
STB_AVApplySRM(U8BIT path, U8BIT *data, U32BIT len);
671 void STB_AVCECOneTouchPlay(
void);
672 E_STB_AV_VIDEO_FORMAT STB_AVGetHDMINativeFormat(
void);
673 void STB_AVPlayMp3(U8BIT path, U8BIT *buffer, U32BIT buffer_size);
674 void STB_AVStopMp3(U8BIT path);
U8BIT STB_AVGetVideoFrameRate(U8BIT path)
Returns the frame rate of the video being decoded.
Header file - Function prototypes for A/V control.
void STB_AVGetScreenSize(U8BIT path, U16BIT *width, U16BIT *height)
Returns the current size of the screen in pixels.
U8BIT STB_AVGetUhfModulatorChannel(void)
Gets the current RF modulator channel.
void STB_AVChangeADMode(U8BIT path, E_STB_AV_AUDIO_MODE mode)
Configures the audio description channel mode (stereo/left/right) in the case where dual-mono audio i...
void STB_AVEnableHDMIDecoding(void)
Enables AV output to HDMI.
BOOLEAN STB_AVIsHDCPAuthenticated(void)
Returns whether HDCP has authenticated.
Function prototypes for HW control.
S16BIT STB_AVGetMaxPlaySpeed(U8BIT video_decoder)
Returns maximum video play speed as a percentage.
E_STB_AV_AUDIO_CODEC STB_AVGetADCodec(U8BIT path)
Returns the codec previously set for audio description on the given audio path. This function is curr...
void STB_AVSetSpdifMode(U8BIT path, E_STB_DIGITAL_AUDIO_TYPE audio_type)
Sets the SPDIF output mode, PCM or compressed audio.
S16BIT STB_AVGetMinPlaySpeed(U8BIT video_decoder)
Returns minimum video play speed as a percentage.
void STB_AVHideIFrame(U8BIT path)
Hides the i-frame currently being displayed.
E_HW_STATUS STB_AVPlayAudioSample(U8BIT path, U32BIT loop_count)
Plays back a previously loaded audio sample.
void(* CC_DATA_CALLBACK)(U8BIT path, void *context, U8BIT *data, U16BIT data_len)
Callback function used to notify new closed caption data.
Definition: stbhwav.h:229
void STB_AVLoadIFrame(U8BIT path, U8BIT *data, U32BIT size)
Provides the video data for an i-frame for subsequent decode and display.
void STB_AVGetHDMINativeResolution(U16BIT *width, U16BIT *height)
Returns the native resolution, i.e. the resolution that is set with a call to STB_AVSetTVType(path, ratio, VIDEO_FORMAT_AUTO);.
void STB_AVStopAudioDecoding(U8BIT decoder)
Stops audio decoding on the given audio path.
BOOLEAN STB_AVSetIFrameCodec(U8BIT path, E_STB_AV_VIDEO_CODEC codec)
Sets the codec to be used when decoding the next i-frame from memory.
void STB_AVSetHDMIAudioMode(U8BIT path, E_STB_DIGITAL_AUDIO_TYPE audio_type)
Sets the HDMI audio output mode, PCM or compressed.
void STB_AVStopADDecoding(U8BIT decoder)
Stops decoding audio description on the given audio path.
void STB_AVGetSTC(U8BIT path, U8BIT stc[5])
Returns the current 33-bit System Time Clock from the PCR PES. On some systems, this information may ...
void STB_AVSetHDMIStandby(BOOLEAN standby)
Sets the standby state of the HDMI output.
void STB_AVSetAudioSource(U8BIT path, E_STB_AV_DECODE_SOURCE source, U32BIT param)
Sets the source of the input for the main audio on the given audio decoder path.
U8BIT STB_AVGetAudioVolume(U8BIT path)
Returns the current volume of the main audio output.
E_HW_STATUS STB_AVLoadAudioSample(U8BIT path, U8BIT *data, U32BIT size)
Loads an audio sample for subsequent playback.
void STB_AVSetVideoCallback(U8BIT path, void(*callback)(S_STB_AV_VIDEO_INFO *, void *), void *user_data)
Register callback for updated video information.
E_STB_AV_SRM_REPLY STB_AVApplySRM(U8BIT path, U8BIT *data, U32BIT len)
Apply System Renewability Message (SRM) to HDCP function.
U8BIT STB_AVGetADVolume(U8BIT path)
Returns the current volume of the audio description output.
void STB_AVShowIFrame(U8BIT path)
Decodes and displays the previously loaded i-frame data.
BOOLEAN STB_AVSetAudioCodec(U8BIT path, E_STB_AV_AUDIO_CODEC codec)
Sets the audio codec to be used when decoding audio with the given audio decoder path.
E_HW_STATUS STB_AVPauseAudioSample(U8BIT path)
Pauses playback of an audio sample.
S16BIT STB_AVGetNextPlaySpeed(U8BIT video_decoder, S16BIT speed, S16BIT inc, BOOLEAN include_slow_speeds)
Returns the next valid speed that is +/- inc above or below the given speed. Slow motion speeds (>-10...
BOOLEAN STB_AVSetVideoCodec(U8BIT path, E_STB_AV_VIDEO_CODEC codec)
Sets the video codec to be used when decoding video with the given video decoder path.
void STB_AVSetUhfModulatorChannel(U8BIT chan)
Sets the output channel of the RF Modulator.
void STB_AVSetVideoSource(U8BIT path, E_STB_AV_DECODE_SOURCE source, U32BIT param)
Sets the source of the input to the given video decoder path.
void STB_AVPauseVideoDecoding(U8BIT path)
Pauses video decoding on the given video path. The video should not be blanked.
void STB_AVSetAudioVolume(U8BIT path, U8BIT vol)
Sets the volume of the main audio output.
void STB_AVStartVideoDecoding(U8BIT path)
Starts video decoding on the given video path.
void STB_AVStopVideoDecoding(U8BIT decoder)
Stops video decoding on the given video path. The video is not expected to be blanked.
Definition: stbhwav.h:182
void STB_AVSetAudioMute(U8BIT path, BOOLEAN mute)
Mute or unmute the audio output on the given audio decoder path.
void STB_AVSetAVOutput(BOOLEAN av_on)
Turns on/off all AV outputs (e.g. for standby mode)
E_HW_STATUS STB_AVResumeAudioSample(U8BIT path)
Resumes playback of an audio sample.
void STB_AVStartADDecoding(U8BIT decoder)
Starts decoding audio description on the given audio path.
void STB_AVRegisterCcCallback(U8BIT path, void *context, CC_DATA_CALLBACK callback)
Registers CC callback function.
System Wide Global Technical Data Type Definitions.
BOOLEAN STB_AVSetADCodec(U8BIT path, E_STB_AV_AUDIO_CODEC codec)
Sets the codec to be used for audio description when decoding audio with the given audio decoder path...
void STB_AVApplyVideoTransformation(U8BIT path, S_RECTANGLE *input, S_RECTANGLE *output)
Apply video transformation.
void STB_AVInitialise(U8BIT audio_paths, U8BIT video_paths)
Initialises the AV components.
void STB_AVStartAudioDecoding(U8BIT decoder)
Starts audio decoding on the given audio path.
void STB_AVDisableHDMIDecoding(void)
Disables AV output to HDMI.
void STB_AVChangeAudioMode(U8BIT path, E_STB_AV_AUDIO_MODE mode)
Configures the main audio channel mode (stereo/left/right) in the case where dual-mono audio is used...
void STB_AVSetAVOutputSource(E_STB_AV_OUTPUTS output, E_STB_AV_SOURCES source, U32BIT param)
Routes a specified AV source to a specified AV output.
U8BIT STB_AVGetHDMISupportedModes(E_STB_AV_VIDEO_FORMAT **modes)
Returns the resolutions supported by the HDMI.
void STB_AVSetADVolume(U8BIT path, U8BIT vol)
Sets the volume of the audio description output.
BOOLEAN STB_AVGetAudioMute(U8BIT path)
Returns the current mute setting of the audio output on the given path.
void STB_AVSetADSource(U8BIT path, E_STB_AV_DECODE_SOURCE source, U32BIT param)
Sets the source of the input for the audio description audio on the given audio decoder path...
E_STB_AV_AUDIO_CODEC STB_AVGetAudioCodec(U8BIT path)
Returns the audio codec previously set for the given audio path. This function is currently unused wi...
void STB_AVStopAudioSample(U8BIT path)
Stops playback of an audio sample.
void STB_AVSetTVType(U8BIT path, E_STB_AV_ASPECT_RATIO ratio, E_STB_AV_VIDEO_FORMAT format)
Sets the aspect ratio and signal format for the connected television.
void STB_AVBlankVideo(U8BIT path, BOOLEAN blank)
Blanks or unblanks the video display.
void STB_AVResumeVideoDecoding(U8BIT path)
Resumes video decoding on the given video path that has previously been paused The video should not b...
E_STB_AV_VIDEO_CODEC STB_AVGetVideoCodec(U8BIT path)
Returns the video codec previously set for the given video path. This function is currently unused wi...
Definition: stbhwav.h:206
void STB_AVSetAudioDelay(U8BIT path, U16BIT millisecond)
Sets the audio delay on the given path.
void STB_AVSetCopyProtection(S_STB_AV_COPY_PROTECTION *copy_protection)
Apply the specified copy protection. This function is used for CI+.