#include "media/base/video_thumbnail_decoder.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/task/bind_post_task.h"
#include "media/base/decoder_buffer.h"
#include "media/base/video_frame.h"
namespace media {
VideoThumbnailDecoder::VideoThumbnailDecoder(
std::unique_ptr<VideoDecoder> decoder,
const VideoDecoderConfig& config,
std::vector<uint8_t> encoded_data)
: … { … }
VideoThumbnailDecoder::~VideoThumbnailDecoder() = default;
void VideoThumbnailDecoder::Start(VideoFrameCallback video_frame_callback) { … }
void VideoThumbnailDecoder::OnVideoDecoderInitialized(DecoderStatus status) { … }
void VideoThumbnailDecoder::OnVideoBufferDecoded(DecoderStatus status) { … }
void VideoThumbnailDecoder::OnEosBufferDecoded(DecoderStatus status) { … }
void VideoThumbnailDecoder::OnVideoFrameDecoded(
scoped_refptr<VideoFrame> frame) { … }
void VideoThumbnailDecoder::NotifyComplete(scoped_refptr<VideoFrame> frame) { … }
}