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

Unified Diff: webrtc/api/video/i420_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/api/video/i420_buffer.h ('k') | webrtc/api/video/video_frame_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/video/i420_buffer.cc
diff --git a/webrtc/api/video/i420_buffer.cc b/webrtc/api/video/i420_buffer.cc
index 32c73eac67de98c822bcb818642e1d7d5fa9799b..51d83c9df58ba90508bb263434ebfca3c78d8e4e 100644
--- a/webrtc/api/video/i420_buffer.cc
+++ b/webrtc/api/video/i420_buffer.cc
@@ -136,6 +136,10 @@ void I420Buffer::InitializeData() {
I420DataSize(height_, stride_y_, stride_u_, stride_v_));
}
+VideoFrameBuffer::Type I420Buffer::type() const {
+ return Type::kI420;
+}
+
int I420Buffer::width() const {
return width_;
}
@@ -164,14 +168,6 @@ int I420Buffer::StrideV() const {
return stride_v_;
}
-void* I420Buffer::native_handle() const {
- return nullptr;
-}
-
-rtc::scoped_refptr<VideoFrameBuffer> I420Buffer::NativeToI420Buffer() {
- return this;
-}
-
uint8_t* I420Buffer::MutableDataY() {
return const_cast<uint8_t*>(DataY());
}
« no previous file with comments | « webrtc/api/video/i420_buffer.h ('k') | webrtc/api/video/video_frame_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698