diff options
Diffstat (limited to 'Documentation/video4linux')
-rw-r--r-- | Documentation/video4linux/cx2341x/fw-encoder-api.txt | 20 |
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] | |||
100 | Name CX2341X_ENC_SET_BIT_RATE | 100 | Name CX2341X_ENC_SET_BIT_RATE |
101 | Enum 149/0x95 | 101 | Enum 149/0x95 |
102 | Description | 102 | Description |
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. | ||
104 | Param[0] | 105 | Param[0] |
105 | 0=variable bitrate, 1=constant bitrate | 106 | 0=variable bitrate, 1=constant bitrate |
106 | Param[1] | 107 | Param[1] |
107 | bitrate in bits per second | 108 | bitrate in bits per second |
108 | Param[2] | 109 | Param[2] |
109 | peak bitrate in bits per second, divided by 400 | 110 | peak bitrate in bits per second, divided by 400 |
111 | Param[3] | ||
112 | Mux bitrate in bits per second, divided by 400. May be 0 (default). | ||
113 | Param[4] | ||
114 | Rate Control VBR Padding | ||
115 | Param[5] | ||
116 | VBV Buffer used by encoder | ||
110 | 117 | ||
111 | ------------------------------------------------------------------------------- | 118 | ------------------------------------------------------------------------------- |
112 | 119 | ||
@@ -115,10 +122,11 @@ Enum 151/0x97 | |||
115 | Description | 122 | Description |
116 | Setup the GOP structure | 123 | Setup the GOP structure |
117 | Param[0] | 124 | Param[0] |
118 | GOP size | 125 | GOP size (maximum is 34) |
119 | Param[1] | 126 | Param[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 | |||
241 | Enum 185/0xB9 | 249 | Enum 185/0xB9 |
242 | Description | 250 | Description |
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. | ||
244 | Param[0] | 255 | Param[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. | ||
281 | Param[0] | 294 | Param[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 |