Bump to 1.2.4 07/285507/1 accepted/tizen_base_dev accepted/tizen/8.0/base/20231005.044913 accepted/tizen/base/20221215.003933 accepted/tizen/base/20221226.082525 accepted/tizen/base/dev/20230602.080903 tizen_8.0_m2_release
authorhj kim <backto.kim@samsung.com>
Wed, 14 Dec 2022 01:44:20 +0000 (10:44 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 14 Dec 2022 01:45:53 +0000 (10:45 +0900)
Change-Id: Ic82f583d4a369bc82b8de3a49b539ddd255ec127

packaging/libwebp.manifest [new file with mode: 0644]
packaging/libwebp.spec [new file with mode: 0644]
src/dsp/dec_neon.c

diff --git a/packaging/libwebp.manifest b/packaging/libwebp.manifest
new file mode 100644 (file)
index 0000000..c00c25b
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+        <request>
+                <domain name="_" />
+        </request>
+</manifest>
diff --git a/packaging/libwebp.spec b/packaging/libwebp.spec
new file mode 100644 (file)
index 0000000..de9fa99
--- /dev/null
@@ -0,0 +1,81 @@
+Summary:       WebP image codec libraries
+Name:          libwebp
+Version:       1.2.4
+Release:       0
+Group:         Multimedia/Libraries
+URL:           https://developers.google.com/speed/webp/
+License:       BSD-3-clause
+Source0:       %{name}-%{version}.tar.gz
+Source1:       %{name}.manifest
+
+BuildRequires:  cmake
+BuildRequires:  libtool
+BuildRequires:  giflib-devel
+
+%description
+WebP is an image format that does both lossy and lossless compression of
+digital photographic images. WebP consists of a codec based on VP8, that Google
+open-sourced in May 2010 and a container based on RIFF. Webmasters, web
+developers and browser developers can use WebP to compress, archive and
+distribute digital images more efficiently.
+
+%package devel
+Summary:       Libraries and header files for libwebp app development
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+libwebp-devel contains the libraries and header files you'll need to develop libwebp applications.
+libwebp is an WebP image codec libraries.
+
+%package doc
+Summary:       libwebp documentation
+Group:         Documentation
+
+%description doc
+Documentation for libwebp.
+
+%package tools
+Summary:       libwebp tools
+Group:         Development/Tools
+Requires:      %{name} = %{version}-%{release}
+
+%description tools
+libwebp tools.
+
+%prep
+%setup -q
+cp %{SOURCE1} .
+
+%build
+export CFLAGS="$CFLAGS -D__TIZEN__"
+%cmake .
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%license COPYING PATENTS
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%license COPYING PATENTS
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+%{_includedir}/webp
+
+%files doc
+%{_mandir}/man[1]/[a-z]*
+
+%files tools
+%defattr(-,root,root,-)
+%{_bindir}/[a-z]*
+#config
+/usr/share/WebP/cmake/*
index fa85170..d287ef6 100644 (file)
@@ -12,6 +12,8 @@
 // Authors: Somnath Banerjee (somnath@google.com)
 //          Johann Koenig (johannkoenig@google.com)
 
+#include <unistd.h>
+
 #include "src/dsp/dsp.h"
 
 #if defined(WEBP_USE_NEON)
@@ -877,6 +879,9 @@ static void VFilter16i_NEON(uint8_t* p, int stride,
   for (k = 3; k != 0; --k) {
     uint8x16_t q0, q1, q2, q3;
     p += 4 * stride;
+#ifdef __TIZEN__
+       usleep(1);
+#endif
     Load16x4_NEON(p + 2  * stride, stride, &q0, &q1, &q2, &q3);
     {
       const uint8x16_t mask =