aboutsummaryrefslogtreecommitdiff
path: root/source/convert_from.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2016-10-11 11:14:16 -0700
committerFrank Barchard <fbarchard@google.com>2016-10-11 11:14:16 -0700
commitd363ea6527bf84b9498279c378e90de1dd8e3fcd (patch)
tree0e1c6885c4a8d1d3d7e5b84b5dcfd65f0b4afc08 /source/convert_from.cc
parent0071f46a1fad6151f16dd972456df236c0b6c23b (diff)
downloadlibyuv-d363ea6527bf84b9498279c378e90de1dd8e3fcd.tar.gz
Remove I411 support.
YUV 411 is very uncommon format. Remove support. Update documentation to reflect that 411 is deprecated. Simplify tests for YUV to only test with the new side by side YUV but keep old 3 plane test around with a macro for now. BUG=libyuv:645 R=kjellander@chromium.org Review URL: https://codereview.chromium.org/2406123002 .
Diffstat (limited to 'source/convert_from.cc')
-rw-r--r--source/convert_from.cc38
1 files changed, 1 insertions, 37 deletions
diff --git a/source/convert_from.cc b/source/convert_from.cc
index 1256ca99..89d24f47 100644
--- a/source/convert_from.cc
+++ b/source/convert_from.cc
@@ -104,28 +104,6 @@ int I420ToI444(const uint8* src_y, int src_stride_y,
dst_uv_width, dst_uv_height);
}
-// 420 chroma is 1/2 width, 1/2 height
-// 411 chroma is 1/4 width, 1x height
-LIBYUV_API
-int I420ToI411(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_y, int dst_stride_y,
- uint8* dst_u, int dst_stride_u,
- uint8* dst_v, int dst_stride_v,
- int width, int height) {
- const int dst_uv_width = (Abs(width) + 3) >> 2;
- const int dst_uv_height = Abs(height);
- return I420ToI4xx(src_y, src_stride_y,
- src_u, src_stride_u,
- src_v, src_stride_v,
- dst_y, dst_stride_y,
- dst_u, dst_stride_u,
- dst_v, dst_stride_v,
- width, height,
- dst_uv_width, dst_uv_height);
-}
-
// Copy to I400. Source can be I420,422,444,400,NV12,NV21
LIBYUV_API
int I400Copy(const uint8* src_y, int src_stride_y,
@@ -900,7 +878,7 @@ int I420ToRGB565Dither(const uint8* src_y, int src_stride_y,
for (y = 0; y < height; ++y) {
I422ToARGBRow(src_y, src_u, src_v, row_argb, &kYuvI601Constants, width);
ARGBToRGB565DitherRow(row_argb, dst_rgb565,
- *(uint32*)(dither4x4 + ((y & 3) << 2)), width);
+ *(uint32*)(dither4x4 + ((y & 3) << 2)), width); // NOLINT
dst_rgb565 += dst_stride_rgb565;
src_y += src_stride_y;
if (y & 1) {
@@ -1113,20 +1091,6 @@ int ConvertFromI420(const uint8* y, int y_stride,
width, height);
break;
}
- case FOURCC_I411: {
- int quarterwidth = (width + 3) / 4;
- uint8* dst_u = dst_sample + width * height;
- uint8* dst_v = dst_u + quarterwidth * height;
- r = I420ToI411(y, y_stride,
- u, u_stride,
- v, v_stride,
- dst_sample, width,
- dst_u, quarterwidth,
- dst_v, quarterwidth,
- width, height);
- break;
- }
-
// Formats not supported - MJPG, biplanar, some rgb formats.
default:
return -1; // unknown fourcc - return failure code.