| Index: media/base/video_codecs.h
|
| diff --git a/media/base/video_codecs.h b/media/base/video_codecs.h
|
| index 188b5449f7906ccb5485122ef6f75563ddde4c0b..d78781d08e38accec094516d3d7ff57b64b944a7 100644
|
| --- a/media/base/video_codecs.h
|
| +++ b/media/base/video_codecs.h
|
| @@ -8,6 +8,7 @@
|
| #include <stdint.h>
|
| #include <string>
|
| #include "media/base/media_export.h"
|
| +#include "media/media_features.h"
|
|
|
| namespace media {
|
|
|
| @@ -32,9 +33,12 @@ enum VideoCodec {
|
| kVideoCodecMax = kCodecHEVC // Must equal the last "real" codec above.
|
| };
|
|
|
| -// Video stream profile. This *must* match PP_VideoDecoder_Profile.
|
| -// (enforced in webkit/plugins/ppapi/ppb_video_decoder_impl.cc) and
|
| -// gpu::VideoCodecProfile.
|
| +// Video codec profiles. Keep in sync with mojo::VideoCodecProfile (see
|
| +// media/mojo/interfaces/media_types.mojom) and gpu::VideoCodecProfile (see
|
| +// gpu/config/gpu_info.h), as well as PP_VideoDecoder_Profile (translation is
|
| +// performed in content/renderer/pepper/ppb_video_decoder_impl.cc).
|
| +// NOTE: These values are histogrammed over time in UMA so the values must
|
| +// never ever change (add new values to tools/metrics/histograms/histograms.xml)
|
| enum VideoCodecProfile {
|
| // Keep the values in this enum unique, as they imply format (h.264 vs. VP8,
|
| // for example), and keep the values for a particular format grouped
|
| @@ -60,7 +64,13 @@ enum VideoCodecProfile {
|
| VP9PROFILE_MIN = 12,
|
| VP9PROFILE_ANY = VP9PROFILE_MIN,
|
| VP9PROFILE_MAX = VP9PROFILE_ANY,
|
| - VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX,
|
| + // 4 profile values are reserved for VP9 profiles.
|
| + HEVCPROFILE_MIN = VP9PROFILE_ANY + 4, //=16
|
| + HEVCPROFILE_MAIN = HEVCPROFILE_MIN,
|
| + HEVCPROFILE_MAIN10 = 17,
|
| + HEVCPROFILE_MAIN_STILL_PICTURE = 18,
|
| + HEVCPROFILE_MAX = HEVCPROFILE_MAIN_STILL_PICTURE,
|
| + VIDEO_CODEC_PROFILE_MAX = HEVCPROFILE_MAX,
|
| };
|
|
|
| std::string MEDIA_EXPORT GetCodecName(VideoCodec codec);
|
| @@ -71,6 +81,12 @@ MEDIA_EXPORT bool ParseAVCCodecId(const std::string& codec_id,
|
| VideoCodecProfile* profile,
|
| uint8_t* level_idc);
|
|
|
| +#if BUILDFLAG(ENABLE_HEVC_DEMUXING)
|
| +MEDIA_EXPORT bool ParseHEVCCodecId(const std::string& codec_id,
|
| + VideoCodecProfile* profile,
|
| + uint8_t* level_idc);
|
| +#endif
|
| +
|
| } // namespace media
|
|
|
| #endif // MEDIA_BASE_VIDEO_CODECS_H_
|
|
|