OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |