Bläddra i källkod

Merge "video: driver: Move private color definitions from UAPI"

qctecmdr 2 år sedan
förälder
incheckning
6a9848a4ad
2 ändrade filer med 31 tillägg och 30 borttagningar
  1. 31 0
      driver/vidc/inc/msm_vidc_internal.h
  2. 0 30
      include/uapi/vidc/media/v4l2_vidc_extensions.h

+ 31 - 0
driver/vidc/inc/msm_vidc_internal.h

@@ -24,6 +24,37 @@
 
 struct msm_vidc_inst;
 
+/* start of vidc specific colorspace definitions */
+/*
+ * V4L2_COLORSPACE_VIDC_START, V4L2_XFER_FUNC_VIDC_START
+ * and V4L2_YCBCR_VIDC_START are introduced because
+ * V4L2_COLORSPACE_LAST, V4L2_XFER_FUNC_LAST, and
+ * V4L2_YCBCR_ENC_LAST respectively are not accessible
+ * in userspace. These values are needed in userspace
+ * to check if the colorspace info is private.
+ */
+#define V4L2_COLORSPACE_VIDC_START           100
+#define V4L2_COLORSPACE_VIDC_GENERIC_FILM    101
+#define V4L2_COLORSPACE_VIDC_EG431           102
+#define V4L2_COLORSPACE_VIDC_EBU_TECH        103
+
+#define V4L2_XFER_FUNC_VIDC_START            200
+#define V4L2_XFER_FUNC_VIDC_BT470_SYSTEM_M   201
+#define V4L2_XFER_FUNC_VIDC_BT470_SYSTEM_BG  202
+#define V4L2_XFER_FUNC_VIDC_BT601_525_OR_625 203
+#define V4L2_XFER_FUNC_VIDC_LINEAR           204
+#define V4L2_XFER_FUNC_VIDC_XVYCC            205
+#define V4L2_XFER_FUNC_VIDC_BT1361           206
+#define V4L2_XFER_FUNC_VIDC_BT2020           207
+#define V4L2_XFER_FUNC_VIDC_ST428            208
+#define V4L2_XFER_FUNC_VIDC_HLG              209
+
+/* should be 255 or below due to u8 limitation */
+#define V4L2_YCBCR_VIDC_START                240
+#define V4L2_YCBCR_VIDC_SRGB_OR_SMPTE_ST428  241
+#define V4L2_YCBCR_VIDC_FCC47_73_682         242
+/* end of vidc specific colorspace definitions */
+
 /* TODO : remove once available in mainline kernel */
 #ifndef V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE
 #define V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE    (3)

+ 0 - 30
include/uapi/vidc/media/v4l2_vidc_extensions.h

@@ -17,37 +17,7 @@
 #define V4L2_PIX_FMT_HEIC                       v4l2_fourcc('H', 'E', 'I', 'C')
 /* AV1 */
 #define V4L2_PIX_FMT_AV1                        v4l2_fourcc('A', 'V', '1', '0')
-/* start of vidc specific colorspace definitions */
-/*
- * V4L2_COLORSPACE_VIDC_START, V4L2_XFER_FUNC_VIDC_START
- * and V4L2_YCBCR_VIDC_START are introduced because
- * V4L2_COLORSPACE_LAST, V4L2_XFER_FUNC_LAST, and
- * V4L2_YCBCR_ENC_LAST respectively are not accessible
- * in userspace. These values are needed in userspace
- * to check if the colorspace info is private.
- */
-#define V4L2_COLORSPACE_VIDC_START           100
-#define V4L2_COLORSPACE_VIDC_GENERIC_FILM    101
-#define V4L2_COLORSPACE_VIDC_EG431           102
-#define V4L2_COLORSPACE_VIDC_EBU_TECH        103
-
-#define V4L2_XFER_FUNC_VIDC_START            200
-#define V4L2_XFER_FUNC_VIDC_BT470_SYSTEM_M   201
-#define V4L2_XFER_FUNC_VIDC_BT470_SYSTEM_BG  202
-#define V4L2_XFER_FUNC_VIDC_BT601_525_OR_625 203
-#define V4L2_XFER_FUNC_VIDC_LINEAR           204
-#define V4L2_XFER_FUNC_VIDC_XVYCC            205
-#define V4L2_XFER_FUNC_VIDC_BT1361           206
-#define V4L2_XFER_FUNC_VIDC_BT2020           207
-#define V4L2_XFER_FUNC_VIDC_ST428            208
-#define V4L2_XFER_FUNC_VIDC_HLG              209
-
-/* should be 255 or below due to u8 limitation */
-#define V4L2_YCBCR_VIDC_START                240
-#define V4L2_YCBCR_VIDC_SRGB_OR_SMPTE_ST428  241
-#define V4L2_YCBCR_VIDC_FCC47_73_682         242
 
-/* end of vidc specific colorspace definitions */
 #ifndef V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE
 #define V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE    (3)
 #endif