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

Unified Diff: media/base/stream_parser_buffer.h

Issue 125543002: Add plumbing and support for crossfading StreamParserBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests! Created 6 years, 11 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 | « no previous file | media/base/stream_parser_buffer.cc » ('j') | media/filters/source_buffer_stream.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/stream_parser_buffer.h
diff --git a/media/base/stream_parser_buffer.h b/media/base/stream_parser_buffer.h
index 8899f11216d7d273cef2646de1727fcba9c02b21..44ca1abed2c58577c1f52049cd94ab6b3cdfe1b5 100644
--- a/media/base/stream_parser_buffer.h
+++ b/media/base/stream_parser_buffer.h
@@ -33,6 +33,13 @@ class MEDIA_EXPORT StreamParserBuffer : public DecoderBuffer {
int GetConfigId() const;
void SetConfigId(int config_id);
+ // Buffers to be exhausted before using the data in this DecoderBuffer. Used
+ // to implement the Audio Splice Frame Algorithm per the MSE specification.
+ const std::vector<scoped_refptr<StreamParserBuffer> >& GetFadeOutPreroll()
+ const;
+ void SetFadeOutPreroll(
+ const std::vector<scoped_refptr<StreamParserBuffer> >& fade_out_preroll);
+
private:
StreamParserBuffer(const uint8* data, int data_size,
const uint8* side_data, int side_data_size,
@@ -42,6 +49,8 @@ class MEDIA_EXPORT StreamParserBuffer : public DecoderBuffer {
bool is_keyframe_;
base::TimeDelta decode_timestamp_;
int config_id_;
+ std::vector<scoped_refptr<StreamParserBuffer> > fade_out_preroll_;
+
DISALLOW_COPY_AND_ASSIGN(StreamParserBuffer);
};
« no previous file with comments | « no previous file | media/base/stream_parser_buffer.cc » ('j') | media/filters/source_buffer_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698