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

Side by Side Diff: media/mp4/mp4_stream_parser.h

Issue 10660005: Flush sample buffers when reading new segments in Media Source BMFF parser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: FlushSamples -> SendAndFlushSamples Created 8 years, 5 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
« no previous file with comments | « no previous file | media/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_MP4_MP4_STREAM_PARSER_H_ 5 #ifndef MEDIA_MP4_MP4_STREAM_PARSER_H_
6 #define MEDIA_MP4_MP4_STREAM_PARSER_H_ 6 #define MEDIA_MP4_MP4_STREAM_PARSER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 bool ParseMoof(mp4::BoxReader* reader); 46 bool ParseMoof(mp4::BoxReader* reader);
47 47
48 bool ReadMDATsUntil(const int64 tgt_tail); 48 bool ReadMDATsUntil(const int64 tgt_tail);
49 49
50 void ChangeState(State new_state); 50 void ChangeState(State new_state);
51 51
52 bool EmitConfigs(); 52 bool EmitConfigs();
53 bool EnqueueSample(BufferQueue* audio_buffers, 53 bool EnqueueSample(BufferQueue* audio_buffers,
54 BufferQueue* video_buffers, 54 BufferQueue* video_buffers,
55 bool* err); 55 bool* err);
56 bool SendAndFlushSamples(BufferQueue* audio_buffers,
57 BufferQueue* video_buffers);
56 58
57 State state_; 59 State state_;
58 InitCB init_cb_; 60 InitCB init_cb_;
59 NewConfigCB config_cb_; 61 NewConfigCB config_cb_;
60 NewBuffersCB audio_cb_; 62 NewBuffersCB audio_cb_;
61 NewBuffersCB video_cb_; 63 NewBuffersCB video_cb_;
62 NeedKeyCB need_key_cb_; 64 NeedKeyCB need_key_cb_;
63 NewMediaSegmentCB new_segment_cb_; 65 NewMediaSegmentCB new_segment_cb_;
64 66
65 OffsetByteQueue queue_; 67 OffsetByteQueue queue_;
(...skipping 22 matching lines...) Expand all
88 // every frame. 90 // every frame.
89 uint8 size_of_nalu_length_; 91 uint8 size_of_nalu_length_;
90 92
91 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser); 93 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser);
92 }; 94 };
93 95
94 } // namespace mp4 96 } // namespace mp4
95 } // namespace media 97 } // namespace media
96 98
97 #endif // MEDIA_MP4_MP4_STREAM_PARSER_H_ 99 #endif // MEDIA_MP4_MP4_STREAM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | media/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698