#include "cast/streaming/message_fields.h"
#include <array>
#include <utility>
#include "util/enum_name_table.h"
#include "util/osp_logging.h"
namespace openscreen::cast {
namespace {
constexpr EnumNameTable<AudioCodec, 3> kAudioCodecNames{ … };
constexpr EnumNameTable<VideoCodec, 6> kVideoCodecNames{ … };
}
const char* CodecToString(AudioCodec codec) { … }
ErrorOr<AudioCodec> StringToAudioCodec(std::string_view name) { … }
const char* CodecToString(VideoCodec codec) { … }
ErrorOr<VideoCodec> StringToVideoCodec(std::string_view name) { … }
}