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

Change YUV to RGB to subtract the chroma contributions from the bias.

BUG=324
TESTED=win64 build and TestFullYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/33999004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1246 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent c62d3011
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1245
Version: 1246
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1245
#define LIBYUV_VERSION 1246
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -94,9 +94,9 @@ void I422ToARGBRow_SSSE3(const uint8* y_buf,
xmm0 = _mm_maddubs_epi16(xmm0, *(__m128i*)kUVToB);
xmm1 = _mm_maddubs_epi16(xmm1, *(__m128i*)kUVToG);
xmm2 = _mm_maddubs_epi16(xmm2, *(__m128i*)kUVToR);
xmm0 = _mm_sub_epi16(xmm0, *(__m128i*)kUVBiasB);
xmm1 = _mm_sub_epi16(xmm1, *(__m128i*)kUVBiasG);
xmm2 = _mm_sub_epi16(xmm2, *(__m128i*)kUVBiasR);
xmm0 = _mm_sub_epi16(*(__m128i*)kUVBiasB, xmm0);
xmm1 = _mm_sub_epi16(*(__m128i*)kUVBiasG, xmm1);
xmm2 = _mm_sub_epi16(*(__m128i*)kUVBiasR, xmm2);
xmm3 = _mm_loadl_epi64((__m128i*)y_buf);
xmm3 = _mm_unpacklo_epi8(xmm3, xmm3);
xmm3 = _mm_mulhi_epu16(xmm3, *(__m128i*)kYToRgb);
......
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