Accepting request 307504 from graphics

1

OBS-URL: https://build.opensuse.org/request/show/307504
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gd?expand=0&rev=38
This commit is contained in:
Dominique Leuenberger 2015-05-18 21:01:46 +00:00 committed by Git OBS Bridge
commit 7598cea249
3 changed files with 33 additions and 0 deletions

24
gd-libvpx.patch Normal file
View File

@ -0,0 +1,24 @@
--- src/webpimg.c.orig 2015-01-06 10:16:03.000000000 +0100
+++ src/webpimg.c 2015-05-12 15:02:50.784722900 +0200
@@ -711,14 +711,14 @@
codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0);
codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2);
- vpx_img_wrap(&img, IMG_FMT_I420,
+ vpx_img_wrap(&img, VPX_IMG_FMT_I420,
y_width, y_height, 16, (uint8*)(Y));
- img.planes[PLANE_Y] = (uint8*)(Y);
- img.planes[PLANE_U] = (uint8*)(U);
- img.planes[PLANE_V] = (uint8*)(V);
- img.stride[PLANE_Y] = y_stride;
- img.stride[PLANE_U] = uv_stride;
- img.stride[PLANE_V] = uv_stride;
+ img.planes[VPX_PLANE_Y] = (uint8*)(Y);
+ img.planes[VPX_PLANE_U] = (uint8*)(U);
+ img.planes[VPX_PLANE_V] = (uint8*)(V);
+ img.stride[VPX_PLANE_Y] = y_stride;
+ img.stride[VPX_PLANE_U] = uv_stride;
+ img.stride[VPX_PLANE_V] = uv_stride;
res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY);

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 12 14:11:33 UTC 2015 - joerg.lorenzen@ki.tng.de
- Added patch gd-libvpx.patch to enable build against libvpx >= 1.4,
new VPX_ prefixed namespaces are available since libvpx = 0.9.1.
-------------------------------------------------------------------
Sat Feb 28 08:44:08 UTC 2015 - mpluskal@suse.com

View File

@ -37,6 +37,8 @@ Patch1: gd-fontpath.patch
Patch2: gd-format.patch
# could be upstreamed
Patch3: gd-aliasing.patch
# could be upstreamed
Patch4: gd-libvpx.patch
BuildRequires: fontconfig-devel
BuildRequires: freetype2-devel
BuildRequires: libjpeg-devel
@ -92,6 +94,7 @@ the formats accepted for inline images by most browsers.
%patch1
%patch2
%patch3
%patch4
%build
autoreconf -fiv