From bd6610457a0913772d0e0c048912e6858e7aafa7 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Thu, 24 Sep 2020 16:34:25 +0900 Subject: [PATCH] v4l2: Support additional V4L2 CIDs [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 --- packaging/gst-plugins-good.spec | 3 ++- sys/v4l2/v4l2_calls.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packaging/gst-plugins-good.spec b/packaging/gst-plugins-good.spec index 170555b..af4e3e6 100644 --- a/packaging/gst-plugins-good.spec +++ b/packaging/gst-plugins-good.spec @@ -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" diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c index 137f399..294e5dc 100644 --- a/sys/v4l2/v4l2_calls.c +++ b/sys/v4l2/v4l2_calls.c @@ -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: -- 2.7.4