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

Unified Diff: media/base/stream_parser_buffer.cc

Issue 15342004: Adding VP8 Alpha support in Media Source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 7 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 | « media/base/stream_parser_buffer.h ('k') | media/filters/pipeline_integration_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/stream_parser_buffer.cc
diff --git a/media/base/stream_parser_buffer.cc b/media/base/stream_parser_buffer.cc
index 547cf27748dd5698d3fb1f3c2184becec741eac4..f1dd6fd9dee65355c2d7d2e20f5d1abd0130bef4 100644
--- a/media/base/stream_parser_buffer.cc
+++ b/media/base/stream_parser_buffer.cc
@@ -10,13 +10,21 @@
namespace media {
scoped_refptr<StreamParserBuffer> StreamParserBuffer::CreateEOSBuffer() {
- return make_scoped_refptr(new StreamParserBuffer(NULL, 0, false));
+ return make_scoped_refptr(new StreamParserBuffer(NULL, 0, NULL, 0, false));
}
scoped_refptr<StreamParserBuffer> StreamParserBuffer::CopyFrom(
const uint8* data, int data_size, bool is_keyframe) {
return make_scoped_refptr(
- new StreamParserBuffer(data, data_size, is_keyframe));
+ new StreamParserBuffer(data, data_size, NULL, 0, is_keyframe));
+}
+
+scoped_refptr<StreamParserBuffer> StreamParserBuffer::CopyFrom(
+ const uint8* data, int data_size,
+ const uint8* side_data, int side_data_size, bool is_keyframe) {
+ return make_scoped_refptr(
+ new StreamParserBuffer(data, data_size, side_data, side_data_size,
+ is_keyframe));
}
base::TimeDelta StreamParserBuffer::GetDecodeTimestamp() const {
@@ -30,8 +38,9 @@ void StreamParserBuffer::SetDecodeTimestamp(const base::TimeDelta& timestamp) {
}
StreamParserBuffer::StreamParserBuffer(const uint8* data, int data_size,
- bool is_keyframe)
- : DecoderBuffer(data, data_size),
+ const uint8* side_data,
+ int side_data_size, bool is_keyframe)
+ : DecoderBuffer(data, data_size, side_data, side_data_size),
is_keyframe_(is_keyframe),
decode_timestamp_(kNoTimestamp()),
config_id_(kInvalidConfigId) {
« no previous file with comments | « media/base/stream_parser_buffer.h ('k') | media/filters/pipeline_integration_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698