Lines 1-29
Link Here
|
1 |
Adjust to libvpx 1.4.0 until the code is removed. |
|
|
2 |
|
3 |
https://chromium.googlesource.com/webm/libvpx/+/9cdaa3d%5E!/ |
4 |
https://bitbucket.org/libgd/gd-libgd/commits/824a3aa |
5 |
|
6 |
--- src/webpimg.c.orig 2013-06-25 09:58:23 UTC |
7 |
+++ src/webpimg.c |
8 |
@@ -711,14 +711,14 @@ static WebPResult VPXEncode(const uint8* |
9 |
codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0); |
10 |
codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2); |
11 |
|
12 |
- vpx_img_wrap(&img, IMG_FMT_I420, |
13 |
+ vpx_img_wrap(&img, VPX_IMG_FMT_I420, |
14 |
y_width, y_height, 16, (uint8*)(Y)); |
15 |
- img.planes[PLANE_Y] = (uint8*)(Y); |
16 |
- img.planes[PLANE_U] = (uint8*)(U); |
17 |
- img.planes[PLANE_V] = (uint8*)(V); |
18 |
- img.stride[PLANE_Y] = y_stride; |
19 |
- img.stride[PLANE_U] = uv_stride; |
20 |
- img.stride[PLANE_V] = uv_stride; |
21 |
+ img.planes[VPX_PLANE_Y] = (uint8*)(Y); |
22 |
+ img.planes[VPX_PLANE_U] = (uint8*)(U); |
23 |
+ img.planes[VPX_PLANE_V] = (uint8*)(V); |
24 |
+ img.stride[VPX_PLANE_Y] = y_stride; |
25 |
+ img.stride[VPX_PLANE_U] = uv_stride; |
26 |
+ img.stride[VPX_PLANE_V] = uv_stride; |
27 |
|
28 |
res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY); |
29 |
|