Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Unified Diff: media/base/yuv_convert_c.cc

Issue 7519024: Fix possible typos in RGB->YUV conversion (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/yuv_convert_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/yuv_convert_c.cc
===================================================================
--- media/base/yuv_convert_c.cc (revision 94391)
+++ media/base/yuv_convert_c.cc (working copy)
@@ -35,7 +35,7 @@
uplane[j / 2] = clip_byte(((pixel[2] * -38 + pixel[1] * -74 +
pixel[0] * 112 + 128) >> 8) + 128);
vplane[j / 2] = clip_byte(((pixel[2] * 112 + pixel[1] * -94 +
- pixel[1] * -18 + 128) >> 8) + 128);
+ pixel[0] * -18 + 128) >> 8) + 128);
}
}
@@ -67,7 +67,7 @@
uplane[j / 2] = clip_byte(((pixel[2] * -38 + pixel[1] * -74 +
pixel[0] * 112 + 128) >> 8) + 128);
vplane[j / 2] = clip_byte(((pixel[2] * 112 + pixel[1] * -94 +
- pixel[1] * -18 + 128) >> 8) + 128);
+ pixel[0] * -18 + 128) >> 8) + 128);
}
}
« no previous file with comments | « no previous file | media/base/yuv_convert_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698