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

Side by Side Diff: media/base/stream_parser_buffer.cc

Issue 10269022: Add StreamParserBuffer to ChunkDemuxer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to CR Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/base/stream_parser_buffer.h"
6
7 namespace media {
8
9 StreamParserBuffer::StreamParserBuffer(const uint8* data, int data_size,
10 bool is_keyframe)
11 : DataBuffer(data, data_size),
12 is_keyframe_(is_keyframe) {
13 }
14
15 scoped_refptr<StreamParserBuffer> StreamParserBuffer::CreateEOSBuffer() {
16 return scoped_refptr<StreamParserBuffer>(
Ami GONE FROM CHROMIUM 2012/05/02 17:57:25 FWIW, return scoped_refptr<T>(new T(...)); is sho
vrk (LEFT CHROMIUM) 2012/05/02 19:55:18 Forgot about that function, thanks fischman! Chang
17 new StreamParserBuffer(NULL, 0, false));
18 }
19
20 scoped_refptr<StreamParserBuffer> StreamParserBuffer::CopyFrom(
21 const uint8* data, int data_size, bool is_keyframe) {
22 return scoped_refptr<StreamParserBuffer>(
23 new StreamParserBuffer(data, data_size, is_keyframe));
24 }
25
26 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698