OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIDEO_DECODER_CONFIG_H_ | 5 #ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Returns true if all fields in |config| match this config. | 60 // Returns true if all fields in |config| match this config. |
61 // Note: The contents of |extra_data_| are compared not the raw pointers. | 61 // Note: The contents of |extra_data_| are compared not the raw pointers. |
62 bool Matches(const VideoDecoderConfig& config) const; | 62 bool Matches(const VideoDecoderConfig& config) const; |
63 | 63 |
64 // Returns a human-readable string describing |*this|. For debugging & test | 64 // Returns a human-readable string describing |*this|. For debugging & test |
65 // output only. | 65 // output only. |
66 std::string AsHumanReadableString() const; | 66 std::string AsHumanReadableString() const; |
67 | 67 |
68 std::string GetHumanReadableCodecName() const; | 68 std::string GetHumanReadableCodecName() const; |
69 | 69 |
| 70 static std::string GetHumanReadableProfile(VideoCodecProfile profile); |
| 71 |
70 VideoCodec codec() const { return codec_; } | 72 VideoCodec codec() const { return codec_; } |
71 VideoCodecProfile profile() const { return profile_; } | 73 VideoCodecProfile profile() const { return profile_; } |
72 | 74 |
73 // Video format used to determine YUV buffer sizes. | 75 // Video format used to determine YUV buffer sizes. |
74 VideoPixelFormat format() const { return format_; } | 76 VideoPixelFormat format() const { return format_; } |
75 | 77 |
76 // The default color space of the decoded frames. Decoders should output | 78 // The default color space of the decoded frames. Decoders should output |
77 // frames tagged with this color space unless they find a different value in | 79 // frames tagged with this color space unless they find a different value in |
78 // the bitstream. | 80 // the bitstream. |
79 ColorSpace color_space() const { return color_space_; } | 81 ColorSpace color_space() const { return color_space_; } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 bool is_encrypted_; | 116 bool is_encrypted_; |
115 | 117 |
116 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler | 118 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler |
117 // generated copy constructor and assignment operator. Since the extra data is | 119 // generated copy constructor and assignment operator. Since the extra data is |
118 // typically small, the performance impact is minimal. | 120 // typically small, the performance impact is minimal. |
119 }; | 121 }; |
120 | 122 |
121 } // namespace media | 123 } // namespace media |
122 | 124 |
123 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 125 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
OLD | NEW |