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

Unified Diff: webrtc/api/video/video_frame_buffer.cc

Issue 2990463002: [EXPERIMENTAL] Generic stereo codec with index header sending merged frames
Patch Set: Created 3 years, 5 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.h ('k') | webrtc/api/video_codecs/video_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/video/video_frame_buffer.cc
diff --git a/webrtc/api/video/video_frame_buffer.cc b/webrtc/api/video/video_frame_buffer.cc
index d771e6ac42d7919b756a668ae0e84df14144d554..66f58e83beab3ab585a60c0e1f1a785cb37ab92b 100644
--- a/webrtc/api/video/video_frame_buffer.cc
+++ b/webrtc/api/video/video_frame_buffer.cc
@@ -49,6 +49,18 @@ int I420BufferInterface::ChromaHeight() const {
return (height() + 1) / 2;
}
+bool I420BufferInterface::HasAlpha() const {
+ return DataA() != nullptr && StrideA() != 0;
+}
+
+const uint8_t* I420BufferInterface::DataA() const {
+ return nullptr;
+}
+
+int I420BufferInterface::StrideA() const {
+ return 0;
+}
+
rtc::scoped_refptr<I420BufferInterface> I420BufferInterface::ToI420() {
return this;
}
« no previous file with comments | « webrtc/api/video/video_frame_buffer.h ('k') | webrtc/api/video_codecs/video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698