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

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

Issue 2924263002: Revert of Add support for multiple pixel formats in VideoFrameBuffer (Closed)
Patch Set: Created 3 years, 6 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/api/video/video_frame_buffer.cc ('k') | webrtc/common_video/video_frame_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/include/video_frame_buffer.h
diff --git a/webrtc/common_video/include/video_frame_buffer.h b/webrtc/common_video/include/video_frame_buffer.h
index 7e2fcf99e1f8ddbee9bd5a0e757816719311f05d..e6c1f147a262e4570dd808f54b1eafb2d9a8e279 100644
--- a/webrtc/common_video/include/video_frame_buffer.h
+++ b/webrtc/common_video/include/video_frame_buffer.h
@@ -27,7 +27,6 @@
public:
NativeHandleBuffer(void* native_handle, int width, int height);
- Type type() const override;
int width() const override;
int height() const override;
const uint8_t* DataY() const override;
@@ -45,7 +44,7 @@
const int height_;
};
-class WrappedI420Buffer : public PlanarYuvBuffer {
+class WrappedI420Buffer : public webrtc::VideoFrameBuffer {
public:
WrappedI420Buffer(int width,
int height,
@@ -56,8 +55,6 @@
const uint8_t* v_plane,
int v_stride,
const rtc::Callback0<void>& no_longer_used);
- Type type() const override;
-
int width() const override;
int height() const override;
@@ -67,6 +64,10 @@
int StrideY() const override;
int StrideU() const override;
int StrideV() const override;
+
+ void* native_handle() const override;
+
+ rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() override;
private:
friend class rtc::RefCountedObject<WrappedI420Buffer>;
« no previous file with comments | « webrtc/api/video/video_frame_buffer.cc ('k') | webrtc/common_video/video_frame_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698