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

Unified Diff: webrtc/common_video/include/frame_callback.h

Issue 2668763004: Added VP8 simulcast tests. Fixed analyzer to correctly infer timestamps. (Closed)
Patch Set: reapplyting patch to clean branch Created 3 years, 11 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 | « no previous file | webrtc/video/full_stack_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/include/frame_callback.h
diff --git a/webrtc/common_video/include/frame_callback.h b/webrtc/common_video/include/frame_callback.h
index 81737c6b962e4dca60e56796a62d2f6955e519d2..0fa4458f5c467a14b226f964b692a428e13a8333 100644
--- a/webrtc/common_video/include/frame_callback.h
+++ b/webrtc/common_video/include/frame_callback.h
@@ -22,13 +22,32 @@ class VideoFrame;
struct EncodedFrame {
public:
- EncodedFrame() : data_(NULL), length_(0), frame_type_(kEmptyFrame) {}
- EncodedFrame(const uint8_t* data, size_t length, FrameType frame_type)
- : data_(data), length_(length), frame_type_(frame_type) {}
+ EncodedFrame()
+ : data_(nullptr),
+ length_(0),
+ frame_type_(kEmptyFrame),
+ encoded_width_(0),
+ encoded_height_(0),
+ timestamp_(0) {}
+ EncodedFrame(const uint8_t* data,
+ size_t length,
+ FrameType frame_type,
+ uint32_t encoded_width,
+ uint32_t encoded_height,
+ uint32_t timestamp)
+ : data_(data),
+ length_(length),
+ frame_type_(frame_type),
+ encoded_width_(encoded_width),
+ encoded_height_(encoded_height),
+ timestamp_(timestamp) {}
const uint8_t* data_;
const size_t length_;
const FrameType frame_type_;
+ const uint32_t encoded_width_;
+ const uint32_t encoded_height_;
+ const uint32_t timestamp_;
};
class I420FrameCallback {
« no previous file with comments | « no previous file | webrtc/video/full_stack_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698