vdr  2.2.0
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 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 HdffCmdAvSetPlayMode(int OsdDevice, uint8_t PlayMode, int Realtime)
Definition: hdffcmd_av.c:33
int HdffCmdAvShowStillImage(int OsdDevice, uint8_t DecoderIndex, const uint8_t *StillImage, int Size, HdffVideoStreamType_t StreamType)
Definition: hdffcmd_av.c:163
int HdffCmdAvSetAudioSpeed(int OsdDevice, uint8_t DecoderIndex, int32_t Speed)
Definition: hdffcmd_av.c:364
int HdffCmdAvFlushBuffer(int OsdDevice, uint8_t DecoderIndex, int FlushAudio, int FlushVideo)
Definition: hdffcmd_av.c:291
HdffAudioStreamType_t
Definition: hdffcmd_av.h:33
int HdffCmdAvSetDecoderInput(int OsdDevice, uint8_t DecoderIndex, uint8_t DemultiplexerIndex)
Definition: hdffcmd_av.c:193
int HdffCmdAvSetVideoFormat(int OsdDevice, uint8_t DecoderIndex, const HdffVideoFormat_t *VideoFormat)
Definition: hdffcmd_av.c:231
int HdffCmdAvEnableVideoAfterStop(int OsdDevice, uint8_t DecoderIndex, int EnableVideoAfterStop)
Definition: hdffcmd_av.c:383
struct HdffVideoFormat_t HdffVideoFormat_t
int HdffCmdAvSetTeletextPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid)
Definition: hdffcmd_av.c:115
int HdffCmdAvEnableSync(int OsdDevice, uint8_t DecoderIndex, int SyncAudio, int SyncVideo)
Definition: hdffcmd_av.c:325
int HdffCmdAvSetDemultiplexerInput(int OsdDevice, uint8_t DemultiplexerIndex, uint8_t TsInputIndex)
Definition: hdffcmd_av.c:212
int HdffCmdAvMuteVideo(int OsdDevice, uint8_t DecoderIndex, int Mute)
Definition: hdffcmd_av.c:490
int HdffCmdAvSetVideoSpeed(int OsdDevice, uint8_t DecoderIndex, int32_t Speed)
Definition: hdffcmd_av.c:345
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
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 HdffCmdAvSetAudioPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid, HdffAudioStreamType_t StreamType, HdffAvContainerType_t ContainerType)
Definition: hdffcmd_av.c:72
HdffVideoOutputMode_t
Definition: hdffcmd_av.h:81
HdffTvFormat_t TvFormat
Definition: hdffcmd_av.h:77
HdffAvContainerType_t
Definition: hdffcmd_av.h:27
HdffTvFormat_t
Definition: hdffcmd_av.h:56
HdffAudioDownmixMode_t
Definition: hdffcmd_av.h:87
HdffVideoConversion_t VideoConversion
Definition: hdffcmd_av.h:78
HdffVideoStreamType_t
Definition: hdffcmd_av.h:46
int HdffCmdAvSetPcrPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid)
Definition: hdffcmd_av.c:95
int HdffCmdAvMuteAudio(int OsdDevice, uint8_t DecoderIndex, int Mute)
Definition: hdffcmd_av.c:472
int HdffCmdAvSetAudioDelay(int OsdDevice, int16_t Delay)
Definition: hdffcmd_av.c:402
int HdffCmdAvSetVideoPid(int OsdDevice, uint8_t DecoderIndex, uint16_t Pid, HdffVideoStreamType_t StreamType)
Definition: hdffcmd_av.c:51
HdffVideoConversion_t
Definition: hdffcmd_av.h:62
int HdffCmdAvSetStc(int OsdDevice, uint8_t DecoderIndex, uint64_t Stc)
Definition: hdffcmd_av.c:271