v4l2: Support additional V4L2 CIDs 89/244789/2
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 24 Sep 2020 07:34:25 +0000 (16:34 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 24 Sep 2020 10:43:35 +0000 (19:43 +0900)
[https://www.linuxtv.org/downloads/legacy/video4linux/API/V4L2_API/spec/ch01s08.html]
- V4L2_CID_WHITE_BALANCE_TEMPERATURE
 : This control specifies the white balance settings as a color temperature in Kelvin.

[https://www.linuxtv.org/downloads/legacy/video4linux/API/V4L2_API/spec/ch01s09.html]
- V4L2_CID_EXPOSURE_AUTO
 : Enables automatic adjustments of the exposure time and/or iris aperture.
- V4L2_CID_EXPOSURE_ABSOLUTE
 : Determines the exposure time of the camera sensor
- V4L2_CID_EXPOSURE_AUTO_PRIORITY
 : When V4L2_CID_EXPOSURE_AUTO is set to AUTO or APERTURE_PRIORITY,
   this control determines if the device may dynamically vary the frame rate.

[Version] 1.16.2-12
[Issue Type] Update

Change-Id: Idab94bb29fdd36a62aaf2df025e2fd338f11c124
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/gst-plugins-good.spec
sys/v4l2/v4l2_calls.c

index 170555b..af4e3e6 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:           gst-plugins-good
 Version:        1.16.2
-Release:        11
+Release:        12
 License:        LGPL-2.1+
 Summary:        GStreamer Streaming-Media Framework Plug-Ins
 Url:            http://gstreamer.freedesktop.org/
@@ -89,6 +89,7 @@ export CFLAGS+=" \
        -DTIZEN_FEATURE_DISABLE_V4L2_DEPENDENCY\
        -DTIZEN_FEATURE_AVIDEMUX_MODIFICATION\
        -DTIZEN_FEATURE_USE_LIBV4L2\
+       -DTIZEN_FEATURE_V4L2_ADDITIONAL_CID_SUPPORT\
        -fstack-protector-strong\
        -Wl,-z,relro\
        -D_FORTIFY_SOURCE=2"
index 137f399..294e5dc 100644 (file)
@@ -374,6 +374,12 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
       case V4L2_CID_AUTOGAIN:
       case V4L2_CID_GAIN:
       case V4L2_CID_SHARPNESS:
+#ifdef TIZEN_FEATURE_V4L2_ADDITIONAL_CID_SUPPORT
+      case V4L2_CID_WHITE_BALANCE_TEMPERATURE:
+      case V4L2_CID_EXPOSURE_AUTO:
+      case V4L2_CID_EXPOSURE_ABSOLUTE:
+      case V4L2_CID_EXPOSURE_AUTO_PRIORITY:
+#endif /* TIZEN_FEATURE_V4L2_ADDITIONAL_CID_SUPPORT */
         /* we only handle these for now (why?) */
         break;
       case V4L2_CID_HFLIP: