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

Unified Diff: talk/media/base/yuvframegenerator.h

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/base/videoframe_unittest.h ('k') | talk/media/base/yuvframegenerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/base/yuvframegenerator.h
diff --git a/talk/media/base/yuvframegenerator.h b/talk/media/base/yuvframegenerator.h
index 8ae5b5d0a219881e4cc97b26b70d73f7bbcf629c..9091362f23c5dbc7d219ebdc1e1961ae5e554c85 100644
--- a/talk/media/base/yuvframegenerator.h
+++ b/talk/media/base/yuvframegenerator.h
@@ -48,8 +48,8 @@ class YuvFrameGenerator {
public:
// Constructs a frame-generator that produces frames of size |width|x|height|.
// If |enable_barcode| is specified, barcodes can be included in the frames
- // when calling |GenerateNextFrame(uint8*, uint32)|. If |enable_barcode| is
- // |true| then |width|x|height| should be at least 160x100; otherwise this
+ // when calling |GenerateNextFrame(uint8_t*, uint32_t)|. If |enable_barcode|
+ // is |true| then |width|x|height| should be at least 160x100; otherwise this
// constructor will abort.
YuvFrameGenerator(int width, int height, bool enable_barcode);
~YuvFrameGenerator();
@@ -61,7 +61,7 @@ class YuvFrameGenerator {
// into a barcode in the frame. The value should in the range:
// [0..9,999,999]. If the value exceeds this range or barcodes were not
// requested in the constructor, this function will abort.
- void GenerateNextFrame(uint8* frame_buffer, int32 barcode_value);
+ void GenerateNextFrame(uint8_t* frame_buffer, int32_t barcode_value);
int GetHeight() { return height_; }
int GetWidth() { return width_; }
@@ -72,28 +72,33 @@ class YuvFrameGenerator {
void GetBarcodeBounds(int* top, int* left, int* width, int* height);
private:
- void DrawLandscape(uint8 *p, int w, int h);
- void DrawGradientX(uint8 *p, int w, int h);
- void DrawGradientY(uint8 *p, int w, int h);
- void DrawMovingLineX(uint8 *p, int w, int h, int n);
- void DrawMovingLineY(uint8 *p, int w, int h, int n);
- void DrawBouncingCube(uint8 *p, int w, int h, int n);
-
- void DrawBarcode(uint32 value);
+ void DrawLandscape(uint8_t* p, int w, int h);
+ void DrawGradientX(uint8_t* p, int w, int h);
+ void DrawGradientY(uint8_t* p, int w, int h);
+ void DrawMovingLineX(uint8_t* p, int w, int h, int n);
+ void DrawMovingLineY(uint8_t* p, int w, int h, int n);
+ void DrawBouncingCube(uint8_t* p, int w, int h, int n);
+
+ void DrawBarcode(uint32_t value);
int DrawSideGuardBars(int x, int y, int height);
int DrawMiddleGuardBars(int x, int y, int height);
int DrawEanEncodedDigit(int digit, int x, int y, int height, bool r_code);
- void DrawBlockRectangle(uint8* p, int x_start, int y_start,
- int width, int height, int pitch, uint8 value);
+ void DrawBlockRectangle(uint8_t* p,
+ int x_start,
+ int y_start,
+ int width,
+ int height,
+ int pitch,
+ uint8_t value);
private:
int width_;
int height_;
int frame_index_;
int frame_data_size_;
- uint8* y_data_;
- uint8* u_data_;
- uint8* v_data_;
+ uint8_t* y_data_;
+ uint8_t* u_data_;
+ uint8_t* v_data_;
int barcode_start_x_;
int barcode_start_y_;
« no previous file with comments | « talk/media/base/videoframe_unittest.h ('k') | talk/media/base/yuvframegenerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698