Commit aebc4304 authored by fbarchard@google.com's avatar fbarchard@google.com

ConvertToI420 accept I400

BUG=none
TEST=none
Review URL: http://webrtc-codereview.appspot.com/328009

git-svn-id: http://libyuv.googlecode.com/svn/trunk@114 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 8b6d7d72
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 113
Version: 114
License: BSD
License File: LICENSE
......
......@@ -1066,6 +1066,15 @@ int ConvertToI420(const uint8* sample, size_t sample_size,
y, y_stride, u, u_stride, v, v_stride,
dst_width, inv_dst_height);
break;
case FOURCC_I400:
src = sample + src_width * crop_y + crop_x;
I400ToI420(src, src_width,
y, y_stride,
u, u_stride,
v, v_stride,
dst_width, inv_dst_height);
break;
// Biplanar formats
case FOURCC_NV12:
src = sample + (src_width * crop_y + crop_x);
......
......@@ -43,6 +43,7 @@ enum FourCC {
FOURCC_I420 = FOURCC('I', '4', '2', '0'),
FOURCC_I422 = FOURCC('I', '4', '2', '2'),
FOURCC_I444 = FOURCC('I', '4', '4', '4'),
FOURCC_I400 = FOURCC('I', '4', '0', '0'),
FOURCC_YV12 = FOURCC('Y', 'V', '1', '2'),
FOURCC_YV16 = FOURCC('Y', 'V', '1', '6'),
FOURCC_YV24 = FOURCC('Y', 'V', '2', '4'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment