#include "media/filters/decrypting_demuxer_stream.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/bind_post_task.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "media/base/cdm_context.h"
#include "media/base/decoder_buffer.h"
#include "media/base/media_log.h"
#include "media/base/media_util.h"
namespace media {
static bool IsStreamValid(DemuxerStream* stream) { … }
DecryptingDemuxerStream::DecryptingDemuxerStream(
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
MediaLog* media_log,
const WaitingCB& waiting_cb)
: … { … }
std::string DecryptingDemuxerStream::GetDisplayName() const { … }
void DecryptingDemuxerStream::Initialize(DemuxerStream* stream,
CdmContext* cdm_context,
PipelineStatusCallback status_cb) { … }
void DecryptingDemuxerStream::Read(uint32_t count, ReadCB read_cb) { … }
void DecryptingDemuxerStream::Reset(base::OnceClosure closure) { … }
AudioDecoderConfig DecryptingDemuxerStream::audio_decoder_config() { … }
VideoDecoderConfig DecryptingDemuxerStream::video_decoder_config() { … }
DemuxerStream::Type DecryptingDemuxerStream::type() const { … }
StreamLiveness DecryptingDemuxerStream::liveness() const { … }
void DecryptingDemuxerStream::EnableBitstreamConverter() { … }
bool DecryptingDemuxerStream::SupportsConfigChanges() { … }
bool DecryptingDemuxerStream::HasClearLead() const { … }
DecryptingDemuxerStream::~DecryptingDemuxerStream() { … }
void DecryptingDemuxerStream::OnBuffersReadFromDemuxerStream(
DemuxerStream::Status status,
DemuxerStream::DecoderBufferVector buffers) { … }
void DecryptingDemuxerStream::OnBufferReadFromDemuxerStream(
DemuxerStream::Status status,
scoped_refptr<DecoderBuffer> buffer) { … }
void DecryptingDemuxerStream::DecryptPendingBuffer() { … }
void DecryptingDemuxerStream::OnBufferDecrypted(
Decryptor::Status status,
scoped_refptr<DecoderBuffer> decrypted_buffer) { … }
void DecryptingDemuxerStream::OnCdmContextEvent(CdmContext::Event event) { … }
void DecryptingDemuxerStream::DoReset() { … }
Decryptor::StreamType DecryptingDemuxerStream::GetDecryptorStreamType() const { … }
void DecryptingDemuxerStream::InitializeDecoderConfig() { … }
void DecryptingDemuxerStream::LogMetadata() { … }
void DecryptingDemuxerStream::CompletePendingDecrypt(Decryptor::Status status) { … }
void DecryptingDemuxerStream::CompleteWaitingForDecryptionKey() { … }
}