| Index: source/planar_functions.cc
|
| diff --git a/source/planar_functions.cc b/source/planar_functions.cc
|
| index 795d1054b849829f2e02af7a0c2ea2e2b6510ceb..33b77fafe9beaa72056899dfeab4a7087598540e 100644
|
| --- a/source/planar_functions.cc
|
| +++ b/source/planar_functions.cc
|
| @@ -843,75 +843,6 @@ int I422ToBGRA(const uint8* src_y, int src_stride_y,
|
| return 0;
|
| }
|
|
|
| -// Convert I422 to ABGR.
|
| -LIBYUV_API
|
| -int I422ToABGR(const uint8* src_y, int src_stride_y,
|
| - const uint8* src_u, int src_stride_u,
|
| - const uint8* src_v, int src_stride_v,
|
| - uint8* dst_abgr, int dst_stride_abgr,
|
| - int width, int height) {
|
| - int y;
|
| - void (*I422ToABGRRow)(const uint8* y_buf,
|
| - const uint8* u_buf,
|
| - const uint8* v_buf,
|
| - uint8* rgb_buf,
|
| - const struct YuvConstants* yuvconstants,
|
| - int width) = I422ToABGRRow_C;
|
| - if (!src_y || !src_u || !src_v ||
|
| - !dst_abgr ||
|
| - width <= 0 || height == 0) {
|
| - return -1;
|
| - }
|
| - // Negative height means invert the image.
|
| - if (height < 0) {
|
| - height = -height;
|
| - dst_abgr = dst_abgr + (height - 1) * dst_stride_abgr;
|
| - dst_stride_abgr = -dst_stride_abgr;
|
| - }
|
| - // Coalesce rows.
|
| - if (src_stride_y == width &&
|
| - src_stride_u * 2 == width &&
|
| - src_stride_v * 2 == width &&
|
| - dst_stride_abgr == width * 4) {
|
| - width *= height;
|
| - height = 1;
|
| - src_stride_y = src_stride_u = src_stride_v = dst_stride_abgr = 0;
|
| - }
|
| -#if defined(HAS_I422TOABGRROW_NEON)
|
| - if (TestCpuFlag(kCpuHasNEON) && width >= 8) {
|
| - I422ToABGRRow = I422ToABGRRow_Any_NEON;
|
| - if (IS_ALIGNED(width, 8)) {
|
| - I422ToABGRRow = I422ToABGRRow_NEON;
|
| - }
|
| - }
|
| -#endif
|
| -#if defined(HAS_I422TOABGRROW_SSSE3)
|
| - if (TestCpuFlag(kCpuHasSSSE3)) {
|
| - I422ToABGRRow = I422ToABGRRow_Any_SSSE3;
|
| - if (IS_ALIGNED(width, 8)) {
|
| - I422ToABGRRow = I422ToABGRRow_SSSE3;
|
| - }
|
| - }
|
| -#endif
|
| -#if defined(HAS_I422TOABGRROW_AVX2)
|
| - if (TestCpuFlag(kCpuHasAVX2)) {
|
| - I422ToABGRRow = I422ToABGRRow_Any_AVX2;
|
| - if (IS_ALIGNED(width, 16)) {
|
| - I422ToABGRRow = I422ToABGRRow_AVX2;
|
| - }
|
| - }
|
| -#endif
|
| -
|
| - for (y = 0; y < height; ++y) {
|
| - I422ToABGRRow(src_y, src_u, src_v, dst_abgr, &kYuvIConstants, width);
|
| - dst_abgr += dst_stride_abgr;
|
| - src_y += src_stride_y;
|
| - src_u += src_stride_u;
|
| - src_v += src_stride_v;
|
| - }
|
| - return 0;
|
| -}
|
| -
|
| // Convert I422 to RGBA.
|
| LIBYUV_API
|
| int I422ToRGBA(const uint8* src_y, int src_stride_y,
|
|
|