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

Unified Diff: api/video/video_frame_buffer.cc

Issue 2951033003: [EXPERIMENTAL] Generic stereo codec with index header sending single frames
Patch Set: Rebase and add external codec support. Created 3 years, 3 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 | « api/video/video_frame_buffer.h ('k') | api/video_codecs/video_encoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: api/video/video_frame_buffer.cc
diff --git a/api/video/video_frame_buffer.cc b/api/video/video_frame_buffer.cc
index dd869f77475d0bd2a50f59302959a54e84012609..ddc558355d4b3e8f8c50ed7892b5ed9dd945d288 100644
--- a/api/video/video_frame_buffer.cc
+++ b/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 | « api/video/video_frame_buffer.h ('k') | api/video_codecs/video_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698