From 5583797beed871cdd9d15ca4e2d6c03979af7aa3 Mon Sep 17 00:00:00 2001 From: Tae-Young Chung Date: Mon, 20 Jun 2022 16:30:29 +0900 Subject: [PATCH] Support webp in imgcodecs module [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 --- packaging/opencv.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/opencv.spec b/packaging/opencv.spec index 0f92b6e7ee..0b415fd503 100644 --- a/packaging/opencv.spec +++ b/packaging/opencv.spec @@ -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 \ -- 2.34.1