1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
12 ***********************
13 Codec Control Reference
14 ***********************
16 Below all controls within the Codec control class are described. First
17 the generic controls, then controls specific for certain hardware.
21 These controls are applicable to all codecs and not just MPEG. The
22 defines are prefixed with V4L2_CID_MPEG/V4L2_MPEG as the controls
23 were originally made for MPEG codecs and later extended to cover all
27 Generic Codec Controls
28 ======================
36 ``V4L2_CID_MPEG_CLASS (class)``
37 The Codec class descriptor. Calling
38 :ref:`VIDIOC_QUERYCTRL` for this control will
39 return a description of this control class. This description can be
40 used as the caption of a Tab page in a GUI, for example.
42 .. _v4l2-mpeg-stream-type:
44 ``V4L2_CID_MPEG_STREAM_TYPE``
47 enum v4l2_mpeg_stream_type -
48 The MPEG-1, -2 or -4 output stream type. One cannot assume anything
49 here. Each hardware MPEG encoder tends to support different subsets
50 of the available MPEG stream types. This control is specific to
51 multiplexed MPEG streams. The currently defined stream types are:
59 * - ``V4L2_MPEG_STREAM_TYPE_MPEG2_PS``
60 - MPEG-2 program stream
61 * - ``V4L2_MPEG_STREAM_TYPE_MPEG2_TS``
62 - MPEG-2 transport stream
63 * - ``V4L2_MPEG_STREAM_TYPE_MPEG1_SS``
64 - MPEG-1 system stream
65 * - ``V4L2_MPEG_STREAM_TYPE_MPEG2_DVD``
66 - MPEG-2 DVD-compatible stream
67 * - ``V4L2_MPEG_STREAM_TYPE_MPEG1_VCD``
68 - MPEG-1 VCD-compatible stream
69 * - ``V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD``
70 - MPEG-2 SVCD-compatible stream
74 ``V4L2_CID_MPEG_STREAM_PID_PMT (integer)``
75 Program Map Table Packet ID for the MPEG transport stream (default
78 ``V4L2_CID_MPEG_STREAM_PID_AUDIO (integer)``
79 Audio Packet ID for the MPEG transport stream (default 256)
81 ``V4L2_CID_MPEG_STREAM_PID_VIDEO (integer)``
82 Video Packet ID for the MPEG transport stream (default 260)
84 ``V4L2_CID_MPEG_STREAM_PID_PCR (integer)``
85 Packet ID for the MPEG transport stream carrying PCR fields (default
88 ``V4L2_CID_MPEG_STREAM_PES_ID_AUDIO (integer)``
91 ``V4L2_CID_MPEG_STREAM_PES_ID_VIDEO (integer)``
94 .. _v4l2-mpeg-stream-vbi-fmt:
96 ``V4L2_CID_MPEG_STREAM_VBI_FMT``
99 enum v4l2_mpeg_stream_vbi_fmt -
100 Some cards can embed VBI data (e. g. Closed Caption, Teletext) into
101 the MPEG stream. This control selects whether VBI data should be
102 embedded, and if so, what embedding method should be used. The list
103 of possible VBI formats depends on the driver. The currently defined
104 VBI format types are:
108 .. tabularcolumns:: |p{6.6 cm}|p{10.9cm}|
114 * - ``V4L2_MPEG_STREAM_VBI_FMT_NONE``
115 - No VBI in the MPEG stream
116 * - ``V4L2_MPEG_STREAM_VBI_FMT_IVTV``
117 - VBI in private packets, IVTV format (documented in the kernel
119 ``Documentation/media/v4l-drivers/cx2341x.rst``)
123 .. _v4l2-mpeg-audio-sampling-freq:
125 ``V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ``
128 enum v4l2_mpeg_audio_sampling_freq -
129 MPEG Audio sampling frequency. Possible values are:
137 * - ``V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100``
139 * - ``V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000``
141 * - ``V4L2_MPEG_AUDIO_SAMPLING_FREQ_32000``
146 .. _v4l2-mpeg-audio-encoding:
148 ``V4L2_CID_MPEG_AUDIO_ENCODING``
151 enum v4l2_mpeg_audio_encoding -
152 MPEG Audio encoding. This control is specific to multiplexed MPEG
153 streams. Possible values are:
161 * - ``V4L2_MPEG_AUDIO_ENCODING_LAYER_1``
162 - MPEG-1/2 Layer I encoding
163 * - ``V4L2_MPEG_AUDIO_ENCODING_LAYER_2``
164 - MPEG-1/2 Layer II encoding
165 * - ``V4L2_MPEG_AUDIO_ENCODING_LAYER_3``
166 - MPEG-1/2 Layer III encoding
167 * - ``V4L2_MPEG_AUDIO_ENCODING_AAC``
168 - MPEG-2/4 AAC (Advanced Audio Coding)
169 * - ``V4L2_MPEG_AUDIO_ENCODING_AC3``
170 - AC-3 aka ATSC A/52 encoding
174 .. _v4l2-mpeg-audio-l1-bitrate:
176 ``V4L2_CID_MPEG_AUDIO_L1_BITRATE``
179 enum v4l2_mpeg_audio_l1_bitrate -
180 MPEG-1/2 Layer I bitrate. Possible values are:
188 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_32K``
190 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_64K``
192 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_96K``
194 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_128K``
196 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_160K``
198 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_192K``
200 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_224K``
202 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_256K``
204 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_288K``
206 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_320K``
208 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_352K``
210 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_384K``
212 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_416K``
214 * - ``V4L2_MPEG_AUDIO_L1_BITRATE_448K``
219 .. _v4l2-mpeg-audio-l2-bitrate:
221 ``V4L2_CID_MPEG_AUDIO_L2_BITRATE``
224 enum v4l2_mpeg_audio_l2_bitrate -
225 MPEG-1/2 Layer II bitrate. Possible values are:
233 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_32K``
235 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_48K``
237 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_56K``
239 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_64K``
241 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_80K``
243 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_96K``
245 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_112K``
247 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_128K``
249 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_160K``
251 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_192K``
253 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_224K``
255 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_256K``
257 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_320K``
259 * - ``V4L2_MPEG_AUDIO_L2_BITRATE_384K``
264 .. _v4l2-mpeg-audio-l3-bitrate:
266 ``V4L2_CID_MPEG_AUDIO_L3_BITRATE``
269 enum v4l2_mpeg_audio_l3_bitrate -
270 MPEG-1/2 Layer III bitrate. Possible values are:
278 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_32K``
280 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_40K``
282 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_48K``
284 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_56K``
286 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_64K``
288 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_80K``
290 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_96K``
292 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_112K``
294 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_128K``
296 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_160K``
298 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_192K``
300 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_224K``
302 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_256K``
304 * - ``V4L2_MPEG_AUDIO_L3_BITRATE_320K``
309 ``V4L2_CID_MPEG_AUDIO_AAC_BITRATE (integer)``
310 AAC bitrate in bits per second.
312 .. _v4l2-mpeg-audio-ac3-bitrate:
314 ``V4L2_CID_MPEG_AUDIO_AC3_BITRATE``
317 enum v4l2_mpeg_audio_ac3_bitrate -
318 AC-3 bitrate. Possible values are:
326 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_32K``
328 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_40K``
330 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_48K``
332 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_56K``
334 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_64K``
336 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_80K``
338 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_96K``
340 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_112K``
342 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_128K``
344 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_160K``
346 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_192K``
348 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_224K``
350 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_256K``
352 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_320K``
354 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_384K``
356 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_448K``
358 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_512K``
360 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_576K``
362 * - ``V4L2_MPEG_AUDIO_AC3_BITRATE_640K``
367 .. _v4l2-mpeg-audio-mode:
369 ``V4L2_CID_MPEG_AUDIO_MODE``
372 enum v4l2_mpeg_audio_mode -
373 MPEG Audio mode. Possible values are:
381 * - ``V4L2_MPEG_AUDIO_MODE_STEREO``
383 * - ``V4L2_MPEG_AUDIO_MODE_JOINT_STEREO``
385 * - ``V4L2_MPEG_AUDIO_MODE_DUAL``
387 * - ``V4L2_MPEG_AUDIO_MODE_MONO``
392 .. _v4l2-mpeg-audio-mode-extension:
394 ``V4L2_CID_MPEG_AUDIO_MODE_EXTENSION``
397 enum v4l2_mpeg_audio_mode_extension -
398 Joint Stereo audio mode extension. In Layer I and II they indicate
399 which subbands are in intensity stereo. All other subbands are coded
400 in stereo. Layer III is not (yet) supported. Possible values are:
408 * - ``V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_4``
409 - Subbands 4-31 in intensity stereo
410 * - ``V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_8``
411 - Subbands 8-31 in intensity stereo
412 * - ``V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_12``
413 - Subbands 12-31 in intensity stereo
414 * - ``V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_16``
415 - Subbands 16-31 in intensity stereo
419 .. _v4l2-mpeg-audio-emphasis:
421 ``V4L2_CID_MPEG_AUDIO_EMPHASIS``
424 enum v4l2_mpeg_audio_emphasis -
425 Audio Emphasis. Possible values are:
433 * - ``V4L2_MPEG_AUDIO_EMPHASIS_NONE``
435 * - ``V4L2_MPEG_AUDIO_EMPHASIS_50_DIV_15_uS``
436 - 50/15 microsecond emphasis
437 * - ``V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17``
442 .. _v4l2-mpeg-audio-crc:
444 ``V4L2_CID_MPEG_AUDIO_CRC``
447 enum v4l2_mpeg_audio_crc -
448 CRC method. Possible values are:
456 * - ``V4L2_MPEG_AUDIO_CRC_NONE``
458 * - ``V4L2_MPEG_AUDIO_CRC_CRC16``
459 - 16 bit parity check
463 ``V4L2_CID_MPEG_AUDIO_MUTE (boolean)``
464 Mutes the audio when capturing. This is not done by muting audio
465 hardware, which can still produce a slight hiss, but in the encoder
466 itself, guaranteeing a fixed and reproducible audio bitstream. 0 =
469 .. _v4l2-mpeg-audio-dec-playback:
471 ``V4L2_CID_MPEG_AUDIO_DEC_PLAYBACK``
474 enum v4l2_mpeg_audio_dec_playback -
475 Determines how monolingual audio should be played back. Possible
480 .. tabularcolumns:: |p{9.8cm}|p{7.7cm}|
486 * - ``V4L2_MPEG_AUDIO_DEC_PLAYBACK_AUTO``
487 - Automatically determines the best playback mode.
488 * - ``V4L2_MPEG_AUDIO_DEC_PLAYBACK_STEREO``
490 * - ``V4L2_MPEG_AUDIO_DEC_PLAYBACK_LEFT``
491 - Left channel playback.
492 * - ``V4L2_MPEG_AUDIO_DEC_PLAYBACK_RIGHT``
493 - Right channel playback.
494 * - ``V4L2_MPEG_AUDIO_DEC_PLAYBACK_MONO``
496 * - ``V4L2_MPEG_AUDIO_DEC_PLAYBACK_SWAPPED_STEREO``
497 - Stereo playback with swapped left and right channels.
501 .. _v4l2-mpeg-audio-dec-multilingual-playback:
503 ``V4L2_CID_MPEG_AUDIO_DEC_MULTILINGUAL_PLAYBACK``
506 enum v4l2_mpeg_audio_dec_playback -
507 Determines how multilingual audio should be played back.
509 .. _v4l2-mpeg-video-encoding:
511 ``V4L2_CID_MPEG_VIDEO_ENCODING``
514 enum v4l2_mpeg_video_encoding -
515 MPEG Video encoding method. This control is specific to multiplexed
516 MPEG streams. Possible values are:
524 * - ``V4L2_MPEG_VIDEO_ENCODING_MPEG_1``
525 - MPEG-1 Video encoding
526 * - ``V4L2_MPEG_VIDEO_ENCODING_MPEG_2``
527 - MPEG-2 Video encoding
528 * - ``V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC``
529 - MPEG-4 AVC (H.264) Video encoding
533 .. _v4l2-mpeg-video-aspect:
535 ``V4L2_CID_MPEG_VIDEO_ASPECT``
538 enum v4l2_mpeg_video_aspect -
539 Video aspect. Possible values are:
547 * - ``V4L2_MPEG_VIDEO_ASPECT_1x1``
548 * - ``V4L2_MPEG_VIDEO_ASPECT_4x3``
549 * - ``V4L2_MPEG_VIDEO_ASPECT_16x9``
550 * - ``V4L2_MPEG_VIDEO_ASPECT_221x100``
554 ``V4L2_CID_MPEG_VIDEO_B_FRAMES (integer)``
555 Number of B-Frames (default 2)
557 ``V4L2_CID_MPEG_VIDEO_GOP_SIZE (integer)``
558 GOP size (default 12)
560 ``V4L2_CID_MPEG_VIDEO_GOP_CLOSURE (boolean)``
561 GOP closure (default 1)
563 ``V4L2_CID_MPEG_VIDEO_PULLDOWN (boolean)``
564 Enable 3:2 pulldown (default 0)
566 .. _v4l2-mpeg-video-bitrate-mode:
568 ``V4L2_CID_MPEG_VIDEO_BITRATE_MODE``
571 enum v4l2_mpeg_video_bitrate_mode -
572 Video bitrate mode. Possible values are:
580 * - ``V4L2_MPEG_VIDEO_BITRATE_MODE_VBR``
582 * - ``V4L2_MPEG_VIDEO_BITRATE_MODE_CBR``
587 ``V4L2_CID_MPEG_VIDEO_BITRATE (integer)``
588 Video bitrate in bits per second.
590 ``V4L2_CID_MPEG_VIDEO_BITRATE_PEAK (integer)``
591 Peak video bitrate in bits per second. Must be larger or equal to
592 the average video bitrate. It is ignored if the video bitrate mode
593 is set to constant bitrate.
595 ``V4L2_CID_MPEG_VIDEO_TEMPORAL_DECIMATION (integer)``
596 For every captured frame, skip this many subsequent frames (default
599 ``V4L2_CID_MPEG_VIDEO_MUTE (boolean)``
600 "Mutes" the video to a fixed color when capturing. This is useful
601 for testing, to produce a fixed video bitstream. 0 = unmuted, 1 =
604 ``V4L2_CID_MPEG_VIDEO_MUTE_YUV (integer)``
605 Sets the "mute" color of the video. The supplied 32-bit integer is
606 interpreted as follows (bit 0 = least significant bit):
615 - V chrominance information
617 - U chrominance information
619 - Y luminance information
625 .. _v4l2-mpeg-video-dec-pts:
627 ``V4L2_CID_MPEG_VIDEO_DEC_PTS (integer64)``
628 This read-only control returns the 33-bit video Presentation Time
629 Stamp as defined in ITU T-REC-H.222.0 and ISO/IEC 13818-1 of the
630 currently displayed frame. This is the same PTS as is used in
631 :ref:`VIDIOC_DECODER_CMD`.
633 .. _v4l2-mpeg-video-dec-frame:
635 ``V4L2_CID_MPEG_VIDEO_DEC_FRAME (integer64)``
636 This read-only control returns the frame counter of the frame that
637 is currently displayed (decoded). This value is reset to 0 whenever
638 the decoder is started.
640 ``V4L2_CID_MPEG_VIDEO_DECODER_SLICE_INTERFACE (boolean)``
641 If enabled the decoder expects to receive a single slice per buffer,
642 otherwise the decoder expects a single frame in per buffer.
643 Applicable to the decoder, all codecs.
645 ``V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE (boolean)``
646 Enable writing sample aspect ratio in the Video Usability
647 Information. Applicable to the H264 encoder.
649 .. _v4l2-mpeg-video-h264-vui-sar-idc:
651 ``V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_IDC``
654 enum v4l2_mpeg_video_h264_vui_sar_idc -
655 VUI sample aspect ratio indicator for H.264 encoding. The value is
656 defined in the table E-1 in the standard. Applicable to the H264
665 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_UNSPECIFIED``
667 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_1x1``
669 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_12x11``
671 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_10x11``
673 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_16x11``
675 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_40x33``
677 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_24x11``
679 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_20x11``
681 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_32x11``
683 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_80x33``
685 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_18x11``
687 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_15x11``
689 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_64x33``
691 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_160x99``
693 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_4x3``
695 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_3x2``
697 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_2x1``
699 * - ``V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_EXTENDED``
704 ``V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_WIDTH (integer)``
705 Extended sample aspect ratio width for H.264 VUI encoding.
706 Applicable to the H264 encoder.
708 ``V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_HEIGHT (integer)``
709 Extended sample aspect ratio height for H.264 VUI encoding.
710 Applicable to the H264 encoder.
712 .. _v4l2-mpeg-video-h264-level:
714 ``V4L2_CID_MPEG_VIDEO_H264_LEVEL``
717 enum v4l2_mpeg_video_h264_level -
718 The level information for the H264 video elementary stream.
719 Applicable to the H264 encoder. Possible values are:
727 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_1_0``
729 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_1B``
731 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_1_1``
733 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_1_2``
735 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_1_3``
737 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_2_0``
739 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_2_1``
741 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_2_2``
743 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_3_0``
745 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_3_1``
747 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_3_2``
749 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_4_0``
751 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_4_1``
753 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_4_2``
755 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_5_0``
757 * - ``V4L2_MPEG_VIDEO_H264_LEVEL_5_1``
762 .. _v4l2-mpeg-video-mpeg2-level:
764 ``V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL``
767 enum v4l2_mpeg_video_mpeg2_level -
768 The level information for the MPEG2 elementary stream. Applicable to
769 MPEG2 codecs. Possible values are:
777 * - ``V4L2_MPEG_VIDEO_MPEG2_LEVEL_LOW``
779 * - ``V4L2_MPEG_VIDEO_MPEG2_LEVEL_MAIN``
781 * - ``V4L2_MPEG_VIDEO_MPEG2_LEVEL_HIGH_1440``
782 - High-1440 Level (H-14)
783 * - ``V4L2_MPEG_VIDEO_MPEG2_LEVEL_HIGH``
788 .. _v4l2-mpeg-video-mpeg4-level:
790 ``V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL``
793 enum v4l2_mpeg_video_mpeg4_level -
794 The level information for the MPEG4 elementary stream. Applicable to
795 the MPEG4 encoder. Possible values are:
803 * - ``V4L2_MPEG_VIDEO_MPEG4_LEVEL_0``
805 * - ``V4L2_MPEG_VIDEO_MPEG4_LEVEL_0B``
807 * - ``V4L2_MPEG_VIDEO_MPEG4_LEVEL_1``
809 * - ``V4L2_MPEG_VIDEO_MPEG4_LEVEL_2``
811 * - ``V4L2_MPEG_VIDEO_MPEG4_LEVEL_3``
813 * - ``V4L2_MPEG_VIDEO_MPEG4_LEVEL_3B``
815 * - ``V4L2_MPEG_VIDEO_MPEG4_LEVEL_4``
817 * - ``V4L2_MPEG_VIDEO_MPEG4_LEVEL_5``
822 .. _v4l2-mpeg-video-h264-profile:
824 ``V4L2_CID_MPEG_VIDEO_H264_PROFILE``
827 enum v4l2_mpeg_video_h264_profile -
828 The profile information for H264. Applicable to the H264 encoder.
837 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE``
839 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE``
840 - Constrained Baseline profile
841 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_MAIN``
843 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED``
845 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_HIGH``
847 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_10``
849 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422``
851 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_444_PREDICTIVE``
852 - High 444 Predictive profile
853 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_10_INTRA``
854 - High 10 Intra profile
855 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422_INTRA``
856 - High 422 Intra profile
857 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_444_INTRA``
858 - High 444 Intra profile
859 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_CAVLC_444_INTRA``
860 - CAVLC 444 Intra profile
861 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_BASELINE``
862 - Scalable Baseline profile
863 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_HIGH``
864 - Scalable High profile
865 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_HIGH_INTRA``
866 - Scalable High Intra profile
867 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_STEREO_HIGH``
868 - Stereo High profile
869 * - ``V4L2_MPEG_VIDEO_H264_PROFILE_MULTIVIEW_HIGH``
870 - Multiview High profile
874 .. _v4l2-mpeg-video-mpeg2-profile:
876 ``V4L2_CID_MPEG_VIDEO_MPEG2_PROFILE``
879 enum v4l2_mpeg_video_mpeg2_profile -
880 The profile information for MPEG2. Applicable to MPEG2 codecs.
889 * - ``V4L2_MPEG_VIDEO_MPEG2_PROFILE_SIMPLE``
890 - Simple profile (SP)
891 * - ``V4L2_MPEG_VIDEO_MPEG2_PROFILE_MAIN``
893 * - ``V4L2_MPEG_VIDEO_MPEG2_PROFILE_SNR_SCALABLE``
894 - SNR Scalable profile (SNR)
895 * - ``V4L2_MPEG_VIDEO_MPEG2_PROFILE_SPATIALLY_SCALABLE``
896 - Spatially Scalable profile (Spt)
897 * - ``V4L2_MPEG_VIDEO_MPEG2_PROFILE_HIGH``
899 * - ``V4L2_MPEG_VIDEO_MPEG2_PROFILE_MULTIVIEW``
900 - Multi-view profile (MVP)
904 .. _v4l2-mpeg-video-mpeg4-profile:
906 ``V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE``
909 enum v4l2_mpeg_video_mpeg4_profile -
910 The profile information for MPEG4. Applicable to the MPEG4 encoder.
919 * - ``V4L2_MPEG_VIDEO_MPEG4_PROFILE_SIMPLE``
921 * - ``V4L2_MPEG_VIDEO_MPEG4_PROFILE_ADVANCED_SIMPLE``
922 - Advanced Simple profile
923 * - ``V4L2_MPEG_VIDEO_MPEG4_PROFILE_CORE``
925 * - ``V4L2_MPEG_VIDEO_MPEG4_PROFILE_SIMPLE_SCALABLE``
926 - Simple Scalable profile
927 * - ``V4L2_MPEG_VIDEO_MPEG4_PROFILE_ADVANCED_CODING_EFFICIENCY``
932 ``V4L2_CID_MPEG_VIDEO_MAX_REF_PIC (integer)``
933 The maximum number of reference pictures used for encoding.
934 Applicable to the encoder.
936 .. _v4l2-mpeg-video-multi-slice-mode:
938 ``V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE``
941 enum v4l2_mpeg_video_multi_slice_mode -
942 Determines how the encoder should handle division of frame into
943 slices. Applicable to the encoder. Possible values are:
947 .. tabularcolumns:: |p{9.6cm}|p{7.9cm}|
953 * - ``V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_SINGLE``
954 - Single slice per frame.
955 * - ``V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_MB``
956 - Multiple slices with set maximum number of macroblocks per slice.
957 * - ``V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_BYTES``
958 - Multiple slice with set maximum size in bytes per slice.
962 ``V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_MB (integer)``
963 The maximum number of macroblocks in a slice. Used when
964 ``V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE`` is set to
965 ``V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_MB``. Applicable to the
968 ``V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_BYTES (integer)``
969 The maximum size of a slice in bytes. Used when
970 ``V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE`` is set to
971 ``V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_MAX_BYTES``. Applicable to the
974 .. _v4l2-mpeg-video-h264-loop-filter-mode:
976 ``V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_MODE``
979 enum v4l2_mpeg_video_h264_loop_filter_mode -
980 Loop filter mode for H264 encoder. Possible values are:
986 .. tabularcolumns:: |p{13.6cm}|p{3.9cm}|
992 * - ``V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_ENABLED``
993 - Loop filter is enabled.
994 * - ``V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED``
995 - Loop filter is disabled.
996 * - ``V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY``
997 - Loop filter is disabled at the slice boundary.
1004 ``V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_ALPHA (integer)``
1005 Loop filter alpha coefficient, defined in the H264 standard.
1006 This value corresponds to the slice_alpha_c0_offset_div2 slice header
1007 field, and should be in the range of -6 to +6, inclusive. The actual alpha
1008 offset FilterOffsetA is twice this value.
1009 Applicable to the H264 encoder.
1011 ``V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_BETA (integer)``
1012 Loop filter beta coefficient, defined in the H264 standard.
1013 This corresponds to the slice_beta_offset_div2 slice header field, and
1014 should be in the range of -6 to +6, inclusive. The actual beta offset
1015 FilterOffsetB is twice this value.
1016 Applicable to the H264 encoder.
1018 .. _v4l2-mpeg-video-h264-entropy-mode:
1020 ``V4L2_CID_MPEG_VIDEO_H264_ENTROPY_MODE``
1023 enum v4l2_mpeg_video_h264_entropy_mode -
1024 Entropy coding mode for H264 - CABAC/CAVALC. Applicable to the H264
1025 encoder. Possible values are:
1028 .. tabularcolumns:: |p{9.0cm}|p{8.5cm}|
1035 * - ``V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CAVLC``
1036 - Use CAVLC entropy coding.
1037 * - ``V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC``
1038 - Use CABAC entropy coding.
1042 ``V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM (boolean)``
1043 Enable 8X8 transform for H264. Applicable to the H264 encoder.
1045 ``V4L2_CID_MPEG_VIDEO_H264_CONSTRAINED_INTRA_PREDICTION (boolean)``
1046 Enable constrained intra prediction for H264. Applicable to the H264
1049 ``V4L2_CID_MPEG_VIDEO_H264_CHROMA_QP_INDEX_OFFSET (integer)``
1050 Specify the offset that should be added to the luma quantization
1051 parameter to determine the chroma quantization parameter. Applicable
1052 to the H264 encoder.
1054 ``V4L2_CID_MPEG_VIDEO_CYCLIC_INTRA_REFRESH_MB (integer)``
1055 Cyclic intra macroblock refresh. This is the number of continuous
1056 macroblocks refreshed every frame. Each frame a successive set of
1057 macroblocks is refreshed until the cycle completes and starts from
1058 the top of the frame. Applicable to H264, H263 and MPEG4 encoder.
1060 ``V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE (boolean)``
1061 Frame level rate control enable. If this control is disabled then
1062 the quantization parameter for each frame type is constant and set
1063 with appropriate controls (e.g.
1064 ``V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP``). If frame rate control is
1065 enabled then quantization parameter is adjusted to meet the chosen
1066 bitrate. Minimum and maximum value for the quantization parameter
1067 can be set with appropriate controls (e.g.
1068 ``V4L2_CID_MPEG_VIDEO_H263_MIN_QP``). Applicable to encoders.
1070 ``V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE (boolean)``
1071 Macroblock level rate control enable. Applicable to the MPEG4 and
1074 ``V4L2_CID_MPEG_VIDEO_MPEG4_QPEL (boolean)``
1075 Quarter pixel motion estimation for MPEG4. Applicable to the MPEG4
1078 ``V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP (integer)``
1079 Quantization parameter for an I frame for H263. Valid range: from 1
1082 ``V4L2_CID_MPEG_VIDEO_H263_MIN_QP (integer)``
1083 Minimum quantization parameter for H263. Valid range: from 1 to 31.
1085 ``V4L2_CID_MPEG_VIDEO_H263_MAX_QP (integer)``
1086 Maximum quantization parameter for H263. Valid range: from 1 to 31.
1088 ``V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP (integer)``
1089 Quantization parameter for an P frame for H263. Valid range: from 1
1092 ``V4L2_CID_MPEG_VIDEO_H263_B_FRAME_QP (integer)``
1093 Quantization parameter for an B frame for H263. Valid range: from 1
1096 ``V4L2_CID_MPEG_VIDEO_H264_I_FRAME_QP (integer)``
1097 Quantization parameter for an I frame for H264. Valid range: from 0
1100 ``V4L2_CID_MPEG_VIDEO_H264_MIN_QP (integer)``
1101 Minimum quantization parameter for H264. Valid range: from 0 to 51.
1103 ``V4L2_CID_MPEG_VIDEO_H264_MAX_QP (integer)``
1104 Maximum quantization parameter for H264. Valid range: from 0 to 51.
1106 ``V4L2_CID_MPEG_VIDEO_H264_P_FRAME_QP (integer)``
1107 Quantization parameter for an P frame for H264. Valid range: from 0
1110 ``V4L2_CID_MPEG_VIDEO_H264_B_FRAME_QP (integer)``
1111 Quantization parameter for an B frame for H264. Valid range: from 0
1114 ``V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MIN_QP (integer)``
1115 Minimum quantization parameter for the H264 I frame to limit I frame
1116 quality to a range. Valid range: from 0 to 51. If
1117 V4L2_CID_MPEG_VIDEO_H264_MIN_QP is also set, the quantization parameter
1118 should be chosen to meet both requirements.
1120 ``V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MAX_QP (integer)``
1121 Maximum quantization parameter for the H264 I frame to limit I frame
1122 quality to a range. Valid range: from 0 to 51. If
1123 V4L2_CID_MPEG_VIDEO_H264_MAX_QP is also set, the quantization parameter
1124 should be chosen to meet both requirements.
1126 ``V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MIN_QP (integer)``
1127 Minimum quantization parameter for the H264 P frame to limit P frame
1128 quality to a range. Valid range: from 0 to 51. If
1129 V4L2_CID_MPEG_VIDEO_H264_MIN_QP is also set, the quantization parameter
1130 should be chosen to meet both requirements.
1132 ``V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MAX_QP (integer)``
1133 Maximum quantization parameter for the H264 P frame to limit P frame
1134 quality to a range. Valid range: from 0 to 51. If
1135 V4L2_CID_MPEG_VIDEO_H264_MAX_QP is also set, the quantization parameter
1136 should be chosen to meet both requirements.
1138 ``V4L2_CID_MPEG_VIDEO_MPEG4_I_FRAME_QP (integer)``
1139 Quantization parameter for an I frame for MPEG4. Valid range: from 1
1142 ``V4L2_CID_MPEG_VIDEO_MPEG4_MIN_QP (integer)``
1143 Minimum quantization parameter for MPEG4. Valid range: from 1 to 31.
1145 ``V4L2_CID_MPEG_VIDEO_MPEG4_MAX_QP (integer)``
1146 Maximum quantization parameter for MPEG4. Valid range: from 1 to 31.
1148 ``V4L2_CID_MPEG_VIDEO_MPEG4_P_FRAME_QP (integer)``
1149 Quantization parameter for an P frame for MPEG4. Valid range: from 1
1152 ``V4L2_CID_MPEG_VIDEO_MPEG4_B_FRAME_QP (integer)``
1153 Quantization parameter for an B frame for MPEG4. Valid range: from 1
1156 ``V4L2_CID_MPEG_VIDEO_VBV_SIZE (integer)``
1157 The Video Buffer Verifier size in kilobytes, it is used as a
1158 limitation of frame skip. The VBV is defined in the standard as a
1159 mean to verify that the produced stream will be successfully
1160 decoded. The standard describes it as "Part of a hypothetical
1161 decoder that is conceptually connected to the output of the encoder.
1162 Its purpose is to provide a constraint on the variability of the
1163 data rate that an encoder or editing process may produce.".
1164 Applicable to the MPEG1, MPEG2, MPEG4 encoders.
1166 .. _v4l2-mpeg-video-vbv-delay:
1168 ``V4L2_CID_MPEG_VIDEO_VBV_DELAY (integer)``
1169 Sets the initial delay in milliseconds for VBV buffer control.
1171 .. _v4l2-mpeg-video-hor-search-range:
1173 ``V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE (integer)``
1174 Horizontal search range defines maximum horizontal search area in
1175 pixels to search and match for the present Macroblock (MB) in the
1176 reference picture. This V4L2 control macro is used to set horizontal
1177 search range for motion estimation module in video encoder.
1179 .. _v4l2-mpeg-video-vert-search-range:
1181 ``V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE (integer)``
1182 Vertical search range defines maximum vertical search area in pixels
1183 to search and match for the present Macroblock (MB) in the reference
1184 picture. This V4L2 control macro is used to set vertical search
1185 range for motion estimation module in video encoder.
1187 .. _v4l2-mpeg-video-force-key-frame:
1189 ``V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME (button)``
1190 Force a key frame for the next queued buffer. Applicable to
1191 encoders. This is a general, codec-agnostic keyframe control.
1193 ``V4L2_CID_MPEG_VIDEO_H264_CPB_SIZE (integer)``
1194 The Coded Picture Buffer size in kilobytes, it is used as a
1195 limitation of frame skip. The CPB is defined in the H264 standard as
1196 a mean to verify that the produced stream will be successfully
1197 decoded. Applicable to the H264 encoder.
1199 ``V4L2_CID_MPEG_VIDEO_H264_I_PERIOD (integer)``
1200 Period between I-frames in the open GOP for H264. In case of an open
1201 GOP this is the period between two I-frames. The period between IDR
1202 (Instantaneous Decoding Refresh) frames is taken from the GOP_SIZE
1203 control. An IDR frame, which stands for Instantaneous Decoding
1204 Refresh is an I-frame after which no prior frames are referenced.
1205 This means that a stream can be restarted from an IDR frame without
1206 the need to store or decode any previous frames. Applicable to the
1209 .. _v4l2-mpeg-video-header-mode:
1211 ``V4L2_CID_MPEG_VIDEO_HEADER_MODE``
1214 enum v4l2_mpeg_video_header_mode -
1215 Determines whether the header is returned as the first buffer or is
1216 it returned together with the first frame. Applicable to encoders.
1217 Possible values are:
1223 .. tabularcolumns:: |p{10.3cm}|p{7.2cm}|
1229 * - ``V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE``
1230 - The stream header is returned separately in the first buffer.
1231 * - ``V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME``
1232 - The stream header is returned together with the first encoded
1240 ``V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER (boolean)``
1241 Repeat the video sequence headers. Repeating these headers makes
1242 random access to the video stream easier. Applicable to the MPEG1, 2
1245 ``V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER (boolean)``
1246 Enabled the deblocking post processing filter for MPEG4 decoder.
1247 Applicable to the MPEG4 decoder.
1249 ``V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_RES (integer)``
1250 vop_time_increment_resolution value for MPEG4. Applicable to the
1253 ``V4L2_CID_MPEG_VIDEO_MPEG4_VOP_TIME_INC (integer)``
1254 vop_time_increment value for MPEG4. Applicable to the MPEG4
1257 ``V4L2_CID_MPEG_VIDEO_H264_SEI_FRAME_PACKING (boolean)``
1258 Enable generation of frame packing supplemental enhancement
1259 information in the encoded bitstream. The frame packing SEI message
1260 contains the arrangement of L and R planes for 3D viewing.
1261 Applicable to the H264 encoder.
1263 ``V4L2_CID_MPEG_VIDEO_H264_SEI_FP_CURRENT_FRAME_0 (boolean)``
1264 Sets current frame as frame0 in frame packing SEI. Applicable to the
1267 .. _v4l2-mpeg-video-h264-sei-fp-arrangement-type:
1269 ``V4L2_CID_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE``
1272 enum v4l2_mpeg_video_h264_sei_fp_arrangement_type -
1273 Frame packing arrangement type for H264 SEI. Applicable to the H264
1274 encoder. Possible values are:
1280 .. tabularcolumns:: |p{12cm}|p{5.5cm}|
1286 * - ``V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_CHEKERBOARD``
1287 - Pixels are alternatively from L and R.
1288 * - ``V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_COLUMN``
1289 - L and R are interlaced by column.
1290 * - ``V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_ROW``
1291 - L and R are interlaced by row.
1292 * - ``V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_SIDE_BY_SIDE``
1293 - L is on the left, R on the right.
1294 * - ``V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_TOP_BOTTOM``
1295 - L is on top, R on bottom.
1296 * - ``V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_TEMPORAL``
1297 - One view per frame.
1305 ``V4L2_CID_MPEG_VIDEO_H264_FMO (boolean)``
1306 Enables flexible macroblock ordering in the encoded bitstream. It is
1307 a technique used for restructuring the ordering of macroblocks in
1308 pictures. Applicable to the H264 encoder.
1310 .. _v4l2-mpeg-video-h264-fmo-map-type:
1312 ``V4L2_CID_MPEG_VIDEO_H264_FMO_MAP_TYPE``
1315 enum v4l2_mpeg_video_h264_fmo_map_type -
1316 When using FMO, the map type divides the image in different scan
1317 patterns of macroblocks. Applicable to the H264 encoder. Possible
1324 .. tabularcolumns:: |p{12.5cm}|p{5.0cm}|
1330 * - ``V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_INTERLEAVED_SLICES``
1331 - Slices are interleaved one after other with macroblocks in run
1333 * - ``V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_SCATTERED_SLICES``
1334 - Scatters the macroblocks based on a mathematical function known to
1335 both encoder and decoder.
1336 * - ``V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_FOREGROUND_WITH_LEFT_OVER``
1337 - Macroblocks arranged in rectangular areas or regions of interest.
1338 * - ``V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_BOX_OUT``
1339 - Slice groups grow in a cyclic way from centre to outwards.
1340 * - ``V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_RASTER_SCAN``
1341 - Slice groups grow in raster scan pattern from left to right.
1342 * - ``V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_WIPE_SCAN``
1343 - Slice groups grow in wipe scan pattern from top to bottom.
1344 * - ``V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_EXPLICIT``
1345 - User defined map type.
1353 ``V4L2_CID_MPEG_VIDEO_H264_FMO_SLICE_GROUP (integer)``
1354 Number of slice groups in FMO. Applicable to the H264 encoder.
1356 .. _v4l2-mpeg-video-h264-fmo-change-direction:
1358 ``V4L2_CID_MPEG_VIDEO_H264_FMO_CHANGE_DIRECTION``
1361 enum v4l2_mpeg_video_h264_fmo_change_dir -
1362 Specifies a direction of the slice group change for raster and wipe
1363 maps. Applicable to the H264 encoder. Possible values are:
1371 * - ``V4L2_MPEG_VIDEO_H264_FMO_CHANGE_DIR_RIGHT``
1372 - Raster scan or wipe right.
1373 * - ``V4L2_MPEG_VIDEO_H264_FMO_CHANGE_DIR_LEFT``
1374 - Reverse raster scan or wipe left.
1378 ``V4L2_CID_MPEG_VIDEO_H264_FMO_CHANGE_RATE (integer)``
1379 Specifies the size of the first slice group for raster and wipe map.
1380 Applicable to the H264 encoder.
1382 ``V4L2_CID_MPEG_VIDEO_H264_FMO_RUN_LENGTH (integer)``
1383 Specifies the number of consecutive macroblocks for the interleaved
1384 map. Applicable to the H264 encoder.
1386 ``V4L2_CID_MPEG_VIDEO_H264_ASO (boolean)``
1387 Enables arbitrary slice ordering in encoded bitstream. Applicable to
1390 ``V4L2_CID_MPEG_VIDEO_H264_ASO_SLICE_ORDER (integer)``
1391 Specifies the slice order in ASO. Applicable to the H264 encoder.
1392 The supplied 32-bit integer is interpreted as follows (bit 0 = least
1404 - Slice position or order
1408 ``V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING (boolean)``
1409 Enables H264 hierarchical coding. Applicable to the H264 encoder.
1411 .. _v4l2-mpeg-video-h264-hierarchical-coding-type:
1413 ``V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_TYPE``
1416 enum v4l2_mpeg_video_h264_hierarchical_coding_type -
1417 Specifies the hierarchical coding type. Applicable to the H264
1418 encoder. Possible values are:
1426 * - ``V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_B``
1427 - Hierarchical B coding.
1428 * - ``V4L2_MPEG_VIDEO_H264_HIERARCHICAL_CODING_P``
1429 - Hierarchical P coding.
1433 ``V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_LAYER (integer)``
1434 Specifies the number of hierarchical coding layers. Applicable to
1437 ``V4L2_CID_MPEG_VIDEO_H264_HIERARCHICAL_CODING_LAYER_QP (integer)``
1438 Specifies a user defined QP for each layer. Applicable to the H264
1439 encoder. The supplied 32-bit integer is interpreted as follows (bit
1440 0 = least significant bit):
1456 ``V4L2_CID_MPEG_VIDEO_H264_SPS (struct)``
1457 Specifies the sequence parameter set (as extracted from the
1458 bitstream) for the associated H264 slice data. This includes the
1459 necessary parameters for configuring a stateless hardware decoding
1460 pipeline for H264. The bitstream parameters are defined according
1461 to :ref:`h264`, section 7.4.2.1.1 "Sequence Parameter Set Data
1462 Semantics". For further documentation, refer to the above
1463 specification, unless there is an explicit comment stating
1468 This compound control is not yet part of the public kernel API and
1469 it is expected to change.
1471 .. c:type:: v4l2_ctrl_h264_sps
1473 .. cssclass:: longtable
1475 .. flat-table:: struct v4l2_ctrl_h264_sps
1484 - ``constraint_set_flags``
1485 - See :ref:`Sequence Parameter Set Constraints Set Flags <h264_sps_constraints_set_flags>`
1490 - ``seq_parameter_set_id``
1493 - ``chroma_format_idc``
1496 - ``bit_depth_luma_minus8``
1499 - ``bit_depth_chroma_minus8``
1502 - ``log2_max_frame_num_minus4``
1505 - ``pic_order_cnt_type``
1508 - ``log2_max_pic_order_cnt_lsb_minus4``
1511 - ``max_num_ref_frames``
1514 - ``num_ref_frames_in_pic_order_cnt_cycle``
1517 - ``offset_for_ref_frame[255]``
1520 - ``offset_for_non_ref_pic``
1523 - ``offset_for_top_to_bottom_field``
1526 - ``pic_width_in_mbs_minus1``
1529 - ``pic_height_in_map_units_minus1``
1533 - See :ref:`Sequence Parameter Set Flags <h264_sps_flags>`
1535 .. _h264_sps_constraints_set_flags:
1537 ``Sequence Parameter Set Constraints Set Flags``
1539 .. cssclass:: longtable
1546 * - ``V4L2_H264_SPS_CONSTRAINT_SET0_FLAG``
1549 * - ``V4L2_H264_SPS_CONSTRAINT_SET1_FLAG``
1552 * - ``V4L2_H264_SPS_CONSTRAINT_SET2_FLAG``
1555 * - ``V4L2_H264_SPS_CONSTRAINT_SET3_FLAG``
1558 * - ``V4L2_H264_SPS_CONSTRAINT_SET4_FLAG``
1561 * - ``V4L2_H264_SPS_CONSTRAINT_SET5_FLAG``
1567 ``Sequence Parameter Set Flags``
1569 .. cssclass:: longtable
1576 * - ``V4L2_H264_SPS_FLAG_SEPARATE_COLOUR_PLANE``
1579 * - ``V4L2_H264_SPS_FLAG_QPPRIME_Y_ZERO_TRANSFORM_BYPASS``
1582 * - ``V4L2_H264_SPS_FLAG_DELTA_PIC_ORDER_ALWAYS_ZERO``
1585 * - ``V4L2_H264_SPS_FLAG_GAPS_IN_FRAME_NUM_VALUE_ALLOWED``
1588 * - ``V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY``
1591 * - ``V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD``
1594 * - ``V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE``
1598 ``V4L2_CID_MPEG_VIDEO_H264_PPS (struct)``
1599 Specifies the picture parameter set (as extracted from the
1600 bitstream) for the associated H264 slice data. This includes the
1601 necessary parameters for configuring a stateless hardware decoding
1602 pipeline for H264. The bitstream parameters are defined according
1603 to :ref:`h264`, section 7.4.2.2 "Picture Parameter Set RBSP
1604 Semantics". For further documentation, refer to the above
1605 specification, unless there is an explicit comment stating
1610 This compound control is not yet part of the public kernel API and
1611 it is expected to change.
1613 .. c:type:: v4l2_ctrl_h264_pps
1615 .. cssclass:: longtable
1617 .. flat-table:: struct v4l2_ctrl_h264_pps
1623 - ``pic_parameter_set_id``
1626 - ``seq_parameter_set_id``
1629 - ``num_slice_groups_minus1``
1632 - ``num_ref_idx_l0_default_active_minus1``
1635 - ``num_ref_idx_l1_default_active_minus1``
1638 - ``weighted_bipred_idc``
1641 - ``pic_init_qp_minus26``
1644 - ``pic_init_qs_minus26``
1647 - ``chroma_qp_index_offset``
1650 - ``second_chroma_qp_index_offset``
1654 - See :ref:`Picture Parameter Set Flags <h264_pps_flags>`
1658 ``Picture Parameter Set Flags``
1660 .. cssclass:: longtable
1667 * - ``V4L2_H264_PPS_FLAG_ENTROPY_CODING_MODE``
1670 * - ``V4L2_H264_PPS_FLAG_BOTTOM_FIELD_PIC_ORDER_IN_FRAME_PRESENT``
1673 * - ``V4L2_H264_PPS_FLAG_WEIGHTED_PRED``
1676 * - ``V4L2_H264_PPS_FLAG_DEBLOCKING_FILTER_CONTROL_PRESENT``
1679 * - ``V4L2_H264_PPS_FLAG_CONSTRAINED_INTRA_PRED``
1682 * - ``V4L2_H264_PPS_FLAG_REDUNDANT_PIC_CNT_PRESENT``
1685 * - ``V4L2_H264_PPS_FLAG_TRANSFORM_8X8_MODE``
1688 * - ``V4L2_H264_PPS_FLAG_PIC_SCALING_MATRIX_PRESENT``
1692 ``V4L2_CID_MPEG_VIDEO_H264_SCALING_MATRIX (struct)``
1693 Specifies the scaling matrix (as extracted from the bitstream) for
1694 the associated H264 slice data. The bitstream parameters are
1695 defined according to :ref:`h264`, section 7.4.2.1.1.1 "Scaling
1696 List Semantics". For further documentation, refer to the above
1697 specification, unless there is an explicit comment stating
1702 This compound control is not yet part of the public kernel API and
1703 it is expected to change.
1705 .. c:type:: v4l2_ctrl_h264_scaling_matrix
1707 .. cssclass:: longtable
1709 .. flat-table:: struct v4l2_ctrl_h264_scaling_matrix
1715 - ``scaling_list_4x4[6][16]``
1718 - ``scaling_list_8x8[6][64]``
1721 ``V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS (struct)``
1722 Specifies the slice parameters (as extracted from the bitstream)
1723 for the associated H264 slice data. This includes the necessary
1724 parameters for configuring a stateless hardware decoding pipeline
1725 for H264. The bitstream parameters are defined according to
1726 :ref:`h264`, section 7.4.3 "Slice Header Semantics". For further
1727 documentation, refer to the above specification, unless there is
1728 an explicit comment stating otherwise.
1732 This compound control is not yet part of the public kernel API
1733 and it is expected to change.
1735 This structure is expected to be passed as an array, with one
1736 entry for each slice included in the bitstream buffer.
1738 .. c:type:: v4l2_ctrl_h264_slice_params
1740 .. cssclass:: longtable
1742 .. flat-table:: struct v4l2_ctrl_h264_slice_params
1751 - ``start_byte_offset``
1752 Offset (in bytes) from the beginning of the OUTPUT buffer to the start
1753 of the slice. If the slice starts with a start code, then this is the
1754 offset to such start code. When operating in slice-based decoding mode
1755 (see :c:type:`v4l2_mpeg_video_h264_decode_mode`), this field should
1756 be set to 0. When operating in frame-based decoding mode, this field
1757 should be 0 for the first slice.
1759 - ``header_bit_size``
1762 - ``first_mb_in_slice``
1768 - ``pic_parameter_set_id``
1771 - ``colour_plane_id``
1774 - ``redundant_pic_cnt``
1783 - ``pic_order_cnt_lsb``
1786 - ``delta_pic_order_cnt_bottom``
1789 - ``delta_pic_order_cnt0``
1792 - ``delta_pic_order_cnt1``
1794 * - struct :c:type:`v4l2_h264_pred_weight_table`
1795 - ``pred_weight_table``
1798 - ``dec_ref_pic_marking_bit_size``
1801 - ``pic_order_cnt_bit_size``
1804 - ``cabac_init_idc``
1807 - ``slice_qp_delta``
1810 - ``slice_qs_delta``
1813 - ``disable_deblocking_filter_idc``
1816 - ``slice_alpha_c0_offset_div2``
1819 - ``slice_beta_offset_div2``
1822 - ``num_ref_idx_l0_active_minus1``
1825 - ``num_ref_idx_l1_active_minus1``
1828 - ``slice_group_change_cycle``
1831 - ``ref_pic_list0[32]``
1832 - Reference picture list after applying the per-slice modifications
1834 - ``ref_pic_list1[32]``
1835 - Reference picture list after applying the per-slice modifications
1838 - See :ref:`Slice Parameter Flags <h264_slice_flags>`
1840 .. _h264_slice_flags:
1842 ``Slice Parameter Set Flags``
1844 .. cssclass:: longtable
1851 * - ``V4L2_H264_SLICE_FLAG_FIELD_PIC``
1854 * - ``V4L2_H264_SLICE_FLAG_BOTTOM_FIELD``
1857 * - ``V4L2_H264_SLICE_FLAG_DIRECT_SPATIAL_MV_PRED``
1860 * - ``V4L2_H264_SLICE_FLAG_SP_FOR_SWITCH``
1864 ``Prediction Weight Table``
1866 The bitstream parameters are defined according to :ref:`h264`,
1867 section 7.4.3.2 "Prediction Weight Table Semantics". For further
1868 documentation, refer to the above specification, unless there is
1869 an explicit comment stating otherwise.
1871 .. c:type:: v4l2_h264_pred_weight_table
1873 .. cssclass:: longtable
1875 .. flat-table:: struct v4l2_h264_pred_weight_table
1881 - ``luma_log2_weight_denom``
1884 - ``chroma_log2_weight_denom``
1886 * - struct :c:type:`v4l2_h264_weight_factors`
1887 - ``weight_factors[2]``
1888 - The weight factors at index 0 are the weight factors for the reference
1889 list 0, the one at index 1 for the reference list 1.
1891 .. c:type:: v4l2_h264_weight_factors
1893 .. cssclass:: longtable
1895 .. flat-table:: struct v4l2_h264_weight_factors
1901 - ``luma_weight[32]``
1904 - ``luma_offset[32]``
1907 - ``chroma_weight[32][2]``
1910 - ``chroma_offset[32][2]``
1913 ``V4L2_CID_MPEG_VIDEO_H264_DECODE_PARAMS (struct)``
1914 Specifies the decode parameters (as extracted from the bitstream)
1915 for the associated H264 slice data. This includes the necessary
1916 parameters for configuring a stateless hardware decoding pipeline
1917 for H264. The bitstream parameters are defined according to
1918 :ref:`h264`. For further documentation, refer to the above
1919 specification, unless there is an explicit comment stating
1924 This compound control is not yet part of the public kernel API and
1925 it is expected to change.
1927 .. c:type:: v4l2_ctrl_h264_decode_params
1929 .. cssclass:: longtable
1931 .. flat-table:: struct v4l2_ctrl_h264_decode_params
1936 * - struct :c:type:`v4l2_h264_dpb_entry`
1941 - Number of slices needed to decode the current frame/field. When
1942 operating in slice-based decoding mode (see
1943 :c:type:`v4l2_mpeg_video_h264_decode_mode`), this field
1944 should always be set to one.
1947 - NAL reference ID value coming from the NAL Unit header
1949 - ``top_field_order_cnt``
1950 - Picture Order Count for the coded top field
1952 - ``bottom_field_order_cnt``
1953 - Picture Order Count for the coded bottom field
1956 - See :ref:`Decode Parameters Flags <h264_decode_params_flags>`
1958 .. _h264_decode_params_flags:
1960 ``Decode Parameters Flags``
1962 .. cssclass:: longtable
1969 * - ``V4L2_H264_DECODE_PARAM_FLAG_IDR_PIC``
1971 - That picture is an IDR picture
1973 .. c:type:: v4l2_h264_dpb_entry
1975 .. cssclass:: longtable
1977 .. flat-table:: struct v4l2_h264_dpb_entry
1984 - Timestamp of the V4L2 capture buffer to use as reference, used
1985 with B-coded and P-coded frames. The timestamp refers to the
1986 ``timestamp`` field in struct :c:type:`v4l2_buffer`. Use the
1987 :c:func:`v4l2_timeval_to_ns()` function to convert the struct
1988 :c:type:`timeval` in struct :c:type:`v4l2_buffer` to a __u64.
1996 - ``top_field_order_cnt``
1999 - ``bottom_field_order_cnt``
2003 - See :ref:`DPB Entry Flags <h264_dpb_flags>`
2007 ``DPB Entries Flags``
2009 .. cssclass:: longtable
2016 * - ``V4L2_H264_DPB_ENTRY_FLAG_VALID``
2018 - The DPB entry is valid and should be considered
2019 * - ``V4L2_H264_DPB_ENTRY_FLAG_ACTIVE``
2021 - The DPB entry is currently being used as a reference frame
2022 * - ``V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM``
2024 - The DPB entry is a long term reference frame
2026 ``V4L2_CID_MPEG_VIDEO_H264_DECODE_MODE (enum)``
2027 Specifies the decoding mode to use. Currently exposes slice-based and
2028 frame-based decoding but new modes might be added later on.
2029 This control is used as a modifier for V4L2_PIX_FMT_H264_SLICE
2030 pixel format. Applications that support V4L2_PIX_FMT_H264_SLICE
2031 are required to set this control in order to specify the decoding mode
2032 that is expected for the buffer.
2033 Drivers may expose a single or multiple decoding modes, depending
2034 on what they can support.
2038 This menu control is not yet part of the public kernel API and
2039 it is expected to change.
2041 .. c:type:: v4l2_mpeg_video_h264_decode_mode
2043 .. cssclass:: longtable
2050 * - ``V4L2_MPEG_VIDEO_H264_DECODE_MODE_SLICE_BASED``
2052 - Decoding is done at the slice granularity.
2053 In this mode, ``num_slices`` field in struct
2054 :c:type:`v4l2_ctrl_h264_decode_params` should be set to 1,
2055 and ``start_byte_offset`` in struct
2056 :c:type:`v4l2_ctrl_h264_slice_params` should be set to 0.
2057 The OUTPUT buffer must contain a single slice.
2058 * - ``V4L2_MPEG_VIDEO_H264_DECODE_MODE_FRAME_BASED``
2060 - Decoding is done at the frame granularity.
2061 In this mode, ``num_slices`` field in struct
2062 :c:type:`v4l2_ctrl_h264_decode_params` should be set to the number
2063 of slices in the frame, and ``start_byte_offset`` in struct
2064 :c:type:`v4l2_ctrl_h264_slice_params` should be set accordingly
2065 for each slice. For the first slice, ``start_byte_offset`` should
2067 The OUTPUT buffer must contain all slices needed to decode the
2068 frame. The OUTPUT buffer must also contain both fields.
2070 ``V4L2_CID_MPEG_VIDEO_H264_START_CODE (enum)``
2071 Specifies the H264 slice start code expected for each slice.
2072 This control is used as a modifier for V4L2_PIX_FMT_H264_SLICE
2073 pixel format. Applications that support V4L2_PIX_FMT_H264_SLICE
2074 are required to set this control in order to specify the start code
2075 that is expected for the buffer.
2076 Drivers may expose a single or multiple start codes, depending
2077 on what they can support.
2081 This menu control is not yet part of the public kernel API and
2082 it is expected to change.
2084 .. c:type:: v4l2_mpeg_video_h264_start_code
2086 .. cssclass:: longtable
2093 * - ``V4L2_MPEG_VIDEO_H264_START_CODE_NONE``
2095 - Selecting this value specifies that H264 slices are passed
2096 to the driver without any start code.
2097 * - ``V4L2_MPEG_VIDEO_H264_START_CODE_ANNEX_B``
2099 - Selecting this value specifies that H264 slices are expected
2100 to be prefixed by Annex B start codes. According to :ref:`h264`
2101 valid start codes can be 3-bytes 0x000001 or 4-bytes 0x00000001.
2103 .. _v4l2-mpeg-mpeg2:
2105 ``V4L2_CID_MPEG_VIDEO_MPEG2_SLICE_PARAMS (struct)``
2106 Specifies the slice parameters (as extracted from the bitstream) for the
2107 associated MPEG-2 slice data. This includes the necessary parameters for
2108 configuring a stateless hardware decoding pipeline for MPEG-2.
2109 The bitstream parameters are defined according to :ref:`mpeg2part2`.
2113 This compound control is not yet part of the public kernel API and
2114 it is expected to change.
2116 .. c:type:: v4l2_ctrl_mpeg2_slice_params
2118 .. cssclass:: longtable
2120 .. tabularcolumns:: |p{5.8cm}|p{4.8cm}|p{6.6cm}|
2122 .. flat-table:: struct v4l2_ctrl_mpeg2_slice_params
2129 - Size (in bits) of the current slice data.
2131 - ``data_bit_offset``
2132 - Offset (in bits) to the video data in the current slice data.
2133 * - struct :c:type:`v4l2_mpeg2_sequence`
2135 - Structure with MPEG-2 sequence metadata, merging relevant fields from
2136 the sequence header and sequence extension parts of the bitstream.
2137 * - struct :c:type:`v4l2_mpeg2_picture`
2139 - Structure with MPEG-2 picture metadata, merging relevant fields from
2140 the picture header and picture coding extension parts of the bitstream.
2142 - ``backward_ref_ts``
2143 - Timestamp of the V4L2 capture buffer to use as backward reference, used
2144 with B-coded and P-coded frames. The timestamp refers to the
2145 ``timestamp`` field in struct :c:type:`v4l2_buffer`. Use the
2146 :c:func:`v4l2_timeval_to_ns()` function to convert the struct
2147 :c:type:`timeval` in struct :c:type:`v4l2_buffer` to a __u64.
2149 - ``forward_ref_ts``
2150 - Timestamp for the V4L2 capture buffer to use as forward reference, used
2151 with B-coded frames. The timestamp refers to the ``timestamp`` field in
2152 struct :c:type:`v4l2_buffer`. Use the :c:func:`v4l2_timeval_to_ns()`
2153 function to convert the struct :c:type:`timeval` in struct
2154 :c:type:`v4l2_buffer` to a __u64.
2156 - ``quantiser_scale_code``
2157 - Code used to determine the quantization scale to use for the IDCT.
2159 .. c:type:: v4l2_mpeg2_sequence
2161 .. cssclass:: longtable
2163 .. tabularcolumns:: |p{1.5cm}|p{6.3cm}|p{9.4cm}|
2165 .. flat-table:: struct v4l2_mpeg2_sequence
2171 - ``horizontal_size``
2172 - The width of the displayable part of the frame's luminance component.
2175 - The height of the displayable part of the frame's luminance component.
2177 - ``vbv_buffer_size``
2178 - Used to calculate the required size of the video buffering verifier,
2179 defined (in bits) as: 16 * 1024 * vbv_buffer_size.
2181 - ``profile_and_level_indication``
2182 - The current profile and level indication as extracted from the
2185 - ``progressive_sequence``
2186 - Indication that all the frames for the sequence are progressive instead
2190 - The chrominance sub-sampling format (1: 4:2:0, 2: 4:2:2, 3: 4:4:4).
2192 .. c:type:: v4l2_mpeg2_picture
2194 .. cssclass:: longtable
2196 .. tabularcolumns:: |p{1.5cm}|p{6.3cm}|p{9.4cm}|
2198 .. flat-table:: struct v4l2_mpeg2_picture
2204 - ``picture_coding_type``
2205 - Picture coding type for the frame covered by the current slice
2206 (V4L2_MPEG2_PICTURE_CODING_TYPE_I, V4L2_MPEG2_PICTURE_CODING_TYPE_P or
2207 V4L2_MPEG2_PICTURE_CODING_TYPE_B).
2210 - Motion vector codes.
2212 - ``intra_dc_precision``
2213 - Precision of Discrete Cosine transform (0: 8 bits precision,
2214 1: 9 bits precision, 2: 10 bits precision, 3: 11 bits precision).
2216 - ``picture_structure``
2217 - Picture structure (1: interlaced top field, 2: interlaced bottom field,
2218 3: progressive frame).
2220 - ``top_field_first``
2221 - If set to 1 and interlaced stream, top field is output first.
2223 - ``frame_pred_frame_dct``
2224 - If set to 1, only frame-DCT and frame prediction are used.
2226 - ``concealment_motion_vectors``
2227 - If set to 1, motion vectors are coded for intra macroblocks.
2230 - This flag affects the inverse quantization process.
2232 - ``intra_vlc_format``
2233 - This flag affects the decoding of transform coefficient data.
2235 - ``alternate_scan``
2236 - This flag affects the decoding of transform coefficient data.
2238 - ``repeat_first_field``
2239 - This flag affects the decoding process of progressive frames.
2241 - ``progressive_frame``
2242 - Indicates whether the current frame is progressive.
2244 ``V4L2_CID_MPEG_VIDEO_MPEG2_QUANTIZATION (struct)``
2245 Specifies quantization matrices (as extracted from the bitstream) for the
2246 associated MPEG-2 slice data.
2250 This compound control is not yet part of the public kernel API and
2251 it is expected to change.
2253 .. c:type:: v4l2_ctrl_mpeg2_quantization
2255 .. cssclass:: longtable
2257 .. tabularcolumns:: |p{1.2cm}|p{8.0cm}|p{7.4cm}|
2263 .. flat-table:: struct v4l2_ctrl_mpeg2_quantization
2269 - ``load_intra_quantiser_matrix``
2270 - One bit to indicate whether to load the ``intra_quantiser_matrix`` data.
2272 - ``load_non_intra_quantiser_matrix``
2273 - One bit to indicate whether to load the ``non_intra_quantiser_matrix``
2276 - ``load_chroma_intra_quantiser_matrix``
2277 - One bit to indicate whether to load the
2278 ``chroma_intra_quantiser_matrix`` data, only relevant for non-4:2:0 YUV
2281 - ``load_chroma_non_intra_quantiser_matrix``
2282 - One bit to indicate whether to load the
2283 ``chroma_non_intra_quantiser_matrix`` data, only relevant for non-4:2:0
2286 - ``intra_quantiser_matrix[64]``
2287 - The quantization matrix coefficients for intra-coded frames, in zigzag
2288 scanning order. It is relevant for both luma and chroma components,
2289 although it can be superseded by the chroma-specific matrix for
2290 non-4:2:0 YUV formats.
2292 - ``non_intra_quantiser_matrix[64]``
2293 - The quantization matrix coefficients for non-intra-coded frames, in
2294 zigzag scanning order. It is relevant for both luma and chroma
2295 components, although it can be superseded by the chroma-specific matrix
2296 for non-4:2:0 YUV formats.
2298 - ``chroma_intra_quantiser_matrix[64]``
2299 - The quantization matrix coefficients for the chominance component of
2300 intra-coded frames, in zigzag scanning order. Only relevant for
2301 non-4:2:0 YUV formats.
2303 - ``chroma_non_intra_quantiser_matrix[64]``
2304 - The quantization matrix coefficients for the chrominance component of
2305 non-intra-coded frames, in zigzag scanning order. Only relevant for
2306 non-4:2:0 YUV formats.
2308 ``V4L2_CID_FWHT_I_FRAME_QP (integer)``
2309 Quantization parameter for an I frame for FWHT. Valid range: from 1
2312 ``V4L2_CID_FWHT_P_FRAME_QP (integer)``
2313 Quantization parameter for a P frame for FWHT. Valid range: from 1
2318 ``V4L2_CID_MPEG_VIDEO_VP8_FRAME_HEADER (struct)``
2319 Specifies the frame parameters for the associated VP8 parsed frame data.
2320 This includes the necessary parameters for
2321 configuring a stateless hardware decoding pipeline for VP8.
2322 The bitstream parameters are defined according to :ref:`vp8`.
2326 This compound control is not yet part of the public kernel API and
2327 it is expected to change.
2329 .. c:type:: v4l2_ctrl_vp8_frame_header
2331 .. cssclass:: longtable
2333 .. tabularcolumns:: |p{5.8cm}|p{4.8cm}|p{6.6cm}|
2335 .. flat-table:: struct v4l2_ctrl_vp8_frame_header
2340 * - struct :c:type:`v4l2_vp8_segment_header`
2341 - ``segment_header``
2342 - Structure with segment-based adjustments metadata.
2343 * - struct :c:type:`v4l2_vp8_loopfilter_header`
2344 - ``loopfilter_header``
2345 - Structure with loop filter level adjustments metadata.
2346 * - struct :c:type:`v4l2_vp8_quantization_header`
2348 - Structure with VP8 dequantization indices metadata.
2349 * - struct :c:type:`v4l2_vp8_entropy_header`
2350 - ``entropy_header``
2351 - Structure with VP8 entropy coder probabilities metadata.
2352 * - struct :c:type:`v4l2_vp8_entropy_coder_state`
2354 - Structure with VP8 entropy coder state.
2357 - The width of the frame. Must be set for all frames.
2360 - The height of the frame. Must be set for all frames.
2362 - ``horizontal_scale``
2363 - Horizontal scaling factor.
2365 - ``vertical_scaling factor``
2369 - Bitstream version.
2371 - ``prob_skip_false``
2372 - Indicates the probability that the macroblock is not skipped.
2375 - Indicates the probability that a macroblock is intra-predicted.
2378 - Indicates the probability that the last reference frame is used
2379 for inter-prediction
2382 - Indicates the probability that the golden reference frame is used
2383 for inter-prediction
2386 - Number of DCT coefficients partitions. Must be one of: 1, 2, 4, or 8.
2388 - ``first_part_size``
2389 - Size of the first partition, i.e. the control partition.
2391 - ``first_part_header_bits``
2392 - Size in bits of the first partition header portion.
2394 - ``dct_part_sizes[8]``
2395 - DCT coefficients sizes.
2398 - Timestamp for the V4L2 capture buffer to use as last reference frame, used
2399 with inter-coded frames. The timestamp refers to the ``timestamp`` field in
2400 struct :c:type:`v4l2_buffer`. Use the :c:func:`v4l2_timeval_to_ns()`
2401 function to convert the struct :c:type:`timeval` in struct
2402 :c:type:`v4l2_buffer` to a __u64.
2404 - ``golden_frame_ts``
2405 - Timestamp for the V4L2 capture buffer to use as last reference frame, used
2406 with inter-coded frames. The timestamp refers to the ``timestamp`` field in
2407 struct :c:type:`v4l2_buffer`. Use the :c:func:`v4l2_timeval_to_ns()`
2408 function to convert the struct :c:type:`timeval` in struct
2409 :c:type:`v4l2_buffer` to a __u64.
2412 - Timestamp for the V4L2 capture buffer to use as alternate reference frame, used
2413 with inter-coded frames. The timestamp refers to the ``timestamp`` field in
2414 struct :c:type:`v4l2_buffer`. Use the :c:func:`v4l2_timeval_to_ns()`
2415 function to convert the struct :c:type:`timeval` in struct
2416 :c:type:`v4l2_buffer` to a __u64.
2419 - See :ref:`Frame Header Flags <vp8_frame_header_flags>`
2421 .. _vp8_frame_header_flags:
2423 ``Frame Header Flags``
2425 .. cssclass:: longtable
2432 * - ``V4L2_VP8_FRAME_HEADER_FLAG_KEY_FRAME``
2434 - Indicates if the frame is a key frame.
2435 * - ``V4L2_VP8_FRAME_HEADER_FLAG_EXPERIMENTAL``
2437 - Experimental bitstream.
2438 * - ``V4L2_VP8_FRAME_HEADER_FLAG_SHOW_FRAME``
2440 - Show frame flag, indicates if the frame is for display.
2441 * - ``V4L2_VP8_FRAME_HEADER_FLAG_MB_NO_SKIP_COEFF``
2443 - Enable/disable skipping of macroblocks with no non-zero coefficients.
2444 * - ``V4L2_VP8_FRAME_HEADER_FLAG_SIGN_BIAS_GOLDEN``
2446 - Sign of motion vectors when the golden frame is referenced.
2447 * - ``V4L2_VP8_FRAME_HEADER_FLAG_SIGN_BIAS_ALT``
2449 - Sign of motion vectors when the alt frame is referenced.
2451 .. c:type:: v4l2_vp8_entropy_coder_state
2453 .. cssclass:: longtable
2455 .. tabularcolumns:: |p{1.5cm}|p{6.3cm}|p{9.4cm}|
2457 .. flat-table:: struct v4l2_vp8_entropy_coder_state
2473 - Applications and drivers must set this to zero.
2475 .. c:type:: v4l2_vp8_segment_header
2477 .. cssclass:: longtable
2479 .. tabularcolumns:: |p{1.5cm}|p{6.3cm}|p{9.4cm}|
2481 .. flat-table:: struct v4l2_vp8_segment_header
2487 - ``quant_update[4]``
2488 - Signed quantizer value update.
2491 - Signed loop filter level value update.
2493 - ``segment_probs[3]``
2494 - Segment probabilities.
2497 - Applications and drivers must set this to zero.
2500 - See :ref:`Segment Header Flags <vp8_segment_header_flags>`
2502 .. _vp8_segment_header_flags:
2504 ``Segment Header Flags``
2506 .. cssclass:: longtable
2513 * - ``V4L2_VP8_SEGMENT_HEADER_FLAG_ENABLED``
2515 - Enable/disable segment-based adjustments.
2516 * - ``V4L2_VP8_SEGMENT_HEADER_FLAG_UPDATE_MAP``
2518 - Indicates if the macroblock segmentation map is updated in this frame.
2519 * - ``V4L2_VP8_SEGMENT_HEADER_FLAG_UPDATE_FEATURE_DATA``
2521 - Indicates if the segment feature data is updated in this frame.
2522 * - ``V4L2_VP8_SEGMENT_HEADER_FLAG_DELTA_VALUE_MODE``
2524 - If is set, the segment feature data mode is delta-value.
2525 If cleared, it's absolute-value.
2527 .. c:type:: v4l2_vp8_loopfilter_header
2529 .. cssclass:: longtable
2531 .. tabularcolumns:: |p{1.5cm}|p{6.3cm}|p{9.4cm}|
2533 .. flat-table:: struct v4l2_vp8_loopfilter_header
2539 - ``ref_frm_delta[4]``
2540 - Reference adjustment (signed) delta value.
2542 - ``mb_mode_delta[4]``
2543 - Macroblock prediction mode adjustment (signed) delta value.
2545 - ``sharpness_level``
2552 - Applications and drivers must set this to zero.
2555 - See :ref:`Loopfilter Header Flags <vp8_loopfilter_header_flags>`
2557 .. _vp8_loopfilter_header_flags:
2559 ``Loopfilter Header Flags``
2561 .. cssclass:: longtable
2568 * - ``V4L2_VP8_LF_HEADER_ADJ_ENABLE``
2570 - Enable/disable macroblock-level loop filter adjustment.
2571 * - ``V4L2_VP8_LF_HEADER_DELTA_UPDATE``
2573 - Indicates if the delta values used in an adjustment are updated.
2574 * - ``V4L2_VP8_LF_FILTER_TYPE_SIMPLE``
2576 - If set, indicates the filter type is simple.
2577 If cleared, the filter type is normal.
2579 .. c:type:: v4l2_vp8_quantization_header
2581 .. cssclass:: longtable
2583 .. tabularcolumns:: |p{1.5cm}|p{6.3cm}|p{9.4cm}|
2585 .. flat-table:: struct v4l2_vp8_quantization_header
2592 - Luma AC coefficient table index.
2595 - Luma DC delta vaue.
2598 - Y2 block DC delta value.
2601 - Y2 block AC delta value.
2604 - Chroma DC delta value.
2607 - Chroma AC delta value.
2610 - Applications and drivers must set this to zero.
2612 .. c:type:: v4l2_vp8_entropy_header
2614 .. cssclass:: longtable
2616 .. tabularcolumns:: |p{1.5cm}|p{6.3cm}|p{9.4cm}|
2618 .. flat-table:: struct v4l2_vp8_entropy_header
2624 - ``coeff_probs[4][8][3][11]``
2625 - Coefficient update probabilities.
2627 - ``y_mode_probs[4]``
2628 - Luma mode update probabilities.
2630 - ``uv_mode_probs[3]``
2631 - Chroma mode update probabilities.
2633 - ``mv_probs[2][19]``
2634 - MV decoding update probabilities.
2637 - Applications and drivers must set this to zero.
2644 MFC 5.1 MPEG Controls
2645 =====================
2647 The following MPEG class controls deal with MPEG decoding and encoding
2648 settings that are specific to the Multi Format Codec 5.1 device present
2649 in the S5P family of SoCs by Samsung.
2652 .. _mfc51-control-id:
2657 ``V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE (boolean)``
2658 If the display delay is enabled then the decoder is forced to return
2659 a CAPTURE buffer (decoded frame) after processing a certain number
2660 of OUTPUT buffers. The delay can be set through
2661 ``V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY``. This
2662 feature can be used for example for generating thumbnails of videos.
2663 Applicable to the H264 decoder.
2665 ``V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY (integer)``
2666 Display delay value for H264 decoder. The decoder is forced to
2667 return a decoded frame after the set 'display delay' number of
2668 frames. If this number is low it may result in frames returned out
2669 of display order, in addition the hardware may still be using the
2670 returned buffer as a reference picture for subsequent frames.
2672 ``V4L2_CID_MPEG_MFC51_VIDEO_H264_NUM_REF_PIC_FOR_P (integer)``
2673 The number of reference pictures used for encoding a P picture.
2674 Applicable to the H264 encoder.
2676 ``V4L2_CID_MPEG_MFC51_VIDEO_PADDING (boolean)``
2677 Padding enable in the encoder - use a color instead of repeating
2678 border pixels. Applicable to encoders.
2680 ``V4L2_CID_MPEG_MFC51_VIDEO_PADDING_YUV (integer)``
2681 Padding color in the encoder. Applicable to encoders. The supplied
2682 32-bit integer is interpreted as follows (bit 0 = least significant
2692 - V chrominance information
2694 - U chrominance information
2696 - Y luminance information
2702 ``V4L2_CID_MPEG_MFC51_VIDEO_RC_REACTION_COEFF (integer)``
2703 Reaction coefficient for MFC rate control. Applicable to encoders.
2707 #. Valid only when the frame level RC is enabled.
2709 #. For tight CBR, this field must be small (ex. 2 ~ 10). For
2710 VBR, this field must be large (ex. 100 ~ 1000).
2712 #. It is not recommended to use the greater number than
2713 FRAME_RATE * (10^9 / BIT_RATE).
2715 ``V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_DARK (boolean)``
2716 Adaptive rate control for dark region. Valid only when H.264 and
2717 macroblock level RC is enabled
2718 (``V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE``). Applicable to the H264
2721 ``V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_SMOOTH (boolean)``
2722 Adaptive rate control for smooth region. Valid only when H.264 and
2723 macroblock level RC is enabled
2724 (``V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE``). Applicable to the H264
2727 ``V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_STATIC (boolean)``
2728 Adaptive rate control for static region. Valid only when H.264 and
2729 macroblock level RC is enabled
2730 (``V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE``). Applicable to the H264
2733 ``V4L2_CID_MPEG_MFC51_VIDEO_H264_ADAPTIVE_RC_ACTIVITY (boolean)``
2734 Adaptive rate control for activity region. Valid only when H.264 and
2735 macroblock level RC is enabled
2736 (``V4L2_CID_MPEG_VIDEO_MB_RC_ENABLE``). Applicable to the H264
2739 .. _v4l2-mpeg-mfc51-video-frame-skip-mode:
2741 ``V4L2_CID_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE``
2744 enum v4l2_mpeg_mfc51_video_frame_skip_mode -
2745 Indicates in what conditions the encoder should skip frames. If
2746 encoding a frame would cause the encoded stream to be larger then a
2747 chosen data limit then the frame will be skipped. Possible values
2751 .. tabularcolumns:: |p{9.2cm}|p{8.3cm}|
2761 * - ``V4L2_MPEG_MFC51_FRAME_SKIP_MODE_DISABLED``
2762 - Frame skip mode is disabled.
2763 * - ``V4L2_MPEG_MFC51_FRAME_SKIP_MODE_LEVEL_LIMIT``
2764 - Frame skip mode enabled and buffer limit is set by the chosen
2765 level and is defined by the standard.
2766 * - ``V4L2_MPEG_MFC51_FRAME_SKIP_MODE_BUF_LIMIT``
2767 - Frame skip mode enabled and buffer limit is set by the VBV
2768 (MPEG1/2/4) or CPB (H264) buffer size control.
2774 ``V4L2_CID_MPEG_MFC51_VIDEO_RC_FIXED_TARGET_BIT (integer)``
2775 Enable rate-control with fixed target bit. If this setting is
2776 enabled, then the rate control logic of the encoder will calculate
2777 the average bitrate for a GOP and keep it below or equal the set
2778 bitrate target. Otherwise the rate control logic calculates the
2779 overall average bitrate for the stream and keeps it below or equal
2780 to the set bitrate. In the first case the average bitrate for the
2781 whole stream will be smaller then the set bitrate. This is caused
2782 because the average is calculated for smaller number of frames, on
2783 the other hand enabling this setting will ensure that the stream
2784 will meet tight bandwidth constraints. Applicable to encoders.
2786 .. _v4l2-mpeg-mfc51-video-force-frame-type:
2788 ``V4L2_CID_MPEG_MFC51_VIDEO_FORCE_FRAME_TYPE``
2791 enum v4l2_mpeg_mfc51_video_force_frame_type -
2792 Force a frame type for the next queued buffer. Applicable to
2793 encoders. Possible values are:
2795 .. tabularcolumns:: |p{9.5cm}|p{8.0cm}|
2801 * - ``V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_DISABLED``
2802 - Forcing a specific frame type disabled.
2803 * - ``V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_I_FRAME``
2805 * - ``V4L2_MPEG_MFC51_FORCE_FRAME_TYPE_NOT_CODED``
2806 - Force a non-coded frame.
2811 ``V4L2_CID_MPEG_VIDEO_FWHT_PARAMS (struct)``
2812 Specifies the fwht parameters (as extracted from the bitstream) for the
2813 associated FWHT data. This includes the necessary parameters for
2814 configuring a stateless hardware decoding pipeline for FWHT.
2818 This compound control is not yet part of the public kernel API and
2819 it is expected to change.
2821 .. c:type:: v4l2_ctrl_fwht_params
2823 .. cssclass:: longtable
2825 .. tabularcolumns:: |p{1.4cm}|p{4.3cm}|p{11.8cm}|
2827 .. flat-table:: struct v4l2_ctrl_fwht_params
2833 - ``backward_ref_ts``
2834 - Timestamp of the V4L2 capture buffer to use as backward reference, used
2835 with P-coded frames. The timestamp refers to the
2836 ``timestamp`` field in struct :c:type:`v4l2_buffer`. Use the
2837 :c:func:`v4l2_timeval_to_ns()` function to convert the struct
2838 :c:type:`timeval` in struct :c:type:`v4l2_buffer` to a __u64.
2841 - The version of the codec
2844 - The width of the frame
2847 - The height of the frame
2850 - The flags of the frame, see :ref:`fwht-flags`.
2853 - The colorspace of the frame, from enum :c:type:`v4l2_colorspace`.
2856 - The transfer function, from enum :c:type:`v4l2_xfer_func`.
2859 - The Y'CbCr encoding, from enum :c:type:`v4l2_ycbcr_encoding`.
2862 - The quantization range, from enum :c:type:`v4l2_quantization`.
2871 .. cssclass:: longtable
2873 .. tabularcolumns:: |p{6.8cm}|p{2.4cm}|p{8.3cm}|
2880 * - ``FWHT_FL_IS_INTERLACED``
2882 - Set if this is an interlaced format
2883 * - ``FWHT_FL_IS_BOTTOM_FIRST``
2885 - Set if this is a bottom-first (NTSC) interlaced format
2886 * - ``FWHT_FL_IS_ALTERNATE``
2888 - Set if each 'frame' contains just one field
2889 * - ``FWHT_FL_IS_BOTTOM_FIELD``
2891 - If FWHT_FL_IS_ALTERNATE was set, then this is set if this 'frame' is the
2892 bottom field, else it is the top field.
2893 * - ``FWHT_FL_LUMA_IS_UNCOMPRESSED``
2895 - Set if the luma plane is uncompressed
2896 * - ``FWHT_FL_CB_IS_UNCOMPRESSED``
2898 - Set if the cb plane is uncompressed
2899 * - ``FWHT_FL_CR_IS_UNCOMPRESSED``
2901 - Set if the cr plane is uncompressed
2902 * - ``FWHT_FL_CHROMA_FULL_HEIGHT``
2904 - Set if the chroma plane has the same height as the luma plane,
2905 else the chroma plane is half the height of the luma plane
2906 * - ``FWHT_FL_CHROMA_FULL_WIDTH``
2908 - Set if the chroma plane has the same width as the luma plane,
2909 else the chroma plane is half the width of the luma plane
2910 * - ``FWHT_FL_ALPHA_IS_UNCOMPRESSED``
2912 - Set if the alpha plane is uncompressed
2913 * - ``FWHT_FL_I_FRAME``
2915 - Set if this is an I-frame
2916 * - ``FWHT_FL_COMPONENTS_NUM_MSK``
2918 - A 4-values flag - the number of components - 1
2919 * - ``FWHT_FL_PIXENC_YUV``
2921 - Set if the pixel encoding is YUV
2922 * - ``FWHT_FL_PIXENC_RGB``
2924 - Set if the pixel encoding is RGB
2925 * - ``FWHT_FL_PIXENC_HSV``
2927 - Set if the pixel encoding is HSV
2930 CX2341x MPEG Controls
2931 =====================
2933 The following MPEG class controls deal with MPEG encoding settings that
2934 are specific to the Conexant CX23415 and CX23416 MPEG encoding chips.
2937 .. _cx2341x-control-id:
2942 .. _v4l2-mpeg-cx2341x-video-spatial-filter-mode:
2944 ``V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE``
2947 enum v4l2_mpeg_cx2341x_video_spatial_filter_mode -
2948 Sets the Spatial Filter mode (default ``MANUAL``). Possible values
2957 * - ``V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_MANUAL``
2958 - Choose the filter manually
2959 * - ``V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO``
2960 - Choose the filter automatically
2964 ``V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER (integer (0-15))``
2965 The setting for the Spatial Filter. 0 = off, 15 = maximum. (Default
2968 .. _luma-spatial-filter-type:
2970 ``V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE``
2973 enum v4l2_mpeg_cx2341x_video_luma_spatial_filter_type -
2974 Select the algorithm to use for the Luma Spatial Filter (default
2975 ``1D_HOR``). Possible values:
2977 .. tabularcolumns:: |p{14.5cm}|p{3.0cm}|
2987 * - ``V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_OFF``
2989 * - ``V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_HOR``
2990 - One-dimensional horizontal
2991 * - ``V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_VERT``
2992 - One-dimensional vertical
2993 * - ``V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_HV_SEPARABLE``
2994 - Two-dimensional separable
2995 * - ``V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_SYM_NON_SEPARABLE``
2996 - Two-dimensional symmetrical non-separable
3004 .. _chroma-spatial-filter-type:
3006 ``V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE``
3009 enum v4l2_mpeg_cx2341x_video_chroma_spatial_filter_type -
3010 Select the algorithm for the Chroma Spatial Filter (default
3011 ``1D_HOR``). Possible values are:
3014 .. tabularcolumns:: |p{14.0cm}|p{3.5cm}|
3020 * - ``V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_OFF``
3022 * - ``V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_1D_HOR``
3023 - One-dimensional horizontal
3027 .. _v4l2-mpeg-cx2341x-video-temporal-filter-mode:
3029 ``V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE``
3032 enum v4l2_mpeg_cx2341x_video_temporal_filter_mode -
3033 Sets the Temporal Filter mode (default ``MANUAL``). Possible values
3042 * - ``V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_MANUAL``
3043 - Choose the filter manually
3044 * - ``V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO``
3045 - Choose the filter automatically
3049 ``V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER (integer (0-31))``
3050 The setting for the Temporal Filter. 0 = off, 31 = maximum. (Default
3051 is 8 for full-scale capturing and 0 for scaled capturing.)
3053 .. _v4l2-mpeg-cx2341x-video-median-filter-type:
3055 ``V4L2_CID_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE``
3058 enum v4l2_mpeg_cx2341x_video_median_filter_type -
3059 Median Filter Type (default ``OFF``). Possible values are:
3067 * - ``V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF``
3069 * - ``V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR``
3071 * - ``V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_VERT``
3073 * - ``V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR_VERT``
3074 - Horizontal and vertical filter
3075 * - ``V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_DIAG``
3080 ``V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_BOTTOM (integer (0-255))``
3081 Threshold above which the luminance median filter is enabled
3084 ``V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_TOP (integer (0-255))``
3085 Threshold below which the luminance median filter is enabled
3088 ``V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_BOTTOM (integer (0-255))``
3089 Threshold above which the chroma median filter is enabled (default
3092 ``V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_TOP (integer (0-255))``
3093 Threshold below which the chroma median filter is enabled (default
3096 ``V4L2_CID_MPEG_CX2341X_STREAM_INSERT_NAV_PACKETS (boolean)``
3097 The CX2341X MPEG encoder can insert one empty MPEG-2 PES packet into
3098 the stream between every four video frames. The packet size is 2048
3099 bytes, including the packet_start_code_prefix and stream_id
3100 fields. The stream_id is 0xBF (private stream 2). The payload
3101 consists of 0x00 bytes, to be filled in by the application. 0 = do
3102 not insert, 1 = insert packets.
3105 VPX Control Reference
3106 =====================
3108 The VPX controls include controls for encoding parameters of VPx video
3117 .. _v4l2-vpx-num-partitions:
3119 ``V4L2_CID_MPEG_VIDEO_VPX_NUM_PARTITIONS``
3122 enum v4l2_vp8_num_partitions -
3123 The number of token partitions to use in VP8 encoder. Possible
3132 * - ``V4L2_CID_MPEG_VIDEO_VPX_1_PARTITION``
3133 - 1 coefficient partition
3134 * - ``V4L2_CID_MPEG_VIDEO_VPX_2_PARTITIONS``
3135 - 2 coefficient partitions
3136 * - ``V4L2_CID_MPEG_VIDEO_VPX_4_PARTITIONS``
3137 - 4 coefficient partitions
3138 * - ``V4L2_CID_MPEG_VIDEO_VPX_8_PARTITIONS``
3139 - 8 coefficient partitions
3143 ``V4L2_CID_MPEG_VIDEO_VPX_IMD_DISABLE_4X4 (boolean)``
3144 Setting this prevents intra 4x4 mode in the intra mode decision.
3146 .. _v4l2-vpx-num-ref-frames:
3148 ``V4L2_CID_MPEG_VIDEO_VPX_NUM_REF_FRAMES``
3151 enum v4l2_vp8_num_ref_frames -
3152 The number of reference pictures for encoding P frames. Possible
3155 .. tabularcolumns:: |p{7.9cm}|p{9.6cm}|
3165 * - ``V4L2_CID_MPEG_VIDEO_VPX_1_REF_FRAME``
3166 - Last encoded frame will be searched
3167 * - ``V4L2_CID_MPEG_VIDEO_VPX_2_REF_FRAME``
3168 - Two frames will be searched among the last encoded frame, the
3169 golden frame and the alternate reference (altref) frame. The
3170 encoder implementation will decide which two are chosen.
3171 * - ``V4L2_CID_MPEG_VIDEO_VPX_3_REF_FRAME``
3172 - The last encoded frame, the golden frame and the altref frame will
3181 ``V4L2_CID_MPEG_VIDEO_VPX_FILTER_LEVEL (integer)``
3182 Indicates the loop filter level. The adjustment of the loop filter
3183 level is done via a delta value against a baseline loop filter
3186 ``V4L2_CID_MPEG_VIDEO_VPX_FILTER_SHARPNESS (integer)``
3187 This parameter affects the loop filter. Anything above zero weakens
3188 the deblocking effect on the loop filter.
3190 ``V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_REF_PERIOD (integer)``
3191 Sets the refresh period for the golden frame. The period is defined
3192 in number of frames. For a value of 'n', every nth frame starting
3193 from the first key frame will be taken as a golden frame. For eg.
3194 for encoding sequence of 0, 1, 2, 3, 4, 5, 6, 7 where the golden
3195 frame refresh period is set as 4, the frames 0, 4, 8 etc will be
3196 taken as the golden frames as frame 0 is always a key frame.
3198 .. _v4l2-vpx-golden-frame-sel:
3200 ``V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_SEL``
3203 enum v4l2_vp8_golden_frame_sel -
3204 Selects the golden frame for encoding. Possible values are:
3210 .. tabularcolumns:: |p{9.0cm}|p{8.0cm}|
3216 * - ``V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_USE_PREV``
3217 - Use the (n-2)th frame as a golden frame, current frame index being
3219 * - ``V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_USE_REF_PERIOD``
3220 - Use the previous specific frame indicated by
3221 ``V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_REF_PERIOD`` as a
3229 ``V4L2_CID_MPEG_VIDEO_VPX_MIN_QP (integer)``
3230 Minimum quantization parameter for VP8.
3232 ``V4L2_CID_MPEG_VIDEO_VPX_MAX_QP (integer)``
3233 Maximum quantization parameter for VP8.
3235 ``V4L2_CID_MPEG_VIDEO_VPX_I_FRAME_QP (integer)``
3236 Quantization parameter for an I frame for VP8.
3238 ``V4L2_CID_MPEG_VIDEO_VPX_P_FRAME_QP (integer)``
3239 Quantization parameter for a P frame for VP8.
3241 .. _v4l2-mpeg-video-vp8-profile:
3243 ``V4L2_CID_MPEG_VIDEO_VP8_PROFILE``
3246 enum v4l2_mpeg_video_vp8_profile -
3247 This control allows selecting the profile for VP8 encoder.
3248 This is also used to enumerate supported profiles by VP8 encoder or decoder.
3249 Possible values are:
3255 * - ``V4L2_MPEG_VIDEO_VP8_PROFILE_0``
3257 * - ``V4L2_MPEG_VIDEO_VP8_PROFILE_1``
3259 * - ``V4L2_MPEG_VIDEO_VP8_PROFILE_2``
3261 * - ``V4L2_MPEG_VIDEO_VP8_PROFILE_3``
3264 .. _v4l2-mpeg-video-vp9-profile:
3266 ``V4L2_CID_MPEG_VIDEO_VP9_PROFILE``
3269 enum v4l2_mpeg_video_vp9_profile -
3270 This control allows selecting the profile for VP9 encoder.
3271 This is also used to enumerate supported profiles by VP9 encoder or decoder.
3272 Possible values are:
3278 * - ``V4L2_MPEG_VIDEO_VP9_PROFILE_0``
3280 * - ``V4L2_MPEG_VIDEO_VP9_PROFILE_1``
3282 * - ``V4L2_MPEG_VIDEO_VP9_PROFILE_2``
3284 * - ``V4L2_MPEG_VIDEO_VP9_PROFILE_3``
3288 High Efficiency Video Coding (HEVC/H.265) Control Reference
3289 ===========================================================
3291 The HEVC/H.265 controls include controls for encoding parameters of HEVC/H.265
3295 .. _hevc-control-id:
3297 HEVC/H.265 Control IDs
3298 ----------------------
3300 ``V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP (integer)``
3301 Minimum quantization parameter for HEVC.
3302 Valid range: from 0 to 51.
3304 ``V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP (integer)``
3305 Maximum quantization parameter for HEVC.
3306 Valid range: from 0 to 51.
3308 ``V4L2_CID_MPEG_VIDEO_HEVC_I_FRAME_QP (integer)``
3309 Quantization parameter for an I frame for HEVC.
3310 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3311 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3313 ``V4L2_CID_MPEG_VIDEO_HEVC_P_FRAME_QP (integer)``
3314 Quantization parameter for a P frame for HEVC.
3315 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3316 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3318 ``V4L2_CID_MPEG_VIDEO_HEVC_B_FRAME_QP (integer)``
3319 Quantization parameter for a B frame for HEVC.
3320 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3321 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3323 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_QP (boolean)``
3324 HIERARCHICAL_QP allows the host to specify the quantization parameter
3325 values for each temporal layer through HIERARCHICAL_QP_LAYER. This is
3326 valid only if HIERARCHICAL_CODING_LAYER is greater than 1. Setting the
3327 control value to 1 enables setting of the QP values for the layers.
3329 .. _v4l2-hevc-hier-coding-type:
3331 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_TYPE``
3334 enum v4l2_mpeg_video_hevc_hier_coding_type -
3335 Selects the hierarchical coding type for encoding. Possible values are:
3341 .. tabularcolumns:: |p{9.0cm}|p{8.0cm}|
3347 * - ``V4L2_MPEG_VIDEO_HEVC_HIERARCHICAL_CODING_B``
3348 - Use the B frame for hierarchical coding.
3349 * - ``V4L2_MPEG_VIDEO_HEVC_HIERARCHICAL_CODING_P``
3350 - Use the P frame for hierarchical coding.
3357 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_LAYER (integer)``
3358 Selects the hierarchical coding layer. In normal encoding
3359 (non-hierarchial coding), it should be zero. Possible values are [0, 6].
3360 0 indicates HIERARCHICAL CODING LAYER 0, 1 indicates HIERARCHICAL CODING
3363 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L0_QP (integer)``
3364 Indicates quantization parameter for hierarchical coding layer 0.
3365 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3366 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3368 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L1_QP (integer)``
3369 Indicates quantization parameter for hierarchical coding layer 1.
3370 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3371 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3373 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L2_QP (integer)``
3374 Indicates quantization parameter for hierarchical coding layer 2.
3375 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3376 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3378 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L3_QP (integer)``
3379 Indicates quantization parameter for hierarchical coding layer 3.
3380 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3381 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3383 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L4_QP (integer)``
3384 Indicates quantization parameter for hierarchical coding layer 4.
3385 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3386 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3388 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L5_QP (integer)``
3389 Indicates quantization parameter for hierarchical coding layer 5.
3390 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3391 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3393 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L6_QP (integer)``
3394 Indicates quantization parameter for hierarchical coding layer 6.
3395 Valid range: [V4L2_CID_MPEG_VIDEO_HEVC_MIN_QP,
3396 V4L2_CID_MPEG_VIDEO_HEVC_MAX_QP].
3398 .. _v4l2-hevc-profile:
3400 ``V4L2_CID_MPEG_VIDEO_HEVC_PROFILE``
3403 enum v4l2_mpeg_video_hevc_profile -
3404 Select the desired profile for HEVC encoder.
3410 .. tabularcolumns:: |p{9.0cm}|p{8.0cm}|
3416 * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN``
3418 * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_STILL_PICTURE``
3419 - Main still picture profile.
3420 * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10``
3428 .. _v4l2-hevc-level:
3430 ``V4L2_CID_MPEG_VIDEO_HEVC_LEVEL``
3433 enum v4l2_mpeg_video_hevc_level -
3434 Selects the desired level for HEVC encoder.
3440 .. tabularcolumns:: |p{9.0cm}|p{8.0cm}|
3446 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_1``
3448 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_2``
3450 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_2_1``
3452 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_3``
3454 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_3_1``
3456 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_4``
3458 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_4_1``
3460 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_5``
3462 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_5_1``
3464 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_5_2``
3466 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_6``
3468 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_6_1``
3470 * - ``V4L2_MPEG_VIDEO_HEVC_LEVEL_6_2``
3478 ``V4L2_CID_MPEG_VIDEO_HEVC_FRAME_RATE_RESOLUTION (integer)``
3479 Indicates the number of evenly spaced subintervals, called ticks, within
3480 one second. This is a 16 bit unsigned integer and has a maximum value up to
3481 0xffff and a minimum value of 1.
3485 ``V4L2_CID_MPEG_VIDEO_HEVC_TIER``
3488 enum v4l2_mpeg_video_hevc_tier -
3489 TIER_FLAG specifies tiers information of the HEVC encoded picture. Tier
3490 were made to deal with applications that differ in terms of maximum bit
3491 rate. Setting the flag to 0 selects HEVC tier as Main tier and setting
3492 this flag to 1 indicates High tier. High tier is for applications requiring
3499 .. tabularcolumns:: |p{9.0cm}|p{8.0cm}|
3505 * - ``V4L2_MPEG_VIDEO_HEVC_TIER_MAIN``
3507 * - ``V4L2_MPEG_VIDEO_HEVC_TIER_HIGH``
3515 ``V4L2_CID_MPEG_VIDEO_HEVC_MAX_PARTITION_DEPTH (integer)``
3516 Selects HEVC maximum coding unit depth.
3518 .. _v4l2-hevc-loop-filter-mode:
3520 ``V4L2_CID_MPEG_VIDEO_HEVC_LOOP_FILTER_MODE``
3523 enum v4l2_mpeg_video_hevc_loop_filter_mode -
3524 Loop filter mode for HEVC encoder. Possible values are:
3530 .. tabularcolumns:: |p{12.1cm}|p{5.4cm}|
3536 * - ``V4L2_MPEG_VIDEO_HEVC_LOOP_FILTER_MODE_DISABLED``
3537 - Loop filter is disabled.
3538 * - ``V4L2_MPEG_VIDEO_HEVC_LOOP_FILTER_MODE_ENABLED``
3539 - Loop filter is enabled.
3540 * - ``V4L2_MPEG_VIDEO_HEVC_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY``
3541 - Loop filter is disabled at the slice boundary.
3548 ``V4L2_CID_MPEG_VIDEO_HEVC_LF_BETA_OFFSET_DIV2 (integer)``
3549 Selects HEVC loop filter beta offset. The valid range is [-6, +6].
3551 ``V4L2_CID_MPEG_VIDEO_HEVC_LF_TC_OFFSET_DIV2 (integer)``
3552 Selects HEVC loop filter tc offset. The valid range is [-6, +6].
3554 .. _v4l2-hevc-refresh-type:
3556 ``V4L2_CID_MPEG_VIDEO_HEVC_REFRESH_TYPE``
3559 enum v4l2_mpeg_video_hevc_hier_refresh_type -
3560 Selects refresh type for HEVC encoder.
3561 Host has to specify the period into
3562 V4L2_CID_MPEG_VIDEO_HEVC_REFRESH_PERIOD.
3568 .. tabularcolumns:: |p{8.0cm}|p{9.0cm}|
3574 * - ``V4L2_MPEG_VIDEO_HEVC_REFRESH_NONE``
3575 - Use the B frame for hierarchical coding.
3576 * - ``V4L2_MPEG_VIDEO_HEVC_REFRESH_CRA``
3577 - Use CRA (Clean Random Access Unit) picture encoding.
3578 * - ``V4L2_MPEG_VIDEO_HEVC_REFRESH_IDR``
3579 - Use IDR (Instantaneous Decoding Refresh) picture encoding.
3586 ``V4L2_CID_MPEG_VIDEO_HEVC_REFRESH_PERIOD (integer)``
3587 Selects the refresh period for HEVC encoder.
3588 This specifies the number of I pictures between two CRA/IDR pictures.
3589 This is valid only if REFRESH_TYPE is not 0.
3591 ``V4L2_CID_MPEG_VIDEO_HEVC_LOSSLESS_CU (boolean)``
3592 Indicates HEVC lossless encoding. Setting it to 0 disables lossless
3593 encoding. Setting it to 1 enables lossless encoding.
3595 ``V4L2_CID_MPEG_VIDEO_HEVC_CONST_INTRA_PRED (boolean)``
3596 Indicates constant intra prediction for HEVC encoder. Specifies the
3597 constrained intra prediction in which intra largest coding unit (LCU)
3598 prediction is performed by using residual data and decoded samples of
3599 neighboring intra LCU only. Setting the value to 1 enables constant intra
3600 prediction and setting the value to 0 disables constant intra prediction.
3602 ``V4L2_CID_MPEG_VIDEO_HEVC_WAVEFRONT (boolean)``
3603 Indicates wavefront parallel processing for HEVC encoder. Setting it to 0
3604 disables the feature and setting it to 1 enables the wavefront parallel
3607 ``V4L2_CID_MPEG_VIDEO_HEVC_GENERAL_PB (boolean)``
3608 Setting the value to 1 enables combination of P and B frame for HEVC
3611 ``V4L2_CID_MPEG_VIDEO_HEVC_TEMPORAL_ID (boolean)``
3612 Indicates temporal identifier for HEVC encoder which is enabled by
3613 setting the value to 1.
3615 ``V4L2_CID_MPEG_VIDEO_HEVC_STRONG_SMOOTHING (boolean)``
3616 Indicates bi-linear interpolation is conditionally used in the intra
3617 prediction filtering process in the CVS when set to 1. Indicates bi-linear
3618 interpolation is not used in the CVS when set to 0.
3620 ``V4L2_CID_MPEG_VIDEO_HEVC_MAX_NUM_MERGE_MV_MINUS1 (integer)``
3621 Indicates maximum number of merge candidate motion vectors.
3622 Values are from 0 to 4.
3624 ``V4L2_CID_MPEG_VIDEO_HEVC_TMV_PREDICTION (boolean)``
3625 Indicates temporal motion vector prediction for HEVC encoder. Setting it to
3626 1 enables the prediction. Setting it to 0 disables the prediction.
3628 ``V4L2_CID_MPEG_VIDEO_HEVC_WITHOUT_STARTCODE (boolean)``
3629 Specifies if HEVC generates a stream with a size of the length field
3630 instead of start code pattern. The size of the length field is configurable
3631 through the V4L2_CID_MPEG_VIDEO_HEVC_SIZE_OF_LENGTH_FIELD control. Setting
3632 the value to 0 disables encoding without startcode pattern. Setting the
3633 value to 1 will enables encoding without startcode pattern.
3635 .. _v4l2-hevc-size-of-length-field:
3637 ``V4L2_CID_MPEG_VIDEO_HEVC_SIZE_OF_LENGTH_FIELD``
3640 enum v4l2_mpeg_video_hevc_size_of_length_field -
3641 Indicates the size of length field.
3642 This is valid when encoding WITHOUT_STARTCODE_ENABLE is enabled.
3648 .. tabularcolumns:: |p{6.0cm}|p{11.0cm}|
3654 * - ``V4L2_MPEG_VIDEO_HEVC_SIZE_0``
3655 - Generate start code pattern (Normal).
3656 * - ``V4L2_MPEG_VIDEO_HEVC_SIZE_1``
3657 - Generate size of length field instead of start code pattern and length is 1.
3658 * - ``V4L2_MPEG_VIDEO_HEVC_SIZE_2``
3659 - Generate size of length field instead of start code pattern and length is 2.
3660 * - ``V4L2_MPEG_VIDEO_HEVC_SIZE_4``
3661 - Generate size of length field instead of start code pattern and length is 4.
3667 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L0_BR (integer)``
3668 Indicates bit rate for hierarchical coding layer 0 for HEVC encoder.
3670 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L1_BR (integer)``
3671 Indicates bit rate for hierarchical coding layer 1 for HEVC encoder.
3673 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L2_BR (integer)``
3674 Indicates bit rate for hierarchical coding layer 2 for HEVC encoder.
3676 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L3_BR (integer)``
3677 Indicates bit rate for hierarchical coding layer 3 for HEVC encoder.
3679 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L4_BR (integer)``
3680 Indicates bit rate for hierarchical coding layer 4 for HEVC encoder.
3682 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L5_BR (integer)``
3683 Indicates bit rate for hierarchical coding layer 5 for HEVC encoder.
3685 ``V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L6_BR (integer)``
3686 Indicates bit rate for hierarchical coding layer 6 for HEVC encoder.
3688 ``V4L2_CID_MPEG_VIDEO_REF_NUMBER_FOR_PFRAMES (integer)``
3689 Selects number of P reference pictures required for HEVC encoder.
3690 P-Frame can use 1 or 2 frames for reference.
3692 ``V4L2_CID_MPEG_VIDEO_PREPEND_SPSPPS_TO_IDR (integer)``
3693 Indicates whether to generate SPS and PPS at every IDR. Setting it to 0
3694 disables generating SPS and PPS at every IDR. Setting it to one enables
3695 generating SPS and PPS at every IDR.