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

Unified Diff: webrtc/tools/converter/converter.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 | « webrtc/tools/converter/converter.h ('k') | webrtc/tools/frame_analyzer/video_quality_analysis.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/converter/converter.cc
diff --git a/webrtc/tools/converter/converter.cc b/webrtc/tools/converter/converter.cc
index 6c9154c7da4f367c97da4e26b57a3c555eb3dc23..a9b453d5091f5680d59af6ff5b9d58e596922994 100644
--- a/webrtc/tools/converter/converter.cc
+++ b/webrtc/tools/converter/converter.cc
@@ -45,13 +45,13 @@ bool Converter::ConvertRGBAToI420Video(std::string frames_dir,
}
int input_frame_size = InputFrameSize();
- uint8* rgba_buffer = new uint8[input_frame_size];
+ uint8_t* rgba_buffer = new uint8_t[input_frame_size];
int y_plane_size = YPlaneSize();
- uint8* dst_y = new uint8[y_plane_size];
+ uint8_t* dst_y = new uint8_t[y_plane_size];
int u_plane_size = UPlaneSize();
- uint8* dst_u = new uint8[u_plane_size];
+ uint8_t* dst_u = new uint8_t[u_plane_size];
int v_plane_size = VPlaneSize();
- uint8* dst_v = new uint8[v_plane_size];
+ uint8_t* dst_v = new uint8_t[v_plane_size];
int counter = 0; // Counter to form frame names.
bool success = false; // Is conversion successful.
@@ -106,9 +106,12 @@ bool Converter::ConvertRGBAToI420Video(std::string frames_dir,
return success;
}
-bool Converter::AddYUVToFile(uint8* y_plane, int y_plane_size,
- uint8* u_plane, int u_plane_size,
- uint8* v_plane, int v_plane_size,
+bool Converter::AddYUVToFile(uint8_t* y_plane,
+ int y_plane_size,
+ uint8_t* u_plane,
+ int u_plane_size,
+ uint8_t* v_plane,
+ int v_plane_size,
FILE* output_file) {
bool success = AddYUVPlaneToFile(y_plane, y_plane_size, output_file) &&
AddYUVPlaneToFile(u_plane, u_plane_size, output_file) &&
@@ -116,7 +119,8 @@ bool Converter::AddYUVToFile(uint8* y_plane, int y_plane_size,
return success;
}
-bool Converter::AddYUVPlaneToFile(uint8* yuv_plane, int yuv_plane_size,
+bool Converter::AddYUVPlaneToFile(uint8_t* yuv_plane,
+ int yuv_plane_size,
FILE* file) {
size_t bytes_written = fwrite(yuv_plane, 1, yuv_plane_size, file);
« no previous file with comments | « webrtc/tools/converter/converter.h ('k') | webrtc/tools/frame_analyzer/video_quality_analysis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698