vdr  2.0.4
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 */
160