#include "media/mojo/clients/mojo_demuxer_stream_impl.h"
#include <stdint.h>
#include <utility>
#include "base/functional/bind.h"
#include "base/numerics/safe_conversions.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/decoder_buffer.h"
#include "media/base/demuxer_stream.h"
#include "media/base/video_decoder_config.h"
#include "media/mojo/common/media_type_converters.h"
#include "media/mojo/common/mojo_decoder_buffer_converter.h"
namespace media {
MojoDemuxerStreamImpl::MojoDemuxerStreamImpl(
media::DemuxerStream* stream,
mojo::PendingReceiver<mojom::DemuxerStream> receiver)
: … { … }
MojoDemuxerStreamImpl::~MojoDemuxerStreamImpl() = default;
void MojoDemuxerStreamImpl::Initialize(InitializeCallback callback) { … }
void MojoDemuxerStreamImpl::Read(uint32_t count, ReadCallback callback) { … }
void MojoDemuxerStreamImpl::EnableBitstreamConverter() { … }
void MojoDemuxerStreamImpl::OnBufferReady(
ReadCallback callback,
Status status,
media::DemuxerStream::DecoderBufferVector buffers) { … }
}