| 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 16 matching lines...) Expand all Loading... |
| 27 // be called once. | 27 // be called once. |
| 28 bool Extract(DataSource* source); | 28 bool Extract(DataSource* source); |
| 29 | 29 |
| 30 // Returns -1 if we cannot extract the duration. In seconds. | 30 // Returns -1 if we cannot extract the duration. In seconds. |
| 31 double duration() const; | 31 double duration() const; |
| 32 | 32 |
| 33 // Returns -1 for containers without video. | 33 // Returns -1 for containers without video. |
| 34 int width() const; | 34 int width() const; |
| 35 int height() const; | 35 int height() const; |
| 36 | 36 |
| 37 // Returns -1 if undefined. |
| 38 int rotation() const; |
| 39 |
| 37 // Returns -1 or an empty string if the value is undefined. | 40 // Returns -1 or an empty string if the value is undefined. |
| 38 const std::string& album() const; | 41 const std::string& album() const; |
| 39 const std::string& artist() const; | 42 const std::string& artist() const; |
| 40 const std::string& comment() const; | 43 const std::string& comment() const; |
| 41 const std::string& copyright() const; | 44 const std::string& copyright() const; |
| 42 const std::string& date() const; | 45 const std::string& date() const; |
| 43 int disc() const; | 46 int disc() const; |
| 44 const std::string& encoder() const; | 47 const std::string& encoder() const; |
| 45 const std::string& encoded_by() const; | 48 const std::string& encoded_by() const; |
| 46 const std::string& genre() const; | 49 const std::string& genre() const; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 60 std::string album_; | 63 std::string album_; |
| 61 std::string artist_; | 64 std::string artist_; |
| 62 std::string comment_; | 65 std::string comment_; |
| 63 std::string copyright_; | 66 std::string copyright_; |
| 64 std::string date_; | 67 std::string date_; |
| 65 int disc_; | 68 int disc_; |
| 66 std::string encoder_; | 69 std::string encoder_; |
| 67 std::string encoded_by_; | 70 std::string encoded_by_; |
| 68 std::string genre_; | 71 std::string genre_; |
| 69 std::string language_; | 72 std::string language_; |
| 73 int rotation_; |
| 70 std::string title_; | 74 std::string title_; |
| 71 int track_; | 75 int track_; |
| 72 | 76 |
| 73 DISALLOW_COPY_AND_ASSIGN(AudioVideoMetadataExtractor); | 77 DISALLOW_COPY_AND_ASSIGN(AudioVideoMetadataExtractor); |
| 74 }; | 78 }; |
| 75 | 79 |
| 76 } // namespace media | 80 } // namespace media |
| 77 | 81 |
| 78 #endif // MEDIA_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ | 82 #endif // MEDIA_BASE_AUDIO_VIDEO_METADATA_EXTRACTOR_H_ |
| OLD | NEW |