Support webp in imgcodecs module 39/276539/2 accepted/tizen/unified/20220623.032538 submit/tizen/20220622.054219
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, 22 Jun 2022 02:22:40 +0000 (11:22 +0900)
[Version] 4.5.3-3
[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>
packaging/opencv.spec

index 0f92b6e..0b415fd 100644 (file)
@@ -1,7 +1,7 @@
 Name: opencv
 Summary: OpenCV library
 Version: 4.5.3
-Release: 2
+Release: 3
 Group: Development/Libraries
 License: Apache-2.0 and BSD-3-Clause
 Source0: %{name}-%{version}.tar.gz
@@ -25,6 +25,7 @@ BuildRequires:  libavutil-devel
 BuildRequires:  libavcodec-devel
 BuildRequires:  libavformat-devel
 BuildRequires:  libswscale-devel
+BuildRequires:  pkgconfig(libwebp)
 #support python3
 %if "%{?profile}" != "tv"
 BuildRequires:  python3-devel
@@ -208,7 +209,7 @@ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
        -DWITH_IPP=OFF \
        -DWITH_JASPER=OFF \
        -DWITH_OPENJPEG=OFF \
-       -DWITH_WEBP=OFF \
+       -DWITH_WEBP=ON \
        -DWITH_MSMF=OFF \
        -DWITH_NVCUVID=OFF \
        -DWITH_OPENCL=OFF \