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

Unified Diff: media/base/simd/filter_yuv_c.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
Index: media/base/simd/filter_yuv_c.cc
diff --git a/media/base/simd/filter_yuv_c.cc b/media/base/simd/filter_yuv_c.cc
index 3411208e43c69f7f300d0a73f7b5b769dc5ab597..2a19a68289302381171c0502b889d989a3a2cc72 100644
--- a/media/base/simd/filter_yuv_c.cc
+++ b/media/base/simd/filter_yuv_c.cc
@@ -6,12 +6,15 @@
namespace media {
-void FilterYUVRows_C(uint8* ybuf, const uint8* y0_ptr, const uint8* y1_ptr,
- int source_width, uint8 source_y_fraction) {
- uint8 y1_fraction = source_y_fraction;
- uint16 y0_fraction = 256 - y1_fraction;
- uint8* end = ybuf + source_width;
- uint8* rounded_end = ybuf + (source_width & ~7);
+void FilterYUVRows_C(uint8_t* ybuf,
+ const uint8_t* y0_ptr,
+ const uint8_t* y1_ptr,
+ int source_width,
+ uint8_t source_y_fraction) {
+ uint8_t y1_fraction = source_y_fraction;
+ uint16_t y0_fraction = 256 - y1_fraction;
+ uint8_t* end = ybuf + source_width;
+ uint8_t* rounded_end = ybuf + (source_width & ~7);
while (ybuf < rounded_end) {
ybuf[0] = (y0_ptr[0] * y0_fraction + y1_ptr[0] * y1_fraction) >> 8;

Powered by Google App Engine
This is Rietveld 408576698