#include "media/filters/decoder_stream_traits.h"
#include <limits>
#include <memory>
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "media/base/audio_buffer.h"
#include "media/base/audio_decoder.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/video_decoder.h"
#include "media/base/video_frame.h"
namespace media {
std::string DecoderStreamTraits<DemuxerStream::AUDIO>::ToString() { … }
bool DecoderStreamTraits<DemuxerStream::AUDIO>::NeedsBitstreamConversion(
DecoderType* decoder) { … }
scoped_refptr<DecoderStreamTraits<DemuxerStream::AUDIO>::OutputType>
DecoderStreamTraits<DemuxerStream::AUDIO>::CreateEOSOutput() { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::SetIsPlatformDecoder(
bool is_platform_decoder) { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::SetIsDecryptingDemuxerStream(
bool is_dds) { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::SetEncryptionType(
EncryptionType encryption_type) { … }
DecoderStreamTraits<DemuxerStream::AUDIO>::DecoderStreamTraits(
MediaLog* media_log,
ChannelLayout initial_hw_layout,
SampleFormat initial_hw_sample_format)
: … { … }
DecoderStreamTraits<DemuxerStream::AUDIO>::DecoderConfigType
DecoderStreamTraits<DemuxerStream::AUDIO>::GetDecoderConfig(
DemuxerStream* stream) { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::ReportStatistics(
const StatisticsCB& statistics_cb,
int bytes_decoded) { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::InitializeDecoder(
DecoderType* decoder,
const DecoderConfigType& config,
bool ,
CdmContext* cdm_context,
InitCB init_cb,
const OutputCB& output_cb,
const WaitingCB& waiting_cb) { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::OnDecoderInitialized(
DecoderType* decoder,
InitCB cb,
DecoderStatus result) { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::OnStreamReset(
DemuxerStream* stream) { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::OnDecode(
const DecoderBuffer& buffer) { … }
PostDecodeAction DecoderStreamTraits<DemuxerStream::AUDIO>::OnDecodeDone(
OutputType* buffer) { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::OnConfigChanged(
const DecoderConfigType& config) { … }
void DecoderStreamTraits<DemuxerStream::AUDIO>::OnOutputReady(
OutputType* buffer) { … }
std::string DecoderStreamTraits<DemuxerStream::VIDEO>::ToString() { … }
bool DecoderStreamTraits<DemuxerStream::VIDEO>::NeedsBitstreamConversion(
DecoderType* decoder) { … }
scoped_refptr<DecoderStreamTraits<DemuxerStream::VIDEO>::OutputType>
DecoderStreamTraits<DemuxerStream::VIDEO>::CreateEOSOutput() { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::SetIsPlatformDecoder(
bool is_platform_decoder) { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::SetIsDecryptingDemuxerStream(
bool is_dds) { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::SetEncryptionType(
EncryptionType encryption_type) { … }
DecoderStreamTraits<DemuxerStream::VIDEO>::DecoderStreamTraits(
MediaLog* media_log)
: … { … }
DecoderStreamTraits<DemuxerStream::VIDEO>::DecoderConfigType
DecoderStreamTraits<DemuxerStream::VIDEO>::GetDecoderConfig(
DemuxerStream* stream) { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::ReportStatistics(
const StatisticsCB& statistics_cb,
int bytes_decoded) { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::InitializeDecoder(
DecoderType* decoder,
const DecoderConfigType& config,
bool low_delay,
CdmContext* cdm_context,
InitCB init_cb,
const OutputCB& output_cb,
const WaitingCB& waiting_cb) { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::OnDecoderInitialized(
DecoderType* decoder,
InitCB cb,
DecoderStatus result) { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::OnStreamReset(
DemuxerStream* stream) { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::OnDecode(
const DecoderBuffer& buffer) { … }
PostDecodeAction DecoderStreamTraits<DemuxerStream::VIDEO>::OnDecodeDone(
OutputType* buffer) { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::OnOutputReady(
OutputType* buffer) { … }
void DecoderStreamTraits<DemuxerStream::VIDEO>::SetPreferNonPlatformDecoders(
bool prefer) { … }
bool DecoderStreamTraits<DemuxerStream::VIDEO>::GetPreferNonPlatformDecoders()
const { … }
}