| 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 {
|
|
|