diff options
Diffstat (limited to 'Documentation/video4linux/cx2341x/fw-decoder-api.txt')
-rw-r--r-- | Documentation/video4linux/cx2341x/fw-decoder-api.txt | 58 |
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 78bf5f21e513..8c317b7a4fc9 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. |
22 | Param[1] | 22 | Param[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. |
33 | Param[0] | 33 | Param[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. | ||
35 | Param[1] | 39 | Param[1] |
36 | PTS low | 40 | PTS low |
37 | Param[2] | 41 | Param[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. | ||
63 | Param[1] | 69 | Param[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. | ||
65 | Param[2] | 73 | Param[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 |
70 | Param[3] | 78 | Param[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. | ||
72 | Param[4] | 83 | Param[4] |
73 | Mute audio: 0=disable, 1=enable | 84 | Mute audio: 0=disable, 1=enable |
74 | Param[5] | 85 | Param[5] |
75 | Display 0=frame, 1=field | 86 | Display 0=frame, 1=field |
76 | Param[6] | 87 | Param[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 |
213 | Param[0] | 224 | Param[0] |
214 | Dual mono mode action | 225 | Dual mono mode action |
226 | 0=Stereo, 1=Left, 2=Right, 3=Mono, 4=Swap, -1=Unchanged | ||
215 | Param[1] | 227 | Param[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 |
226 | Param[0] | 238 | Param[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. | ||
228 | Param[1] | 243 | Param[1] |
229 | Notification 0=disabled, 1=enabled | 244 | Notification 0=disabled, 1=enabled |
230 | Param[2] | 245 | Param[2] |
@@ -273,43 +288,6 @@ Param[3] | |||
273 | 288 | ||
274 | ------------------------------------------------------------------------------- | 289 | ------------------------------------------------------------------------------- |
275 | 290 | ||
276 | Name CX2341X_DEC_SET_AUDIO_OUTPUT | ||
277 | Enum 27/0x1B | ||
278 | Description | ||
279 | Select audio output format | ||
280 | Param[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 | |||
304 | Name CX2341X_DEC_SET_AV_DELAY | ||
305 | Enum 28/0x1C | ||
306 | Description | ||
307 | Set audio/video delay in 90Khz ticks | ||
308 | Param[0] | ||
309 | 0=A/V in sync, negative=audio lags, positive=video lags | ||
310 | |||
311 | ------------------------------------------------------------------------------- | ||
312 | |||
313 | Name CX2341X_DEC_SET_PREBUFFERING | 291 | Name CX2341X_DEC_SET_PREBUFFERING |
314 | Enum 30/0x1E | 292 | Enum 30/0x1E |
315 | Description | 293 | Description |