#ifndef MEDIA_BASE_EME_CONSTANTS_H_
#define MEDIA_BASE_EME_CONSTANTS_H_
#include <stdint.h>
#include <optional>
#include "media/base/media_export.h"
#include "media/media_buildflags.h"
namespace media {
enum class EmeInitDataType { … };
enum EmeCodec : uint32_t { … };
SupportedCodecs;
constexpr SupportedCodecs EME_CODEC_DOLBY_VISION_AVC = …;
constexpr SupportedCodecs EME_CODEC_DOLBY_VISION_HEVC = …;
namespace {
constexpr SupportedCodecs GetMp4AudioCodecs() { … }
constexpr SupportedCodecs GetMp4VideoCodecs() { … }
}
constexpr SupportedCodecs EME_CODEC_WEBM_AUDIO_ALL = …;
constexpr SupportedCodecs EME_CODEC_WEBM_VIDEO_ALL = …;
constexpr SupportedCodecs EME_CODEC_WEBM_ALL = …;
constexpr SupportedCodecs EME_CODEC_MP4_AUDIO_ALL = …;
constexpr SupportedCodecs EME_CODEC_MP4_VIDEO_ALL = …;
constexpr SupportedCodecs EME_CODEC_MP4_ALL = …;
constexpr SupportedCodecs EME_CODEC_AUDIO_ALL = …;
constexpr SupportedCodecs EME_CODEC_VIDEO_ALL = …;
constexpr SupportedCodecs EME_CODEC_ALL = …;
#if BUILDFLAG(USE_PROPRIETARY_CODECS)
#if BUILDFLAG(ENABLE_MSE_MPEG2TS_STREAM_PARSER)
constexpr SupportedCodecs EME_CODEC_MP2T_VIDEO_ALL = EME_CODEC_AVC1;
static_assert(
(EME_CODEC_MP2T_VIDEO_ALL & EME_CODEC_VIDEO_ALL) ==
EME_CODEC_MP2T_VIDEO_ALL,
"EME_CODEC_MP2T_VIDEO_ALL should be a subset of EME_CODEC_MP4_ALL");
#endif
#endif
enum class EmeFeatureSupport { … };
enum class EmeMediaType { … };
enum class EmeConfigRuleState { … };
struct MEDIA_EXPORT EmeConfig { … };
inline bool operator==(EmeConfig const& lhs, EmeConfig const& rhs) { … }
}
#endif