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

Unified Diff: webrtc/common_video/video_frame_buffer.cc

Issue 2847383002: Add support for multiple pixel formats in VideoFrameBuffer (Closed)
Patch Set: Created 3 years, 8 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
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..4adce9f6799f2e2b0448214747a76025d9a60b66 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::PixelFormat NativeHandleBuffer::Format() const {
+ return PixelFormat::kNative;
+}
+
int NativeHandleBuffer::width() const {
return width_;
}
@@ -120,13 +124,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
« webrtc/api/video/video_frame_buffer.h ('K') | « 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