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

Unified Diff: talk/media/devices/yuvframescapturer.cc

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 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 | « talk/media/devices/yuvframescapturer.h ('k') | talk/media/sctp/sctpdataengine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/devices/yuvframescapturer.cc
diff --git a/talk/media/devices/yuvframescapturer.cc b/talk/media/devices/yuvframescapturer.cc
index 7579df170a206409e5937c99699e090a98c797b0..dc91cc84110a7d17803d67c28692314223b1328c 100644
--- a/talk/media/devices/yuvframescapturer.cc
+++ b/talk/media/devices/yuvframescapturer.cc
@@ -140,7 +140,7 @@ CaptureState YuvFramesCapturer::Start(const VideoFormat& capture_format) {
SetCaptureFormat(&capture_format);
barcode_reference_timestamp_millis_ =
- static_cast<int64>(rtc::Time()) * 1000;
+ static_cast<int64_t>(rtc::Time()) * 1000;
// Create a thread to generate frames.
frames_generator_thread = new YuvFramesThread(this);
bool ret = frames_generator_thread->Start();
@@ -166,7 +166,7 @@ void YuvFramesCapturer::Stop() {
SetCaptureFormat(NULL);
}
-bool YuvFramesCapturer::GetPreferredFourccs(std::vector<uint32>* fourccs) {
+bool YuvFramesCapturer::GetPreferredFourccs(std::vector<uint32_t>* fourccs) {
if (!fourccs) {
return false;
}
@@ -180,21 +180,20 @@ void YuvFramesCapturer::ReadFrame(bool first_frame) {
if (!first_frame) {
SignalFrameCaptured(this, &captured_frame_);
}
- uint8* buffer = new uint8[frame_data_size_];
+ uint8_t* buffer = new uint8_t[frame_data_size_];
frame_generator_->GenerateNextFrame(buffer, GetBarcodeValue());
frame_index_++;
memmove(captured_frame_.data, buffer, frame_data_size_);
delete[] buffer;
}
-
-int32 YuvFramesCapturer::GetBarcodeValue() {
+int32_t YuvFramesCapturer::GetBarcodeValue() {
if (barcode_reference_timestamp_millis_ == -1 ||
frame_index_ % barcode_interval_ != 0) {
return -1;
}
- int64 now_millis = static_cast<int64>(rtc::Time()) * 1000;
- return static_cast<int32>(now_millis - barcode_reference_timestamp_millis_);
+ int64_t now_millis = static_cast<int64_t>(rtc::Time()) * 1000;
+ return static_cast<int32_t>(now_millis - barcode_reference_timestamp_millis_);
}
} // namespace cricket
« no previous file with comments | « talk/media/devices/yuvframescapturer.h ('k') | talk/media/sctp/sctpdataengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698