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

Unified Diff: remoting/codec/video_encoder_vpx_unittest.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: 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 | « remoting/codec/video_encoder_vpx_perftest.cc ('k') | remoting/protocol/audio_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder_vpx_unittest.cc
diff --git a/remoting/codec/video_encoder_vpx_unittest.cc b/remoting/codec/video_encoder_vpx_unittest.cc
index a847f03017f32f952c6ce809c8e7219efa2745ad..edca8136f6cf7c48ea1b203ba422a8155e0f89b5 100644
--- a/remoting/codec/video_encoder_vpx_unittest.cc
+++ b/remoting/codec/video_encoder_vpx_unittest.cc
@@ -4,6 +4,8 @@
#include "remoting/codec/video_encoder_vpx.h"
+#include <stdint.h>
+
#include <limits>
#include <vector>
@@ -16,8 +18,8 @@
namespace remoting {
// xRGB pixel colors for use by tests.
-const uint32 kBlueColor = 0x0000ff;
-const uint32 kGreenColor = 0x00ff00;
+const uint32_t kBlueColor = 0x0000ff;
+const uint32_t kGreenColor = 0x00ff00;
// Creates a frame stippled between blue and red pixels, which is useful for
// lossy/lossless encode and color tests. By default all pixels in the frame
@@ -28,9 +30,9 @@ static scoped_ptr<webrtc::DesktopFrame> CreateTestFrame(
new webrtc::BasicDesktopFrame(frame_size));
for (int x = 0; x < frame_size.width(); ++x) {
for (int y = 0; y < frame_size.height(); ++y) {
- uint8* pixel_u8 = frame->data() + (y * frame->stride()) +
- (x * webrtc::DesktopFrame::kBytesPerPixel);
- *(reinterpret_cast<uint32*>(pixel_u8)) =
+ uint8_t* pixel_u8 = frame->data() + (y * frame->stride()) +
+ (x * webrtc::DesktopFrame::kBytesPerPixel);
+ *(reinterpret_cast<uint32_t*>(pixel_u8)) =
((x + y) & 1) ? kGreenColor : kBlueColor;
}
}
« no previous file with comments | « remoting/codec/video_encoder_vpx_perftest.cc ('k') | remoting/protocol/audio_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698