Support webp in imgcodecs module on VD profile 70/281170/3 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20220916.124607 submit/tizen_6.5/20220915.014228
authorTae-Young Chung <ty83.chung@samsung.com>
Mon, 20 Jun 2022 07:30:29 +0000 (16:30 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Wed, 14 Sep 2022 06:52:17 +0000 (15:52 +0900)
[Version] 4.5.0-4
[Issue type] new feature

imgcodecs module supports webp using libwebp which is installed in
system, not using 3rdparty webp library in OpenCV itself.

Change-Id: Iab628361d6f53175631a9bd58d1c6a2bccffbcf8
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
(cherry picked from commit 5583797beed871cdd9d15ca4e2d6c03979af7aa3)

packaging/opencv.spec

index 0554047..cf7b94f 100644 (file)
@@ -1,7 +1,7 @@
 Name: opencv
 Summary: OpenCV library
 Version: 4.5.0
-Release: 3
+Release: 4
 Group: Development/Libraries
 License: Apache-2.0 and BSD-3-Clause
 Source0: %{name}-%{version}.tar.gz
@@ -29,6 +29,8 @@ BuildRequires:  libswscale-devel
 %if "%{?profile}" != "tv"
 BuildRequires:  python3-devel
 BuildRequires:  python3-numpy-devel
+%else
+BuildRequires:  pkgconfig(libwebp)
 %endif
 
 Requires(post):  /sbin/ldconfig
@@ -204,7 +206,11 @@ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
        -DWITH_INTELPERC=OFF \
        -DWITH_IPP=OFF \
        -DWITH_JASPER=OFF \
+%if "%{?profile}" != "tv"
        -DWITH_WEBP=OFF \
+%else
+       -DWITH_WEBP=ON \
+%endif
        -DWITH_MSMF=OFF \
        -DWITH_NVCUVID=OFF \
        -DWITH_OPENCL=OFF \