aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/video4linux/cx2341x/fw-decoder-api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/video4linux/cx2341x/fw-decoder-api.txt')
-rw-r--r--Documentation/video4linux/cx2341x/fw-decoder-api.txt58
1 files changed, 18 insertions, 40 deletions
diff --git a/Documentation/video4linux/cx2341x/fw-decoder-api.txt b/Documentation/video4linux/cx2341x/fw-decoder-api.txt
index 78bf5f21e51..8c317b7a4fc 100644
--- a/Documentation/video4linux/cx2341x/fw-decoder-api.txt
+++ b/Documentation/video4linux/cx2341x/fw-decoder-api.txt
@@ -21,7 +21,7 @@ Param[0]
21 0 based frame number in GOP to begin playback from. 21 0 based frame number in GOP to begin playback from.
22Param[1] 22Param[1]
23 Specifies the number of muted audio frames to play before normal 23 Specifies the number of muted audio frames to play before normal
24 audio resumes. 24 audio resumes. (This is not implemented in the firmware, leave at 0)
25 25
26------------------------------------------------------------------------------- 26-------------------------------------------------------------------------------
27 27
@@ -32,6 +32,10 @@ Description
32 playback stops at specified PTS. 32 playback stops at specified PTS.
33Param[0] 33Param[0]
34 Display 0=last frame, 1=black 34 Display 0=last frame, 1=black
35 Note: this takes effect immediately, so if you want to wait for a PTS,
36 then use '0', otherwise the screen goes to black at once.
37 You can call this later (even if there is no playback) with a 1 value
38 to set the screen to black.
35Param[1] 39Param[1]
36 PTS low 40 PTS low
37Param[2] 41Param[2]
@@ -60,8 +64,12 @@ Param[0]
60 31 Speed: 64 31 Speed:
61 '0' slow 65 '0' slow
62 '1' fast 66 '1' fast
67 Note: n is limited to 2. Anything higher does not result in
68 faster playback. Instead the host should start dropping frames.
63Param[1] 69Param[1]
64 Direction: 0=forward, 1=reverse 70 Direction: 0=forward, 1=reverse
71 Note: to make reverse playback work you have to write full GOPs in
72 reverse order.
65Param[2] 73Param[2]
66 Picture mask: 74 Picture mask:
67 1=I frames 75 1=I frames
@@ -69,13 +77,16 @@ Param[2]
69 7=I, P, B frames 77 7=I, P, B frames
70Param[3] 78Param[3]
71 B frames per GOP (for reverse play only) 79 B frames per GOP (for reverse play only)
80 Note: for reverse playback the Picture Mask should be set to I or I, P.
81 Adding B frames to the mask will result in corrupt video. This field
82 has to be set to the correct value in order to keep the timing correct.
72Param[4] 83Param[4]
73 Mute audio: 0=disable, 1=enable 84 Mute audio: 0=disable, 1=enable
74Param[5] 85Param[5]
75 Display 0=frame, 1=field 86 Display 0=frame, 1=field
76Param[6] 87Param[6]
77 Specifies the number of muted audio frames to play before normal audio 88 Specifies the number of muted audio frames to play before normal audio
78 resumes. 89 resumes. (Not implemented in the firmware, leave at 0)
79 90
80------------------------------------------------------------------------------- 91-------------------------------------------------------------------------------
81 92
@@ -212,6 +223,7 @@ Description
212 Select audio mode 223 Select audio mode
213Param[0] 224Param[0]
214 Dual mono mode action 225 Dual mono mode action
226 0=Stereo, 1=Left, 2=Right, 3=Mono, 4=Swap, -1=Unchanged
215Param[1] 227Param[1]
216 Stereo mode action: 228 Stereo mode action:
217 0=Stereo, 1=Left, 2=Right, 3=Mono, 4=Swap, -1=Unchanged 229 0=Stereo, 1=Left, 2=Right, 3=Mono, 4=Swap, -1=Unchanged
@@ -224,7 +236,10 @@ Description
224 Setup firmware to notify the host about a particular event. 236 Setup firmware to notify the host about a particular event.
225 Counterpart to API 0xD5 237 Counterpart to API 0xD5
226Param[0] 238Param[0]
227 Event: 0=Audio mode change between stereo and dual channel 239 Event: 0=Audio mode change between mono, (joint) stereo and dual channel.
240 Event: 3=Decoder started
241 Event: 4=Unknown: goes off 10-15 times per second while decoding.
242 Event: 5=Some sync event: goes off once per frame.
228Param[1] 243Param[1]
229 Notification 0=disabled, 1=enabled 244 Notification 0=disabled, 1=enabled
230Param[2] 245Param[2]
@@ -273,43 +288,6 @@ Param[3]
273 288
274------------------------------------------------------------------------------- 289-------------------------------------------------------------------------------
275 290
276Name CX2341X_DEC_SET_AUDIO_OUTPUT
277Enum 27/0x1B
278Description
279 Select audio output format
280Param[0]
281 Bitmask:
282 0:1 Data size:
283 '00' 16 bit
284 '01' 20 bit
285 '10' 24 bit
286 2:7 Unused
287 8:9 Mode:
288 '00' 2 channels
289 '01' 4 channels
290 '10' 6 channels
291 '11' 6 channels with one line data mode
292 (for left justified MSB first mode, 20 bit only)
293 10:11 Unused
294 12:13 Channel format:
295 '00' right justified MSB first mode
296 '01' left justified MSB first mode
297 '10' I2S mode
298 14:15 Unused
299 16:21 Right justify bit count
300 22:31 Unused
301
302-------------------------------------------------------------------------------
303
304Name CX2341X_DEC_SET_AV_DELAY
305Enum 28/0x1C
306Description
307 Set audio/video delay in 90Khz ticks
308Param[0]
309 0=A/V in sync, negative=audio lags, positive=video lags
310
311-------------------------------------------------------------------------------
312
313Name CX2341X_DEC_SET_PREBUFFERING 291Name CX2341X_DEC_SET_PREBUFFERING
314Enum 30/0x1E 292Enum 30/0x1E
315Description 293Description