OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FILTERS_FRAME_PROCESSOR_H_ | 5 #ifndef MEDIA_FILTERS_FRAME_PROCESSOR_H_ |
6 #define MEDIA_FILTERS_FRAME_PROCESSOR_H_ | 6 #define MEDIA_FILTERS_FRAME_PROCESSOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // The AudioDecoderConfig associated with buffers handed to ProcessFrames(). | 147 // The AudioDecoderConfig associated with buffers handed to ProcessFrames(). |
148 AudioDecoderConfig current_audio_config_; | 148 AudioDecoderConfig current_audio_config_; |
149 base::TimeDelta sample_duration_; | 149 base::TimeDelta sample_duration_; |
150 | 150 |
151 // The AppendMode of the associated SourceBuffer. | 151 // The AppendMode of the associated SourceBuffer. |
152 // See SetSequenceMode() for interpretation of |sequence_mode_|. | 152 // See SetSequenceMode() for interpretation of |sequence_mode_|. |
153 // Per http://www.w3.org/TR/media-source/#widl-SourceBuffer-mode: | 153 // Per http://www.w3.org/TR/media-source/#widl-SourceBuffer-mode: |
154 // Controls how a sequence of media segments are handled. This is initially | 154 // Controls how a sequence of media segments are handled. This is initially |
155 // set to false ("segments"). | 155 // set to false ("segments"). |
156 bool sequence_mode_; | 156 bool sequence_mode_ = false; |
157 | 157 |
158 // Tracks the MSE coded frame processing variable of same name. | 158 // Tracks the MSE coded frame processing variable of same name. |
159 // Initially kNoTimestamp(), meaning "unset". | 159 // Initially kNoTimestamp(), meaning "unset". |
160 base::TimeDelta group_start_timestamp_; | 160 base::TimeDelta group_start_timestamp_; |
161 | 161 |
162 // Tracks the MSE coded frame processing variable of same name. It stores the | 162 // Tracks the MSE coded frame processing variable of same name. It stores the |
163 // highest coded frame end timestamp across all coded frames in the current | 163 // highest coded frame end timestamp across all coded frames in the current |
164 // coded frame group. It is set to 0 when the SourceBuffer object is created | 164 // coded frame group. It is set to 0 when the SourceBuffer object is created |
165 // and gets updated by ProcessFrames(). | 165 // and gets updated by ProcessFrames(). |
166 base::TimeDelta group_end_timestamp_; | 166 base::TimeDelta group_end_timestamp_; |
167 | 167 |
168 UpdateDurationCB update_duration_cb_; | 168 UpdateDurationCB update_duration_cb_; |
169 | 169 |
170 // MediaLog for reporting messages and properties to debug content and engine. | 170 // MediaLog for reporting messages and properties to debug content and engine. |
171 scoped_refptr<MediaLog> media_log_; | 171 scoped_refptr<MediaLog> media_log_; |
172 | 172 |
173 // Counters that limit spam to |media_log_| for frame processor warnings. | 173 // Counters that limit spam to |media_log_| for frame processor warnings. |
174 int num_dropped_preroll_warnings_; | 174 int num_dropped_preroll_warnings_ = 0; |
175 int num_dts_beyond_pts_warnings_; | 175 int num_dts_beyond_pts_warnings_ = 0; |
176 | 176 |
177 DISALLOW_COPY_AND_ASSIGN(FrameProcessor); | 177 DISALLOW_COPY_AND_ASSIGN(FrameProcessor); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace media | 180 } // namespace media |
181 | 181 |
182 #endif // MEDIA_FILTERS_FRAME_PROCESSOR_H_ | 182 #endif // MEDIA_FILTERS_FRAME_PROCESSOR_H_ |
OLD | NEW |