#include "media/base/mime_util.h"
#include "base/no_destructor.h"
#include "media/base/mime_util_internal.h"
namespace media {
static const internal::MimeUtil* GetMimeUtil() { … }
bool IsSupportedMediaMimeType(std::string_view mime_type) { … }
SupportsType IsSupportedMediaFormat(std::string_view mime_type,
const std::vector<std::string>& codecs) { … }
SupportsType IsSupportedEncryptedMediaFormat(
std::string_view mime_type,
const std::vector<std::string>& codecs) { … }
void SplitCodecs(std::string_view codecs,
std::vector<std::string>* codecs_out) { … }
void StripCodecs(std::vector<std::string>* codecs) { … }
std::optional<VideoType> ParseVideoCodecString(std::string_view mime_type,
std::string_view codec_id,
bool allow_ambiguous_matches) { … }
bool ParseAudioCodecString(std::string_view mime_type,
std::string_view codec_id,
bool* ambiguous_codec_string,
AudioCodec* out_codec) { … }
}