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

Unified Diff: media/base/stream_parser_buffer.h

Issue 10269022: Add StreamParserBuffer to ChunkDemuxer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase ToT Created 8 years, 8 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.h ('k') | media/base/stream_parser_buffer.cc » ('j') | no next file with comments »
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
new file mode 100644
index 0000000000000000000000000000000000000000..a952a8363e855f06d0d3917c8db6d5193464a9cf
--- /dev/null
+++ b/media/base/stream_parser_buffer.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_STREAM_PARSER_BUFFER_H_
+#define MEDIA_BASE_STREAM_PARSER_BUFFER_H_
+
+#include "media/base/data_buffer.h"
+#include "media/base/media_export.h"
+
+namespace media {
+
+class MEDIA_EXPORT StreamParserBuffer : public DataBuffer {
+ public:
+ static scoped_refptr<StreamParserBuffer> CreateEOSBuffer();
+ static scoped_refptr<StreamParserBuffer> CopyFrom(
+ const uint8* data, int data_size, bool is_keyframe);
+ bool IsKeyframe() const { return is_keyframe_; }
+
+ private:
+ StreamParserBuffer(const uint8* data, int data_size, bool is_keyframe);
+ bool is_keyframe_;
+ DISALLOW_COPY_AND_ASSIGN(StreamParserBuffer);
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_STREAM_PARSER_BUFFER_H_
« no previous file with comments | « media/base/stream_parser.h ('k') | media/base/stream_parser_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698