Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: media/formats/mp4/track_run_iterator.h

Issue 1319813002: Fix mp4 keyframe parsing, removing unused stss parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix sizeof nit Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/formats/mp4/mp4_stream_parser.cc ('k') | media/formats/mp4/track_run_iterator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « media/formats/mp4/mp4_stream_parser.cc ('k') | media/formats/mp4/track_run_iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698