| 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_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 "base/macros.h" |
| 10 #include "media/formats/mp4/box_definitions.h" | 11 #include "media/formats/mp4/box_definitions.h" |
| 11 | 12 |
| 12 namespace media { | 13 namespace media { |
| 13 namespace mp4 { | 14 namespace mp4 { |
| 14 | 15 |
| 15 // Sample To Group Box ('sbgp') can be used to find the group that a sample | 16 // Sample To Group Box ('sbgp') can be used to find the group that a sample |
| 16 // belongs to and the associated description of that sample group. It is | 17 // belongs to and the associated description of that sample group. It is |
| 17 // compactly coded though. This class implements the iterator to iterate | 18 // compactly coded though. This class implements the iterator to iterate |
| 18 // through the compressed table to get the associated sample group description | 19 // through the compressed table to get the associated sample group description |
| 19 // index. | 20 // index. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 const std::vector<SampleToGroupEntry>& sample_to_group_table_; | 41 const std::vector<SampleToGroupEntry>& sample_to_group_table_; |
| 41 std::vector<SampleToGroupEntry>::const_iterator iterator_; | 42 std::vector<SampleToGroupEntry>::const_iterator iterator_; |
| 42 | 43 |
| 43 DISALLOW_COPY_AND_ASSIGN(SampleToGroupIterator); | 44 DISALLOW_COPY_AND_ASSIGN(SampleToGroupIterator); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 } // namespace mp4 | 47 } // namespace mp4 |
| 47 } // namespace media | 48 } // namespace media |
| 48 | 49 |
| 49 #endif // MEDIA_FORMATS_MP4_SAMPLE_TO_GROUP_ITERATOR_H_ | 50 #endif // MEDIA_FORMATS_MP4_SAMPLE_TO_GROUP_ITERATOR_H_ |
| OLD | NEW |