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

Side by Side Diff: media/webm/webm_cluster_parser.h

Issue 8775035: Add support for incremental cluster parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace old list parsing with WebMListParser & implement incremental cluster parsing with that. Created 9 years 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WEBM_WEBM_CLUSTER_PARSER_H_ 5 #ifndef MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
6 #define MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_ 6 #define MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual bool OnSimpleBlock(int track_num, int timecode, int flags, 46 virtual bool OnSimpleBlock(int track_num, int timecode, int flags,
47 const uint8* data, int size) OVERRIDE; 47 const uint8* data, int size) OVERRIDE;
48 48
49 double timecode_multiplier_; // Multiplier used to convert timecodes into 49 double timecode_multiplier_; // Multiplier used to convert timecodes into
50 // microseconds. 50 // microseconds.
51 int audio_track_num_; 51 int audio_track_num_;
52 base::TimeDelta audio_default_duration_; 52 base::TimeDelta audio_default_duration_;
53 int video_track_num_; 53 int video_track_num_;
54 base::TimeDelta video_default_duration_; 54 base::TimeDelta video_default_duration_;
55 55
56 WebMListParser parser_;
57
56 int64 last_block_timecode_; 58 int64 last_block_timecode_;
57 59
58 int64 cluster_timecode_; 60 int64 cluster_timecode_;
59 BufferQueue audio_buffers_; 61 BufferQueue audio_buffers_;
60 BufferQueue video_buffers_; 62 BufferQueue video_buffers_;
61 63
62 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMClusterParser); 64 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMClusterParser);
63 }; 65 };
64 66
65 } // namespace media 67 } // namespace media
66 68
67 #endif // MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_ 69 #endif // MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698