Support gstreamer as a backend of videoio module 16/282116/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062835 accepted/tizen/7.0/unified/hotfix/20221116.111212 accepted/tizen/unified/20221004.073919 tizen_7.0_m2_release
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>
Tue, 27 Sep 2022 06:37:29 +0000 (15:37 +0900)
[Version] 4.5.3-4
[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 0b415fd..e5a22f3 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.5.3
-Release: 3
+Release: 4
 Group: Development/Libraries
 License: Apache-2.0 and BSD-3-Clause
 Source0: %{name}-%{version}.tar.gz
@@ -18,9 +24,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
@@ -148,7 +153,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 \
@@ -229,7 +233,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 \