ATSC3  24.10.0
atsc_plf_av_control_template.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  *
4  * This file is part of a DTVKit Software Component
5  * You are permitted to copy, modify or distribute this file subject to the terms
6  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
7  *
8  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
10  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  *
12  * If you or your organisation is not a member of DTVKit then you have access
13  * to this source code outside of the terms of the licence agreement
14  * and you are expected to delete this and any associated files immediately.
15  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
16  *******************************************************************************/
17 
18 #include "atsc_basetype.h"
19 
30 void STB_AVInitialise(uint8_t audio_paths, uint8_t video_paths);
37 void STB_AVBlankVideo(uint8_t path, bool blank);
44 void STB_AVSetVideoSource(uint8_t path, int32_t source, uint32_t param);
51 bool STB_AVSetVideoCodec(uint8_t path, int32_t codec);
52 
59 int32_t STB_AVGetVideoCodec(uint8_t path);
66 void STB_AVStartVideoDecoding(uint8_t path);
67 
74 void STB_AVPauseVideoDecoding(uint8_t path);
75 
82 void STB_AVResumeVideoDecoding(uint8_t path);
83 
90 void STB_AVStopVideoDecoding(uint8_t decoder);
91 
98 void STB_AVSetAudioSource(uint8_t path, int32_t source, uint32_t param);
105 bool STB_AVSetAudioCodec(uint8_t path, int32_t codec);
106 
113 int32_t STB_AVGetAudioCodec(uint8_t path);
120 void STB_AVChangeAudioMode(uint8_t path, int32_t mode);
121 
128 void STB_AVStartAudioDecoding(uint8_t decoder);
135 void STB_AVStopAudioDecoding(uint8_t decoder);
142 void STB_AVSetAudioVolume(uint8_t path, uint8_t vol);
143 
150 uint8_t STB_AVGetAudioVolume(uint8_t path);
151 
158 void STB_AVSetAudioMute(uint8_t path, bool mute);
165 bool STB_AVGetAudioMute(uint8_t path);
172 void STB_AVGetSTC(uint8_t path, uint8_t stc[5]);
173 
180 void STB_AVSetTVType(uint8_t path, int32_t ratio, int32_t format);
181 
188 void STB_AVGetScreenSize(uint8_t path, uint16_t *width, uint16_t *height);
189 
196 void STB_AVSetAVOutputSource(int32_t output, int32_t source, uint32_t param);
197 
204 void STB_AVSetAVOutput(bool av_on);
205 
212 void STB_AVSetHDMIStandby(bool standby);
213 
220 uint8_t STB_AVGetHDMISupportedModes(int32_t **modes);
227 void STB_AVGetHDMINativeResolution(uint16_t *width, uint16_t *height);
234 void STB_AVEnableHDMIDecoding(void);
235 
242 void STB_AVDisableHDMIDecoding(void);
243 
250 bool STB_AVIsHDCPAuthenticated(void);
251 
258 int32_t STB_AVPlayAudioSample(uint8_t path, uint32_t loop_count);
265 int32_t STB_AVLoadAudioSample(uint8_t path, uint8_t *data, uint32_t size);
266 
273 int32_t STB_AVPauseAudioSample(uint8_t path);
280 int32_t STB_AVResumeAudioSample(uint8_t path);
281 
288 void STB_AVStopAudioSample(uint8_t path);
295 void STB_AVSetSpdifMode(uint8_t path, int32_t audio_type);
302 void STB_AVSetHDMIAudioMode(uint8_t path, int32_t audio_type);
309 void STB_AVSetAudioDelay(uint8_t path, uint16_t millisecond);
310 
317 void STB_AVSetVideoCallback(uint8_t path, void (*callback)(int32_t *, void *), void *user_data);
324 uint8_t STB_AVGetVideoFrameRate(uint8_t path);
331 int32_t STB_AVGetHDMINativeFormat(void);
332 
339 void STB_AVRegisterCcCallback(uint8_t path, void *context, int32_t callback);
int32_t STB_AVGetHDMINativeFormat(void)
Get the HDMI native format.
Definition: atsc_plf_av_control_template.cpp:538
void STB_AVEnableHDMIDecoding(void)
Enable the HDMI decoding.
Definition: atsc_plf_av_control_template.cpp:375
bool STB_AVIsHDCPAuthenticated(void)
HDCP is authenticated or not.
Definition: atsc_plf_av_control_template.cpp:399
void STB_AVDisableHDMIDecoding(void)
Disable the HDMI decoding.
Definition: atsc_plf_av_control_template.cpp:387