#include "base/command_line.h"
#include "build/build_config.h"
#include "media/base/media_switches.h"
#include "media/base/video_codecs.h"
#include "media/cast/encoding/external_video_encoder.h"
#include "third_party/libaom/libaom_buildflags.h"
namespace media::cast::encoding_support {
namespace {
bool IsCastStreamingAv1Enabled() { … }
bool IsHardwareEncodingEnabled(
const std::vector<VideoEncodeAccelerator::SupportedProfile>& profiles,
VideoCodecProfile min_profile,
VideoCodecProfile max_profile) { … }
bool IsHardwareVP8EncodingEnabled(
const std::vector<VideoEncodeAccelerator::SupportedProfile>& profiles) { … }
bool IsHardwareVP9EncodingEnabled(
const std::vector<VideoEncodeAccelerator::SupportedProfile>& profiles) { … }
bool IsHardwareH264EncodingEnabled(
const std::vector<VideoEncodeAccelerator::SupportedProfile>& profiles) { … }
}
bool IsSoftwareEnabled(VideoCodec codec) { … }
bool IsHardwareEnabled(
VideoCodec codec,
const std::vector<VideoEncodeAccelerator::SupportedProfile>& profiles) { … }
}