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_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ | 5 #ifndef MEDIA_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ |
6 #define MEDIA_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ | 6 #define MEDIA_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "media/base/media_export.h" | 13 #include "media/base/media_export.h" |
14 | 14 |
15 struct AVDictionary; | 15 struct AVDictionary; |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 | 18 |
19 class DataSource; | 19 class DataSource; |
20 | 20 |
21 // This class extracts a string dictionary of metadata tags for audio and video | 21 // This class extracts a string dictionary of metadata tags for audio and video |
22 // files. It also provides the format name. | 22 // files. It also provides the format name. |
23 class MEDIA_EXPORT AudioVideoMetadataExtractor { | 23 class MEDIA_EXPORT AudioVideoMetadataExtractor { |
24 public: | 24 public: |
25 typedef std::map<std::string, std::string> TagDictionary; | 25 typedef std::map<std::string, std::string> TagDictionary; |
26 | 26 |
27 struct StreamInfo { | 27 struct StreamInfo { |
28 StreamInfo(); | 28 StreamInfo(); |
| 29 StreamInfo(const StreamInfo& other); |
29 ~StreamInfo(); | 30 ~StreamInfo(); |
30 std::string type; | 31 std::string type; |
31 TagDictionary tags; | 32 TagDictionary tags; |
32 }; | 33 }; |
33 | 34 |
34 typedef std::vector<StreamInfo> StreamInfoVector; | 35 typedef std::vector<StreamInfo> StreamInfoVector; |
35 | 36 |
36 AudioVideoMetadataExtractor(); | 37 AudioVideoMetadataExtractor(); |
37 ~AudioVideoMetadataExtractor(); | 38 ~AudioVideoMetadataExtractor(); |
38 | 39 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 StreamInfoVector stream_infos_; | 98 StreamInfoVector stream_infos_; |
98 | 99 |
99 std::vector<std::string> attached_images_bytes_; | 100 std::vector<std::string> attached_images_bytes_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(AudioVideoMetadataExtractor); | 102 DISALLOW_COPY_AND_ASSIGN(AudioVideoMetadataExtractor); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace media | 105 } // namespace media |
105 | 106 |
106 #endif // MEDIA_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ | 107 #endif // MEDIA_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ |
OLD | NEW |