#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/base/video_codec_string_parsers.h"
#include <string_view>
#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "media/base/video_color_space.h"
#include "ui/gfx/color_space.h"
namespace {
bool IsDolbyVisionAVCCodecId(std::string_view codec_id) { … }
bool IsDolbyVisionHEVCCodecId(std::string_view codec_id) { … }
}
namespace media {
std::optional<VideoType> ParseNewStyleVp9CodecID(std::string_view codec_id) { … }
std::optional<VideoType> ParseLegacyVp9CodecID(std::string_view codec_id) { … }
std::optional<VideoType> ParseAv1CodecId(std::string_view codec_id) { … }
std::optional<VideoType> ParseAVCCodecId(std::string_view codec_id) { … }
std::optional<VideoType> ParseHEVCCodecId(std::string_view codec_id) { … }
std::optional<VideoType> ParseVVCCodecId(std::string_view codec_id) { … }
std::optional<VideoType> ParseDolbyVisionCodecId(std::string_view codec_id) { … }
std::optional<VideoType> ParseCodec(std::string_view codec_id) { … }
VideoCodec StringToVideoCodec(std::string_view codec_id) { … }
std::string TranslateLegacyAvc1CodecIds(std::string_view codec_id) { … }
}