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

Unified Diff: talk/media/webrtc/webrtcvideoframe.h

Issue 1583223002: Revert of Delete remnants of non-square pixel support from cricket::VideoFrame. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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 | « talk/media/base/videoframe_unittest.h ('k') | talk/media/webrtc/webrtcvideoframe.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/webrtc/webrtcvideoframe.h
diff --git a/talk/media/webrtc/webrtcvideoframe.h b/talk/media/webrtc/webrtcvideoframe.h
index 33d28738749b16c1bf92c802ad08c6c3ac5e3015..827cf28821cb3483f06b5611cb1a090b7829ee17 100644
--- a/talk/media/webrtc/webrtcvideoframe.h
+++ b/talk/media/webrtc/webrtcvideoframe.h
@@ -59,14 +59,18 @@
int dh,
uint8_t* sample,
size_t sample_size,
+ size_t pixel_width,
+ size_t pixel_height,
int64_t time_stamp_ns,
webrtc::VideoRotation rotation);
bool Init(const CapturedFrame* frame, int dw, int dh, bool apply_rotation);
- void InitToEmptyBuffer(int w, int h, int64_t time_stamp_ns);
+ void InitToEmptyBuffer(int w, int h, size_t pixel_width, size_t pixel_height,
+ int64_t time_stamp_ns);
- bool InitToBlack(int w, int h, int64_t time_stamp_ns) override;
+ bool InitToBlack(int w, int h, size_t pixel_width, size_t pixel_height,
+ int64_t time_stamp_ns) override;
// From base class VideoFrame.
bool Reset(uint32_t format,
@@ -76,6 +80,8 @@
int dh,
uint8_t* sample,
size_t sample_size,
+ size_t pixel_width,
+ size_t pixel_height,
int64_t time_stamp_ns,
webrtc::VideoRotation rotation,
bool apply_rotation) override;
@@ -95,6 +101,8 @@
rtc::scoped_refptr<webrtc::VideoFrameBuffer> GetVideoFrameBuffer()
const override;
+ size_t GetPixelWidth() const override { return pixel_width_; }
+ size_t GetPixelHeight() const override { return pixel_height_; }
int64_t GetTimeStamp() const override { return time_stamp_ns_; }
void SetTimeStamp(int64_t time_stamp_ns) override {
time_stamp_ns_ = time_stamp_ns;
@@ -120,11 +128,14 @@
}
private:
- VideoFrame* CreateEmptyFrame(int w, int h,
+ VideoFrame* CreateEmptyFrame(int w, int h, size_t pixel_width,
+ size_t pixel_height,
int64_t time_stamp_ns) const override;
// An opaque reference counted handle that stores the pixel data.
rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer_;
+ size_t pixel_width_;
+ size_t pixel_height_;
int64_t time_stamp_ns_;
webrtc::VideoRotation rotation_;
« no previous file with comments | « talk/media/base/videoframe_unittest.h ('k') | talk/media/webrtc/webrtcvideoframe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698