vdr  2.6.9
hdffcmd_av.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * HDFF firmware command interface library
4  *
5  * Copyright (C) 2011 Andreas Regel
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the
19  * Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *********************************************************************/
23 
24 #ifndef HDFFCMD_AV_H
25 #define HDFFCMD_AV_H
26 
28 {
32 
34 {
45 
47 {
55 
56 typedef enum HdffTvFormat_t
57 {
61 
63 {
72 
73 typedef struct HdffVideoFormat_t
74 {
80 
82 {
86 
88 {
95 
96 
97 int HdffCmdAvSetPlayMode(int OsdDevice, uint8_t PlayMode, int Realtime);
98 
99 int HdffCmdAvSetVideoPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid,
100  HdffVideoStreamType_t StreamType);
101 
102 int HdffCmdAvSetAudioPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid,
103  HdffAudioStreamType_t StreamType,
104  HdffAvContainerType_t ContainerType);
105 
106 int HdffCmdAvSetPcrPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid);
107 
108 int HdffCmdAvSetTeletextPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid);
109 
110 int HdffCmdAvSetVideoWindow(int OsdDevice, uint8_t DecoderIndex, int Enable,
111  uint16_t X, uint16_t Y, uint16_t Width,
112  uint16_t Height);
113 
114 int HdffCmdAvShowStillImage(int OsdDevice, uint8_t DecoderIndex,
115  const uint8_t * StillImage, int Size,
116  HdffVideoStreamType_t StreamType);
117 
118 int HdffCmdAvSetDecoderInput(int OsdDevice, uint8_t DecoderIndex,
119  uint8_t DemultiplexerIndex);
120 
121 int HdffCmdAvSetDemultiplexerInput(int OsdDevice, uint8_t DemultiplexerIndex,
122  uint8_t TsInputIndex);
123 
124 int HdffCmdAvSetVideoFormat(int OsdDevice, uint8_t DecoderIndex,
125  const HdffVideoFormat_t * VideoFormat);
126 
127 int HdffCmdAvSetVideoOutputMode(int OsdDevice, uint8_t DecoderIndex,
128  HdffVideoOutputMode_t OutputMode);
129 
130 int HdffCmdAvSetStc(int OsdDevice, uint8_t DecoderIndex, uint64_t Stc);
131 
132 int HdffCmdAvFlushBuffer(int OsdDevice, uint8_t DecoderIndex, int FlushAudio,
133  int FlushVideo);
134 
135 int HdffCmdAvEnableSync(int OsdDevice, uint8_t DecoderIndex, int SyncAudio,
136  int SyncVideo);
137 
138 int HdffCmdAvSetVideoSpeed(int OsdDevice, uint8_t DecoderIndex, int32_t Speed);
139 
140 int HdffCmdAvSetAudioSpeed(int OsdDevice, uint8_t DecoderIndex, int32_t Speed);
141 
142 int HdffCmdAvEnableVideoAfterStop(int OsdDevice, uint8_t DecoderIndex,
143  int EnableVideoAfterStop);
144 
145 int HdffCmdAvSetAudioDelay(int OsdDevice, int16_t Delay);
146 
147 int HdffCmdAvSetAudioDownmix(int OsdDevice,
148  HdffAudioDownmixMode_t DownmixMode);
149 
150 int HdffCmdAvSetAudioChannel(int OsdDevice, uint8_t AudioChannel);
151 
152 int HdffCmdAvSetSyncShift(int OsdDevice, int16_t SyncShift);
153 
154 int HdffCmdAvMuteAudio(int OsdDevice, uint8_t DecoderIndex, int Mute);
155 
156 int HdffCmdAvMuteVideo(int OsdDevice, uint8_t DecoderIndex, int Mute);
157 
158 
159 #endif /* HDFFCMD_AV_H */
int HdffCmdAvMuteVideo(int OsdDevice, uint8_t DecoderIndex, int Mute)
Definition: hdffcmd_av.c:490
HdffVideoStreamType_t
Definition: hdffcmd_av.h:47
@ HDFF_VIDEO_STREAM_H264
Definition: hdffcmd_av.h:51
@ HDFF_VIDEO_STREAM_MPEG4_ASP
Definition: hdffcmd_av.h:52
@ HDFF_VIDEO_STREAM_MPEG1
Definition: hdffcmd_av.h:49
@ HDFF_VIDEO_STREAM_MPEG2
Definition: hdffcmd_av.h:50
@ HDFF_VIDEO_STREAM_INVALID
Definition: hdffcmd_av.h:48
@ HDFF_VIDEO_STREAM_VC1
Definition: hdffcmd_av.h:53
HdffTvFormat_t
Definition: hdffcmd_av.h:57
@ HDFF_TV_FORMAT_4_BY_3
Definition: hdffcmd_av.h:58
@ HDFF_TV_FORMAT_16_BY_9
Definition: hdffcmd_av.h:59
int HdffCmdAvSetTeletextPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid)
Definition: hdffcmd_av.c:115
int HdffCmdAvSetPcrPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid)
Definition: hdffcmd_av.c:95
int HdffCmdAvSetVideoPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid, HdffVideoStreamType_t StreamType)
Definition: hdffcmd_av.c:51
int HdffCmdAvSetAudioPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid, HdffAudioStreamType_t StreamType, HdffAvContainerType_t ContainerType)
Definition: hdffcmd_av.c:72
HdffAudioDownmixMode_t
Definition: hdffcmd_av.h:88
@ HDFF_AUDIO_DOWNMIX_AUTOMATIC
Definition: hdffcmd_av.h:92
@ HDFF_AUDIO_DOWNMIX_ALWAYS
Definition: hdffcmd_av.h:91
@ HDFF_AUDIO_DOWNMIX_OFF
Definition: hdffcmd_av.h:89
@ HDFF_AUDIO_DOWNMIX_HDMI_ONLY
Definition: hdffcmd_av.h:93
@ HDFF_AUDIO_DOWNMIX_ANALOG
Definition: hdffcmd_av.h:90
int HdffCmdAvSetAudioSpeed(int OsdDevice, uint8_t DecoderIndex, int32_t Speed)
Definition: hdffcmd_av.c:364
int HdffCmdAvMuteAudio(int OsdDevice, uint8_t DecoderIndex, int Mute)
Definition: hdffcmd_av.c:472
int HdffCmdAvSetAudioChannel(int OsdDevice, uint8_t AudioChannel)
Definition: hdffcmd_av.c:436
int HdffCmdAvSetAudioDownmix(int OsdDevice, HdffAudioDownmixMode_t DownmixMode)
Definition: hdffcmd_av.c:419
int HdffCmdAvFlushBuffer(int OsdDevice, uint8_t DecoderIndex, int FlushAudio, int FlushVideo)
Definition: hdffcmd_av.c:291
int HdffCmdAvSetAudioDelay(int OsdDevice, int16_t Delay)
Definition: hdffcmd_av.c:402
HdffAudioStreamType_t
Definition: hdffcmd_av.h:34
@ HDFF_AUDIO_STREAM_AAC
Definition: hdffcmd_av.h:39
@ HDFF_AUDIO_STREAM_DTS
Definition: hdffcmd_av.h:43
@ HDFF_AUDIO_STREAM_MPEG2
Definition: hdffcmd_av.h:37
@ HDFF_AUDIO_STREAM_HE_AAC
Definition: hdffcmd_av.h:40
@ HDFF_AUDIO_STREAM_EAC3
Definition: hdffcmd_av.h:42
@ HDFF_AUDIO_STREAM_PCM
Definition: hdffcmd_av.h:41
@ HDFF_AUDIO_STREAM_AC3
Definition: hdffcmd_av.h:38
@ HDFF_AUDIO_STREAM_INVALID
Definition: hdffcmd_av.h:35
@ HDFF_AUDIO_STREAM_MPEG1
Definition: hdffcmd_av.h:36
int HdffCmdAvSetStc(int OsdDevice, uint8_t DecoderIndex, uint64_t Stc)
Definition: hdffcmd_av.c:271
HdffVideoConversion_t
Definition: hdffcmd_av.h:63
@ HDFF_VIDEO_CONVERSION_LETTERBOX_14_BY_9
Definition: hdffcmd_av.h:66
@ HDFF_VIDEO_CONVERSION_AUTOMATIC
Definition: hdffcmd_av.h:64
@ HDFF_VIDEO_CONVERSION_CENTRE_CUT_OUT
Definition: hdffcmd_av.h:68
@ HDFF_VIDEO_CONVERSION_ZOOM_16_BY_9
Definition: hdffcmd_av.h:70
@ HDFF_VIDEO_CONVERSION_ALWAYS_16_BY_9
Definition: hdffcmd_av.h:69
@ HDFF_VIDEO_CONVERSION_LETTERBOX_16_BY_9
Definition: hdffcmd_av.h:65
@ HDFF_VIDEO_CONVERSION_PILLARBOX
Definition: hdffcmd_av.h:67
int HdffCmdAvSetVideoSpeed(int OsdDevice, uint8_t DecoderIndex, int32_t Speed)
Definition: hdffcmd_av.c:345
int HdffCmdAvSetPlayMode(int OsdDevice, uint8_t PlayMode, int Realtime)
Definition: hdffcmd_av.c:33
int HdffCmdAvSetDecoderInput(int OsdDevice, uint8_t DecoderIndex, uint8_t DemultiplexerIndex)
Definition: hdffcmd_av.c:193
int HdffCmdAvSetDemultiplexerInput(int OsdDevice, uint8_t DemultiplexerIndex, uint8_t TsInputIndex)
Definition: hdffcmd_av.c:212
int HdffCmdAvEnableVideoAfterStop(int OsdDevice, uint8_t DecoderIndex, int EnableVideoAfterStop)
Definition: hdffcmd_av.c:383
struct HdffVideoFormat_t HdffVideoFormat_t
int HdffCmdAvSetVideoFormat(int OsdDevice, uint8_t DecoderIndex, const HdffVideoFormat_t *VideoFormat)
Definition: hdffcmd_av.c:231
int HdffCmdAvShowStillImage(int OsdDevice, uint8_t DecoderIndex, const uint8_t *StillImage, int Size, HdffVideoStreamType_t StreamType)
Definition: hdffcmd_av.c:163
HdffAvContainerType_t
Definition: hdffcmd_av.h:28
@ HDFF_AV_CONTAINER_PES_DVD
Definition: hdffcmd_av.h:30
@ HDFF_AV_CONTAINER_PES
Definition: hdffcmd_av.h:29
int HdffCmdAvEnableSync(int OsdDevice, uint8_t DecoderIndex, int SyncAudio, int SyncVideo)
Definition: hdffcmd_av.c:325
HdffVideoOutputMode_t
Definition: hdffcmd_av.h:82
@ HDFF_VIDEO_OUTPUT_CLONE
Definition: hdffcmd_av.h:83
@ HDFF_VIDEO_OUTPUT_HD_ONLY
Definition: hdffcmd_av.h:84
int HdffCmdAvSetVideoWindow(int OsdDevice, uint8_t DecoderIndex, int Enable, uint16_t X, uint16_t Y, uint16_t Width, uint16_t Height)
Definition: hdffcmd_av.c:135
int HdffCmdAvSetSyncShift(int OsdDevice, int16_t SyncShift)
Definition: hdffcmd_av.c:453
int HdffCmdAvSetVideoOutputMode(int OsdDevice, uint8_t DecoderIndex, HdffVideoOutputMode_t OutputMode)
Definition: hdffcmd_av.c:253
HdffVideoConversion_t VideoConversion
Definition: hdffcmd_av.h:78
HdffTvFormat_t TvFormat
Definition: hdffcmd_av.h:77