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

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

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef 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
« no previous file with comments | « media/base/simd/filter_yuv.h ('k') | media/base/simd/filter_yuv_sse2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7f6067692b3ba68d01abd98f1f03c54fa692c1ce 100644
--- a/media/base/simd/filter_yuv_c.cc
+++ b/media/base/simd/filter_yuv_c.cc
@@ -2,16 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include "media/base/simd/filter_yuv.h"
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;
« no previous file with comments | « media/base/simd/filter_yuv.h ('k') | media/base/simd/filter_yuv_sse2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698