diff options
author | Tae-Young Chung <ty83.chung@samsung.com> | 2022-06-20 16:30:29 +0900 |
---|---|---|
committer | Tae-Young Chung <ty83.chung@samsung.com> | 2022-09-14 15:52:17 +0900 |
commit | 73e19081dd97b2af40553070aba64215f1e70127 (patch) | |
tree | 1841cc502e7701ab998a133b852f99406c63e649 | |
parent | 97a41bffb7a7be4f0257d630950f6a341ec4a35c (diff) | |
download | opencv-accepted/tizen_6.5_unified.tar.gz opencv-accepted/tizen_6.5_unified.tar.bz2 opencv-accepted/tizen_6.5_unified.zip |
Support webp in imgcodecs module on VD profilesubmit/tizen_6.5/20220915.014228accepted/tizen/6.5/unified/20220916.124607tizen_6.5accepted/tizen_6.5_unified
[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)
-rw-r--r-- | packaging/opencv.spec | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/opencv.spec b/packaging/opencv.spec index 05540476e1..cf7b94fb5e 100644 --- a/packaging/opencv.spec +++ b/packaging/opencv.spec @@ -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 \ |