Support gstreamer as a backend of videoio module 40/277640/4 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20220718.140321 submit/tizen_6.0/20220715.051055
authorTae-Young Chung <ty83.chung@samsung.com>
Mon, 11 Jul 2022 05:45:30 +0000 (14:45 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Fri, 15 Jul 2022 04:35:07 +0000 (13:35 +0900)
[Version] 4.2.0-3
[Issue type] update

DA requests to enable gstreamer backend of videoio module

Change-Id: I4591da13c6720cc25f7ce4165bc0d8e90bc40433
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/opencv.spec

index e5b4e18..b62b217 100644 (file)
@@ -1,7 +1,13 @@
+%if 0%{?_with_da_profile}
+%define support_gstreamer 1
+%else
+%define support_gstreamer 0
+%endif
+
 Name: opencv
 Summary: OpenCV library
 Version: 4.2.0
-Release: 2
+Release: 3
 Group: Development/Libraries
 License: BSD-3-Clause and LGPL-2.1+
 Source0: %{name}-%{version}.tar.gz
@@ -12,9 +18,8 @@ BuildRequires:  pkg-config
 BuildRequires:  libjpeg-turbo-devel
 BuildRequires:  libpng-devel
 BuildRequires:  libtiff-devel
-BuildRequires:  gstreamer
-BuildRequires:  gst-plugins-base
-BuildRequires:  gst-plugins-good
+BuildRequires:  pkgconfig(gstreamer-1.0)
+BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
 BuildRequires:  libavutil-devel
 BuildRequires:  libavcodec-devel
 BuildRequires:  libavformat-devel
@@ -122,7 +127,6 @@ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_opencv_sfm=OFF \
        -DBUILD_opencv_shape=OFF \
        -DBUILD_opencv_stereo=OFF \
-       -DBUILD_opencv_stitching=OFF \
        -DBUILD_opencv_structured_light=OFF \
        -DBUILD_opencv_superres=OFF \
        -DBUILD_opencv_surface_matching=OFF \
@@ -195,7 +199,11 @@ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
        -DWITH_VTK=OFF \
        -DWITH_WIN32UI=OFF \
        -DWITH_XIMEA=OFF \
+%if 0%{?support_gstreamer}
+       -DWITH_GSTREAMER=ON \
+%else
        -DWITH_GSTREAMER=OFF \
+%endif
        -DWITH_V4L=ON \
        -DWITH_GTK=OFF \
        -DWITH_MATLAB=OFF \