#include "media/formats/webm/webm_video_client.h"
#include "media/base/video_decoder_config.h"
#include "media/formats/mp4/box_definitions.h"
#include "media/formats/webm/webm_constants.h"
#include "media/media_buildflags.h"
namespace media {
namespace {
media::VideoCodecProfile GetVP9CodecProfile(const std::vector<uint8_t>& data,
bool is_probably_10bit) { … }
#if BUILDFLAG(ENABLE_AV1_DECODER)
media::VideoCodecProfile GetAV1CodecProfile(const std::vector<uint8_t>& data) { … }
#endif
bool IsValidStereoMode(int64_t stereo_mode_code) { … }
}
WebMVideoClient::WebMVideoClient(MediaLog* media_log)
: … { … }
WebMVideoClient::~WebMVideoClient() = default;
void WebMVideoClient::Reset() { … }
bool WebMVideoClient::InitializeConfig(
const std::string& codec_id,
const std::vector<uint8_t>& codec_private,
EncryptionScheme encryption_scheme,
VideoDecoderConfig* config) { … }
WebMParserClient* WebMVideoClient::OnListStart(int id) { … }
bool WebMVideoClient::OnListEnd(int id) { … }
bool WebMVideoClient::OnUInt(int id, int64_t val) { … }
bool WebMVideoClient::OnBinary(int id, const uint8_t* data, int size) { … }
bool WebMVideoClient::OnFloat(int id, double val) { … }
}