#include "media/base/video_decoder_config.h"
#include <iomanip>
#include <vector>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "media/base/limits.h"
#include "media/base/media_util.h"
#include "media/base/video_types.h"
#include "media/base/video_util.h"
namespace media {
static bool IsValidSize(const gfx::Size& size) { … }
VideoDecoderConfig::VideoDecoderConfig() = default;
VideoDecoderConfig::VideoDecoderConfig(VideoCodec codec,
VideoCodecProfile profile,
AlphaMode alpha_mode,
const VideoColorSpace& color_space,
VideoTransformation rotation,
const gfx::Size& coded_size,
const gfx::Rect& visible_rect,
const gfx::Size& natural_size,
const std::vector<uint8_t>& extra_data,
EncryptionScheme encryption_scheme) { … }
VideoDecoderConfig::VideoDecoderConfig(const VideoDecoderConfig& other) =
default;
VideoDecoderConfig::~VideoDecoderConfig() = default;
void VideoDecoderConfig::Initialize(VideoCodec codec,
VideoCodecProfile profile,
AlphaMode alpha_mode,
const VideoColorSpace& color_space,
VideoTransformation transformation,
const gfx::Size& coded_size,
const gfx::Rect& visible_rect,
const gfx::Size& natural_size,
const std::vector<uint8_t>& extra_data,
EncryptionScheme encryption_scheme) { … }
bool VideoDecoderConfig::IsValidConfig() const { … }
bool VideoDecoderConfig::Matches(const VideoDecoderConfig& config) const { … }
std::string VideoDecoderConfig::AsHumanReadableString() const { … }
std::string VideoDecoderConfig::GetHumanReadableCodecName() const { … }
void VideoDecoderConfig::SetExtraData(const std::vector<uint8_t>& extra_data) { … }
void VideoDecoderConfig::SetIsEncrypted(bool is_encrypted) { … }
}