Chromium Code Reviews| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 const std::string& album() const; | 38 const std::string& album() const; |
| 39 const std::string& artist() const; | 39 const std::string& artist() const; |
| 40 const std::string& comment() const; | 40 const std::string& comment() const; |
| 41 const std::string& copyright() const; | 41 const std::string& copyright() const; |
| 42 const std::string& date() const; | 42 const std::string& date() const; |
| 43 int disc() const; | 43 int disc() const; |
| 44 const std::string& encoder() const; | 44 const std::string& encoder() const; |
| 45 const std::string& encoded_by() const; | 45 const std::string& encoded_by() const; |
| 46 const std::string& genre() const; | 46 const std::string& genre() const; |
| 47 const std::string& language() const; | 47 const std::string& language() const; |
| 48 int rotation() const; | |
|
Lei Zhang
2014/02/14 02:35:51
move this after track? rotation doesn't seem relat
tommycli
2014/02/14 17:06:48
Done. Moved to after 'height' to be consistent wit
| |
| 48 const std::string& title() const; | 49 const std::string& title() const; |
| 49 int track() const; | 50 int track() const; |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 void ExtractDictionary(AVDictionary* metadata); | 53 void ExtractDictionary(AVDictionary* metadata); |
| 53 | 54 |
| 54 bool extracted_; | 55 bool extracted_; |
| 55 | 56 |
| 56 int duration_; | 57 int duration_; |
| 57 int width_; | 58 int width_; |
| 58 int height_; | 59 int height_; |
| 59 | 60 |
| 60 std::string album_; | 61 std::string album_; |
| 61 std::string artist_; | 62 std::string artist_; |
| 62 std::string comment_; | 63 std::string comment_; |
| 63 std::string copyright_; | 64 std::string copyright_; |
| 64 std::string date_; | 65 std::string date_; |
| 65 int disc_; | 66 int disc_; |
| 66 std::string encoder_; | 67 std::string encoder_; |
| 67 std::string encoded_by_; | 68 std::string encoded_by_; |
| 68 std::string genre_; | 69 std::string genre_; |
| 69 std::string language_; | 70 std::string language_; |
| 71 int rotation_; | |
| 70 std::string title_; | 72 std::string title_; |
| 71 int track_; | 73 int track_; |
| 72 | 74 |
| 73 DISALLOW_COPY_AND_ASSIGN(AudioVideoMetadataExtractor); | 75 DISALLOW_COPY_AND_ASSIGN(AudioVideoMetadataExtractor); |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 } // namespace media | 78 } // namespace media |
| 77 | 79 |
| 78 #endif // MEDIA_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ | 80 #endif // MEDIA_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ |
| OLD | NEW |