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

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: . 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
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..da0183b64ef93d27eb562c5bcf21cfe866e678be
--- /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 StreamParserBuffer* CreateEOSBuffer();
acolwell GONE FROM CHROMIUM 2012/05/01 22:08:50 nit: Any reason we can't return a scoped_refptr<St
vrk (LEFT CHROMIUM) 2012/05/02 17:24:51 Done.
+ static scoped_refptr<StreamParserBuffer> CopyFrom(
+ const uint8* data, int size, bool is_keyframe);
+ bool IsKeyframe() const { return is_keyframe_; }
+
+ private:
+ StreamParserBuffer(int buffer_size, bool is_keyframe);
+ bool is_keyframe_;
+ DISALLOW_COPY_AND_ASSIGN(StreamParserBuffer);
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_STREAM_PARSER_BUFFER_H_

Powered by Google App Engine
This is Rietveld 408576698