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 #include "media/filters/frame_processor.h" | 5 #include "media/filters/frame_processor.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <cstdlib> | 9 #include <cstdlib> |
10 | 10 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 const scoped_refptr<MediaLog>& media_log) | 165 const scoped_refptr<MediaLog>& media_log) |
166 : group_start_timestamp_(kNoTimestamp), | 166 : group_start_timestamp_(kNoTimestamp), |
167 update_duration_cb_(update_duration_cb), | 167 update_duration_cb_(update_duration_cb), |
168 media_log_(media_log) { | 168 media_log_(media_log) { |
169 DVLOG(2) << __func__ << "()"; | 169 DVLOG(2) << __func__ << "()"; |
170 DCHECK(!update_duration_cb.is_null()); | 170 DCHECK(!update_duration_cb.is_null()); |
171 } | 171 } |
172 | 172 |
173 FrameProcessor::~FrameProcessor() { | 173 FrameProcessor::~FrameProcessor() { |
174 DVLOG(2) << __func__ << "()"; | 174 DVLOG(2) << __func__ << "()"; |
175 STLDeleteValues(&track_buffers_); | 175 base::STLDeleteValues(&track_buffers_); |
176 } | 176 } |
177 | 177 |
178 void FrameProcessor::SetSequenceMode(bool sequence_mode) { | 178 void FrameProcessor::SetSequenceMode(bool sequence_mode) { |
179 DVLOG(2) << __func__ << "(" << sequence_mode << ")"; | 179 DVLOG(2) << __func__ << "(" << sequence_mode << ")"; |
180 // Per June 9, 2016 MSE spec editor's draft: | 180 // Per June 9, 2016 MSE spec editor's draft: |
181 // https://rawgit.com/w3c/media-source/d8f901f22/ | 181 // https://rawgit.com/w3c/media-source/d8f901f22/ |
182 // index.html#widl-SourceBuffer-mode | 182 // index.html#widl-SourceBuffer-mode |
183 // Step 7: If the new mode equals "sequence", then set the group start | 183 // Step 7: If the new mode equals "sequence", then set the group start |
184 // timestamp to the group end timestamp. | 184 // timestamp to the group end timestamp. |
185 if (sequence_mode) { | 185 if (sequence_mode) { |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 // Step 21 is currently handled differently. See MediaSourceState's | 759 // Step 21 is currently handled differently. See MediaSourceState's |
760 // |auto_update_timestamp_offset_|. | 760 // |auto_update_timestamp_offset_|. |
761 return true; | 761 return true; |
762 } | 762 } |
763 | 763 |
764 NOTREACHED(); | 764 NOTREACHED(); |
765 return false; | 765 return false; |
766 } | 766 } |
767 | 767 |
768 } // namespace media | 768 } // namespace media |
OLD | NEW |