aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-06-18 13:56:12 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 01:05:22 -0400
commit54f577b7f46f48b8bea0bd5eb8c42d711b3e006f (patch)
treec091a214f10db8466feac1901ae3612fbbfd17c3
parent18318e00040e0a5c783f6d79c136c2141b779dbd (diff)
V4L/DVB (4193): Update cx2341x fw encoding API doc.
Based on recent tests it turned out that some features are not implemented. This has now been documented. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--Documentation/video4linux/cx2341x/fw-encoder-api.txt20
1 files changed, 18 insertions, 2 deletions
diff --git a/Documentation/video4linux/cx2341x/fw-encoder-api.txt b/Documentation/video4linux/cx2341x/fw-encoder-api.txt
index 08ee9f5303f9..f74b0ae4a769 100644
--- a/Documentation/video4linux/cx2341x/fw-encoder-api.txt
+++ b/Documentation/video4linux/cx2341x/fw-encoder-api.txt
@@ -100,13 +100,20 @@ Param[1]
100Name CX2341X_ENC_SET_BIT_RATE 100Name CX2341X_ENC_SET_BIT_RATE
101Enum 149/0x95 101Enum 149/0x95
102Description 102Description
103 Assign average video stream bitrate. 103 Assign average video stream bitrate. Note on the last three params:
104 Param[3] and [4] seem to be always 0, param [5] doesn't seem to be used.
104Param[0] 105Param[0]
105 0=variable bitrate, 1=constant bitrate 106 0=variable bitrate, 1=constant bitrate
106Param[1] 107Param[1]
107 bitrate in bits per second 108 bitrate in bits per second
108Param[2] 109Param[2]
109 peak bitrate in bits per second, divided by 400 110 peak bitrate in bits per second, divided by 400
111Param[3]
112 Mux bitrate in bits per second, divided by 400. May be 0 (default).
113Param[4]
114 Rate Control VBR Padding
115Param[5]
116 VBV Buffer used by encoder
110 117
111------------------------------------------------------------------------------- 118-------------------------------------------------------------------------------
112 119
@@ -115,10 +122,11 @@ Enum 151/0x97
115Description 122Description
116 Setup the GOP structure 123 Setup the GOP structure
117Param[0] 124Param[0]
118 GOP size 125 GOP size (maximum is 34)
119Param[1] 126Param[1]
120 Number of B frames between the I and P frame, plus 1. 127 Number of B frames between the I and P frame, plus 1.
121 For example: IBBPBBPBBPBB --> GOP size: 12, number of B frames: 2+1 = 3 128 For example: IBBPBBPBBPBB --> GOP size: 12, number of B frames: 2+1 = 3
129 Note that GOP size must be a multiple of (B-frames + 1).
122 130
123------------------------------------------------------------------------------- 131-------------------------------------------------------------------------------
124 132
@@ -241,6 +249,9 @@ Name CX2341X_ENC_SET_STREAM_TYPE
241Enum 185/0xB9 249Enum 185/0xB9
242Description 250Description
243 Assign stream type 251 Assign stream type
252 Note: Transport stream is not working in recent firmwares.
253 And in older firmwares the timestamps in the TS seem to be
254 unreliable.
244Param[0] 255Param[0]
245 0=Program stream 256 0=Program stream
246 1=Transport stream 257 1=Transport stream
@@ -278,6 +289,8 @@ Description
278 '01' Layer III 289 '01' Layer III
279 '00' Undefined 290 '00' Undefined
280 This discrepancy may indicate a possible error in the documentation. 291 This discrepancy may indicate a possible error in the documentation.
292 Testing indicated that only Layer II is actually working, and that
293 the minimum bitrate should be 192 kbps.
281Param[0] 294Param[0]
282 Bitmask: 295 Bitmask:
283 0:1 '00' 44.1Khz 296 0:1 '00' 44.1Khz
@@ -313,6 +326,9 @@ Param[0]
313 '01'=JointStereo 326 '01'=JointStereo
314 '10'=Dual 327 '10'=Dual
315 '11'=Mono 328 '11'=Mono
329 Note: testing seems to indicate that Mono and possibly
330 JointStereo are not working (default to stereo).
331 Dual does work, though.
316 332
317 10:11 Mode Extension used in joint_stereo mode. 333 10:11 Mode Extension used in joint_stereo mode.
318 In Layer I and II they indicate which subbands are in 334 In Layer I and II they indicate which subbands are in