| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_CODECS_H_ | 5 #ifndef MEDIA_BASE_VIDEO_CODECS_H_ |
| 6 #define MEDIA_BASE_VIDEO_CODECS_H_ | 6 #define MEDIA_BASE_VIDEO_CODECS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 8 #include <string> | 9 #include <string> |
| 9 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
| 10 | 11 |
| 11 namespace media { | 12 namespace media { |
| 12 | 13 |
| 13 enum VideoCodec { | 14 enum VideoCodec { |
| 14 // These values are histogrammed over time; do not change their ordinal | 15 // These values are histogrammed over time; do not change their ordinal |
| 15 // values. When deleting a codec replace it with a dummy value; when adding a | 16 // values. When deleting a codec replace it with a dummy value; when adding a |
| 16 // codec, do so at the bottom (and update kVideoCodecMax). | 17 // codec, do so at the bottom (and update kVideoCodecMax). |
| 17 kUnknownVideoCodec = 0, | 18 kUnknownVideoCodec = 0, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 VP8PROFILE_MAX = VP8PROFILE_ANY, | 59 VP8PROFILE_MAX = VP8PROFILE_ANY, |
| 59 VP9PROFILE_MIN = 12, | 60 VP9PROFILE_MIN = 12, |
| 60 VP9PROFILE_ANY = VP9PROFILE_MIN, | 61 VP9PROFILE_ANY = VP9PROFILE_MIN, |
| 61 VP9PROFILE_MAX = VP9PROFILE_ANY, | 62 VP9PROFILE_MAX = VP9PROFILE_ANY, |
| 62 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX, | 63 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX, |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 std::string MEDIA_EXPORT GetCodecName(VideoCodec codec); | 66 std::string MEDIA_EXPORT GetCodecName(VideoCodec codec); |
| 66 std::string MEDIA_EXPORT GetProfileName(VideoCodecProfile profile); | 67 std::string MEDIA_EXPORT GetProfileName(VideoCodecProfile profile); |
| 67 | 68 |
| 69 // Handle parsing AVC/H.264 codec ids as outlined in RFC 6381 and ISO-14496-10. |
| 70 MEDIA_EXPORT bool ParseAVCCodecId(const std::string& codec_id, |
| 71 VideoCodecProfile* profile, |
| 72 uint8_t* level_idc); |
| 73 |
| 68 } // namespace media | 74 } // namespace media |
| 69 | 75 |
| 70 #endif // MEDIA_BASE_VIDEO_CODECS_H_ | 76 #endif // MEDIA_BASE_VIDEO_CODECS_H_ |
| OLD | NEW |