| 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_FORMATS_MP4_TRACK_RUN_ITERATOR_H_ | 5 #ifndef MEDIA_FORMATS_MP4_TRACK_RUN_ITERATOR_H_ |
| 6 #define MEDIA_FORMATS_MP4_TRACK_RUN_ITERATOR_H_ | 6 #define MEDIA_FORMATS_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const AudioSampleEntry& audio_description() const; | 73 const AudioSampleEntry& audio_description() const; |
| 74 const VideoSampleEntry& video_description() const; | 74 const VideoSampleEntry& video_description() const; |
| 75 | 75 |
| 76 // Properties of the current sample. Only valid if IsSampleValid(). | 76 // Properties of the current sample. Only valid if IsSampleValid(). |
| 77 int64 sample_offset() const; | 77 int64 sample_offset() const; |
| 78 int sample_size() const; | 78 int sample_size() const; |
| 79 DecodeTimestamp dts() const; | 79 DecodeTimestamp dts() const; |
| 80 base::TimeDelta cts() const; | 80 base::TimeDelta cts() const; |
| 81 base::TimeDelta duration() const; | 81 base::TimeDelta duration() const; |
| 82 bool is_keyframe() const; | 82 bool is_keyframe() const; |
| 83 bool is_random_access_point() const; | |
| 84 | 83 |
| 85 // Only call when is_encrypted() is true and AuxInfoNeedsToBeCached() is | 84 // Only call when is_encrypted() is true and AuxInfoNeedsToBeCached() is |
| 86 // false. Result is owned by caller. | 85 // false. Result is owned by caller. |
| 87 scoped_ptr<DecryptConfig> GetDecryptConfig(); | 86 scoped_ptr<DecryptConfig> GetDecryptConfig(); |
| 88 | 87 |
| 89 private: | 88 private: |
| 90 void ResetRun(); | 89 void ResetRun(); |
| 91 const TrackEncryption& track_encryption() const; | 90 const TrackEncryption& track_encryption() const; |
| 92 | 91 |
| 93 uint32 GetGroupDescriptionIndex(uint32 sample_index) const; | 92 uint32 GetGroupDescriptionIndex(uint32 sample_index) const; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 109 int64 sample_dts_; | 108 int64 sample_dts_; |
| 110 int64 sample_offset_; | 109 int64 sample_offset_; |
| 111 | 110 |
| 112 DISALLOW_COPY_AND_ASSIGN(TrackRunIterator); | 111 DISALLOW_COPY_AND_ASSIGN(TrackRunIterator); |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 } // namespace mp4 | 114 } // namespace mp4 |
| 116 } // namespace media | 115 } // namespace media |
| 117 | 116 |
| 118 #endif // MEDIA_FORMATS_MP4_TRACK_RUN_ITERATOR_H_ | 117 #endif // MEDIA_FORMATS_MP4_TRACK_RUN_ITERATOR_H_ |
| OLD | NEW |