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

Unified Diff: webrtc/common_video/video_frame_buffer.cc

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/common_video/include/video_frame_buffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/video_frame_buffer.cc
diff --git a/webrtc/common_video/video_frame_buffer.cc b/webrtc/common_video/video_frame_buffer.cc
index 4646bf491f9b745298c9fef6b29d9575b1f15f56..0322dd1fd506027d4529464871ffbc0dca3393d1 100644
--- a/webrtc/common_video/video_frame_buffer.cc
+++ b/webrtc/common_video/video_frame_buffer.cc
@@ -30,6 +30,10 @@ NativeHandleBuffer::NativeHandleBuffer(void* native_handle,
RTC_DCHECK_GT(height, 0);
}
+VideoFrameBuffer::Type NativeHandleBuffer::type() const {
+ return Type::kNative;
+}
+
int NativeHandleBuffer::width() const {
return width_;
}
@@ -92,6 +96,10 @@ WrappedI420Buffer::~WrappedI420Buffer() {
no_longer_used_cb_();
}
+VideoFrameBuffer::Type WrappedI420Buffer::type() const {
+ return Type::kI420;
+}
+
int WrappedI420Buffer::width() const {
return width_;
}
@@ -120,13 +128,4 @@ int WrappedI420Buffer::StrideV() const {
return v_stride_;
}
-void* WrappedI420Buffer::native_handle() const {
- return nullptr;
-}
-
-rtc::scoped_refptr<VideoFrameBuffer> WrappedI420Buffer::NativeToI420Buffer() {
- RTC_NOTREACHED();
- return nullptr;
-}
-
} // namespace webrtc
« no previous file with comments | « webrtc/common_video/include/video_frame_buffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698