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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 // Returns true if all fields in |config| match this config. | 58 // Returns true if all fields in |config| match this config. |
59 // Note: The contents of |extra_data_| are compared not the raw pointers. | 59 // Note: The contents of |extra_data_| are compared not the raw pointers. |
60 bool Matches(const VideoDecoderConfig& config) const; | 60 bool Matches(const VideoDecoderConfig& config) const; |
61 | 61 |
62 // Returns a human-readable string describing |*this|. For debugging & test | 62 // Returns a human-readable string describing |*this|. For debugging & test |
63 // output only. | 63 // output only. |
64 std::string AsHumanReadableString() const; | 64 std::string AsHumanReadableString() const; |
65 | 65 |
66 std::string GetHumanReadableCodecName() const; | 66 std::string GetHumanReadableCodecName() const; |
67 | 67 |
68 static std::string GetHumanReadableProfile(VideoCodecProfile profile); | |
xhwang
2015/12/07 22:14:15
A static function seems to belong to media/base/vi
Tima Vaisburd
2015/12/08 02:12:24
Created separate functions GetCodecName() and GetP
| |
69 | |
68 VideoCodec codec() const { return codec_; } | 70 VideoCodec codec() const { return codec_; } |
69 VideoCodecProfile profile() const { return profile_; } | 71 VideoCodecProfile profile() const { return profile_; } |
70 | 72 |
71 // Video format used to determine YUV buffer sizes. | 73 // Video format used to determine YUV buffer sizes. |
72 VideoPixelFormat format() const { return format_; } | 74 VideoPixelFormat format() const { return format_; } |
73 | 75 |
74 // The default color space of the decoded frames. Decoders should output | 76 // The default color space of the decoded frames. Decoders should output |
75 // frames tagged with this color space unless they find a different value in | 77 // frames tagged with this color space unless they find a different value in |
76 // the bitstream. | 78 // the bitstream. |
77 ColorSpace color_space() const { return color_space_; } | 79 ColorSpace color_space() const { return color_space_; } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 bool is_encrypted_; | 114 bool is_encrypted_; |
113 | 115 |
114 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler | 116 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler |
115 // generated copy constructor and assignment operator. Since the extra data is | 117 // generated copy constructor and assignment operator. Since the extra data is |
116 // typically small, the performance impact is minimal. | 118 // typically small, the performance impact is minimal. |
117 }; | 119 }; |
118 | 120 |
119 } // namespace media | 121 } // namespace media |
120 | 122 |
121 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 123 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
OLD | NEW |