| OLD | NEW |
| 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_TRACK_RUN_ITERATOR_H_ | 5 #ifndef MEDIA_MP4_TRACK_RUN_ITERATOR_H_ |
| 6 #define MEDIA_MP4_TRACK_RUN_ITERATOR_H_ | 6 #define MEDIA_MP4_TRACK_RUN_ITERATOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // cenc_size(). Returns true on success, false on error. | 54 // cenc_size(). Returns true on success, false on error. |
| 55 bool CacheAuxInfo(const uint8* buf, int size); | 55 bool CacheAuxInfo(const uint8* buf, int size); |
| 56 | 56 |
| 57 // Returns the maximum buffer location at which no data earlier in the stream | 57 // Returns the maximum buffer location at which no data earlier in the stream |
| 58 // will be required in order to read the current or any subsequent sample. You | 58 // will be required in order to read the current or any subsequent sample. You |
| 59 // may clear all data up to this offset before reading the current sample | 59 // may clear all data up to this offset before reading the current sample |
| 60 // safely. Result is in the same units as offset() (for Media Source this is | 60 // safely. Result is in the same units as offset() (for Media Source this is |
| 61 // in bytes past the the head of the MOOF box). | 61 // in bytes past the the head of the MOOF box). |
| 62 int64 GetMaxClearOffset(); | 62 int64 GetMaxClearOffset(); |
| 63 | 63 |
| 64 // Returns the minimum timestamp (or kInfiniteDuration if no runs present). | |
| 65 TimeDelta GetMinDecodeTimestamp(); | |
| 66 | |
| 67 // Property of the current run. Only valid if IsRunValid(). | 64 // Property of the current run. Only valid if IsRunValid(). |
| 68 uint32 track_id() const; | 65 uint32 track_id() const; |
| 69 int64 aux_info_offset() const; | 66 int64 aux_info_offset() const; |
| 70 int aux_info_size() const; | 67 int aux_info_size() const; |
| 71 bool is_encrypted() const; | 68 bool is_encrypted() const; |
| 72 bool is_audio() const; | 69 bool is_audio() const; |
| 73 // Only one is valid, based on the value of is_audio(). | 70 // Only one is valid, based on the value of is_audio(). |
| 74 const AudioSampleEntry& audio_description() const; | 71 const AudioSampleEntry& audio_description() const; |
| 75 const VideoSampleEntry& video_description() const; | 72 const VideoSampleEntry& video_description() const; |
| 76 | 73 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 102 int64 sample_dts_; | 99 int64 sample_dts_; |
| 103 int64 sample_offset_; | 100 int64 sample_offset_; |
| 104 | 101 |
| 105 DISALLOW_COPY_AND_ASSIGN(TrackRunIterator); | 102 DISALLOW_COPY_AND_ASSIGN(TrackRunIterator); |
| 106 }; | 103 }; |
| 107 | 104 |
| 108 } // namespace mp4 | 105 } // namespace mp4 |
| 109 } // namespace media | 106 } // namespace media |
| 110 | 107 |
| 111 #endif // MEDIA_MP4_TRACK_RUN_ITERATOR_H_ | 108 #endif // MEDIA_MP4_TRACK_RUN_ITERATOR_H_ |
| OLD | NEW |