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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
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_SAMPLE_TO_GROUP_ITERATOR_H_ 5 #ifndef MEDIA_FORMATS_MP4_SAMPLE_TO_GROUP_ITERATOR_H_
6 #define MEDIA_FORMATS_MP4_SAMPLE_TO_GROUP_ITERATOR_H_ 6 #define MEDIA_FORMATS_MP4_SAMPLE_TO_GROUP_ITERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "media/formats/mp4/box_definitions.h" 10 #include "media/formats/mp4/box_definitions.h"
(...skipping 12 matching lines...) Expand all
23 ~SampleToGroupIterator(); 23 ~SampleToGroupIterator();
24 24
25 // Advances the iterator to refer to the next sample. Return status 25 // Advances the iterator to refer to the next sample. Return status
26 // indicating whether the sample is still valid. 26 // indicating whether the sample is still valid.
27 bool Advance(); 27 bool Advance();
28 28
29 // Returns whether the current sample is valid. 29 // Returns whether the current sample is valid.
30 bool IsValid() const; 30 bool IsValid() const;
31 31
32 // Returns group description index for current sample. 32 // Returns group description index for current sample.
33 uint32 group_description_index() const { 33 uint32_t group_description_index() const {
34 return iterator_->group_description_index; 34 return iterator_->group_description_index;
35 } 35 }
36 36
37 private: 37 private:
38 // Track how many samples remaining for current table entry. 38 // Track how many samples remaining for current table entry.
39 uint32 remaining_samples_; 39 uint32_t remaining_samples_;
40 const std::vector<SampleToGroupEntry>& sample_to_group_table_; 40 const std::vector<SampleToGroupEntry>& sample_to_group_table_;
41 std::vector<SampleToGroupEntry>::const_iterator iterator_; 41 std::vector<SampleToGroupEntry>::const_iterator iterator_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(SampleToGroupIterator); 43 DISALLOW_COPY_AND_ASSIGN(SampleToGroupIterator);
44 }; 44 };
45 45
46 } // namespace mp4 46 } // namespace mp4
47 } // namespace media 47 } // namespace media
48 48
49 #endif // MEDIA_FORMATS_MP4_SAMPLE_TO_GROUP_ITERATOR_H_ 49 #endif // MEDIA_FORMATS_MP4_SAMPLE_TO_GROUP_ITERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698