]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: uapi: v4l2-controls: Cleanup codec definitions
authorPaul Kocialkowski <paulk@sys-base.io>
Sun, 24 Aug 2025 18:07:34 +0000 (20:07 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 4 Sep 2025 08:37:05 +0000 (10:37 +0200)
Move some fields closer to where they are used, add missing tabs
and remove an extra newline.

Signed-off-by: Paul Kocialkowski <paulk@sys-base.io>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
include/uapi/linux/v4l2-controls.h

index 7aef88465d042ef41a47ba649135331a0d7a8d05..2d30107e047ee3cf6b149e5b075cc9d4137b7d3f 100644 (file)
@@ -1537,15 +1537,6 @@ struct v4l2_ctrl_h264_pred_weights {
        struct v4l2_h264_weight_factors weight_factors[2];
 };
 
-#define V4L2_H264_SLICE_TYPE_P                         0
-#define V4L2_H264_SLICE_TYPE_B                         1
-#define V4L2_H264_SLICE_TYPE_I                         2
-#define V4L2_H264_SLICE_TYPE_SP                                3
-#define V4L2_H264_SLICE_TYPE_SI                                4
-
-#define V4L2_H264_SLICE_FLAG_DIRECT_SPATIAL_MV_PRED    0x01
-#define V4L2_H264_SLICE_FLAG_SP_FOR_SWITCH             0x02
-
 #define V4L2_H264_TOP_FIELD_REF                                0x1
 #define V4L2_H264_BOTTOM_FIELD_REF                     0x2
 #define V4L2_H264_FRAME_REF                            0x3
@@ -1566,8 +1557,17 @@ struct v4l2_h264_reference {
  * Maximum DPB size, as specified by section 'A.3.1 Level limits
  * common to the Baseline, Main, and Extended profiles'.
  */
-#define V4L2_H264_NUM_DPB_ENTRIES 16
-#define V4L2_H264_REF_LIST_LEN (2 * V4L2_H264_NUM_DPB_ENTRIES)
+#define V4L2_H264_NUM_DPB_ENTRIES              16
+#define V4L2_H264_REF_LIST_LEN                 (2 * V4L2_H264_NUM_DPB_ENTRIES)
+
+#define V4L2_H264_SLICE_TYPE_P                         0
+#define V4L2_H264_SLICE_TYPE_B                         1
+#define V4L2_H264_SLICE_TYPE_I                         2
+#define V4L2_H264_SLICE_TYPE_SP                                3
+#define V4L2_H264_SLICE_TYPE_SI                                4
+
+#define V4L2_H264_SLICE_FLAG_DIRECT_SPATIAL_MV_PRED            0x01
+#define V4L2_H264_SLICE_FLAG_SP_FOR_SWITCH                     0x02
 
 #define V4L2_CID_STATELESS_H264_SLICE_PARAMS   (V4L2_CID_CODEC_STATELESS_BASE + 6)
 /**
@@ -1707,7 +1707,6 @@ struct v4l2_ctrl_h264_decode_params {
        __u32 flags;
 };
 
-
 /* Stateless FWHT control, used by the vicodec driver */
 
 /* Current FWHT version */