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

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

Issue 2847383002: Add support for multiple pixel formats in VideoFrameBuffer (Closed)
Patch Set: Rebase Created 3 years, 7 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 e6c1f147a262e4570dd808f54b1eafb2d9a8e279..7e2fcf99e1f8ddbee9bd5a0e757816719311f05d 100644
--- a/webrtc/common_video/include/video_frame_buffer.h
+++ b/webrtc/common_video/include/video_frame_buffer.h
@@ -27,6 +27,7 @@ class NativeHandleBuffer : public VideoFrameBuffer {
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;
@@ -44,7 +45,7 @@ class NativeHandleBuffer : public VideoFrameBuffer {
const int height_;
};
-class WrappedI420Buffer : public webrtc::VideoFrameBuffer {
+class WrappedI420Buffer : public PlanarYuvBuffer {
public:
WrappedI420Buffer(int width,
int height,
@@ -55,6 +56,8 @@ class WrappedI420Buffer : public webrtc::VideoFrameBuffer {
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;
@@ -65,10 +68,6 @@ class WrappedI420Buffer : public webrtc::VideoFrameBuffer {
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>;
~WrappedI420Buffer() override;
« 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