Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 545952
Collapse All | Expand All

(-)ext/gd/libgd/webpimg.c.orig (-7 / +7 lines)
Lines 706-719 Link Here
706
    codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0);
706
    codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0);
707
    codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2);
707
    codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2);
708
708
709
    vpx_img_wrap(&img, IMG_FMT_I420,
709
    vpx_img_wrap(&img, VPX_IMG_FMT_I420,
710
                 y_width, y_height, 16, (uint8*)(Y));
710
                 y_width, y_height, 16, (uint8*)(Y));
711
    img.planes[PLANE_Y] = (uint8*)(Y);
711
    img.planes[VPX_PLANE_Y] = (uint8*)(Y);
712
    img.planes[PLANE_U] = (uint8*)(U);
712
    img.planes[VPX_PLANE_U] = (uint8*)(U);
713
    img.planes[PLANE_V] = (uint8*)(V);
713
    img.planes[VPX_PLANE_V] = (uint8*)(V);
714
    img.stride[PLANE_Y] = y_stride;
714
    img.stride[VPX_PLANE_Y] = y_stride;
715
    img.stride[PLANE_U] = uv_stride;
715
    img.stride[VPX_PLANE_U] = uv_stride;
716
    img.stride[PLANE_V] = uv_stride;
716
    img.stride[VPX_PLANE_V] = uv_stride;
717
717
718
    res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY);
718
    res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY);
719
719

Return to bug 545952