webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
webrtc::test::FakeDecodeFromFile Class Reference

#include <fake_decode_from_file.h>

Inheritance diagram for webrtc::test::FakeDecodeFromFile:
webrtc::AudioDecoder webrtc::AudioDecoder

Public Member Functions

 FakeDecodeFromFile (std::unique_ptr< InputAudioFile > input, int sample_rate_hz, bool stereo)
 
 ~FakeDecodeFromFile ()=default
 
void Reset () override
 
int SampleRateHz () const override
 
size_t Channels () const override
 
int DecodeInternal (const uint8_t *encoded, size_t encoded_len, int sample_rate_hz, int16_t *decoded, SpeechType *speech_type) override
 
 FakeDecodeFromFile (std::unique_ptr< InputAudioFile > input, int sample_rate_hz, bool stereo)
 
 ~FakeDecodeFromFile ()=default
 
void Reset () override
 
int SampleRateHz () const override
 
size_t Channels () const override
 
int DecodeInternal (const uint8_t *encoded, size_t encoded_len, int sample_rate_hz, int16_t *decoded, SpeechType *speech_type) override
 
- Public Member Functions inherited from webrtc::AudioDecoder
 AudioDecoder ()=default
 
virtual ~AudioDecoder ()=default
 
virtual std::vector< ParseResultParsePayload (rtc::Buffer &&payload, uint32_t timestamp)
 
int Decode (const uint8_t *encoded, size_t encoded_len, int sample_rate_hz, size_t max_decoded_bytes, int16_t *decoded, SpeechType *speech_type)
 
int DecodeRedundant (const uint8_t *encoded, size_t encoded_len, int sample_rate_hz, size_t max_decoded_bytes, int16_t *decoded, SpeechType *speech_type)
 
virtual bool HasDecodePlc () const
 
virtual size_t DecodePlc (size_t num_frames, int16_t *decoded)
 
virtual int IncomingPacket (const uint8_t *payload, size_t payload_len, uint16_t rtp_sequence_number, uint32_t rtp_timestamp, uint32_t arrival_timestamp)
 
virtual int ErrorCode ()
 
virtual int PacketDuration (const uint8_t *encoded, size_t encoded_len) const
 
virtual int PacketDurationRedundant (const uint8_t *encoded, size_t encoded_len) const
 
virtual bool PacketHasFec (const uint8_t *encoded, size_t encoded_len) const
 
 AudioDecoder ()=default
 
virtual ~AudioDecoder ()=default
 
virtual std::vector< ParseResultParsePayload (rtc::Buffer &&payload, uint32_t timestamp)
 
int Decode (const uint8_t *encoded, size_t encoded_len, int sample_rate_hz, size_t max_decoded_bytes, int16_t *decoded, SpeechType *speech_type)
 
int DecodeRedundant (const uint8_t *encoded, size_t encoded_len, int sample_rate_hz, size_t max_decoded_bytes, int16_t *decoded, SpeechType *speech_type)
 
virtual bool HasDecodePlc () const
 
virtual size_t DecodePlc (size_t num_frames, int16_t *decoded)
 
virtual int IncomingPacket (const uint8_t *payload, size_t payload_len, uint16_t rtp_sequence_number, uint32_t rtp_timestamp, uint32_t arrival_timestamp)
 
virtual int ErrorCode ()
 
virtual int PacketDuration (const uint8_t *encoded, size_t encoded_len) const
 
virtual int PacketDurationRedundant (const uint8_t *encoded, size_t encoded_len) const
 
virtual bool PacketHasFec (const uint8_t *encoded, size_t encoded_len) const
 

Static Public Member Functions

static void PrepareEncoded (uint32_t timestamp, size_t samples, size_t original_payload_size_bytes, rtc::ArrayView< uint8_t > encoded)
 
static void PrepareEncoded (uint32_t timestamp, size_t samples, size_t original_payload_size_bytes, rtc::ArrayView< uint8_t > encoded)
 

Additional Inherited Members

- Public Types inherited from webrtc::AudioDecoder
enum  SpeechType { kSpeech = 1, kComfortNoise = 2, kSpeech = 1, kComfortNoise = 2 }
 
enum  { kNotImplemented = -2 }
 
enum  SpeechType { kSpeech = 1, kComfortNoise = 2, kSpeech = 1, kComfortNoise = 2 }
 
enum  { kNotImplemented = -2 }
 
- Protected Member Functions inherited from webrtc::AudioDecoder
virtual int DecodeRedundantInternal (const uint8_t *encoded, size_t encoded_len, int sample_rate_hz, int16_t *decoded, SpeechType *speech_type)
 
virtual int DecodeRedundantInternal (const uint8_t *encoded, size_t encoded_len, int sample_rate_hz, int16_t *decoded, SpeechType *speech_type)
 
- Static Protected Member Functions inherited from webrtc::AudioDecoder
static SpeechType ConvertSpeechType (int16_t type)
 
static SpeechType ConvertSpeechType (int16_t type)
 

Constructor & Destructor Documentation

◆ FakeDecodeFromFile() [1/2]

webrtc::test::FakeDecodeFromFile::FakeDecodeFromFile ( std::unique_ptr< InputAudioFile input,
int  sample_rate_hz,
bool  stereo 
)
inline

◆ ~FakeDecodeFromFile() [1/2]

webrtc::test::FakeDecodeFromFile::~FakeDecodeFromFile ( )
default

◆ FakeDecodeFromFile() [2/2]

webrtc::test::FakeDecodeFromFile::FakeDecodeFromFile ( std::unique_ptr< InputAudioFile input,
int  sample_rate_hz,
bool  stereo 
)
inline

◆ ~FakeDecodeFromFile() [2/2]

webrtc::test::FakeDecodeFromFile::~FakeDecodeFromFile ( )
default

Member Function Documentation

◆ Channels() [1/2]

size_t webrtc::test::FakeDecodeFromFile::Channels ( ) const
inlineoverridevirtual

Implements webrtc::AudioDecoder.

◆ Channels() [2/2]

size_t webrtc::test::FakeDecodeFromFile::Channels ( ) const
inlineoverridevirtual

Implements webrtc::AudioDecoder.

◆ DecodeInternal() [1/2]

int webrtc::test::FakeDecodeFromFile::DecodeInternal ( const uint8_t encoded,
size_t  encoded_len,
int  sample_rate_hz,
int16_t decoded,
SpeechType speech_type 
)
overridevirtual

Implements webrtc::AudioDecoder.

◆ DecodeInternal() [2/2]

int webrtc::test::FakeDecodeFromFile::DecodeInternal ( const uint8_t encoded,
size_t  encoded_len,
int  sample_rate_hz,
int16_t decoded,
SpeechType speech_type 
)
overridevirtual

Implements webrtc::AudioDecoder.

◆ PrepareEncoded() [1/2]

static void webrtc::test::FakeDecodeFromFile::PrepareEncoded ( uint32_t  timestamp,
size_t  samples,
size_t  original_payload_size_bytes,
rtc::ArrayView< uint8_t encoded 
)
static

◆ PrepareEncoded() [2/2]

void webrtc::test::FakeDecodeFromFile::PrepareEncoded ( uint32_t  timestamp,
size_t  samples,
size_t  original_payload_size_bytes,
rtc::ArrayView< uint8_t encoded 
)
static

◆ Reset() [1/2]

void webrtc::test::FakeDecodeFromFile::Reset ( )
inlineoverridevirtual

Implements webrtc::AudioDecoder.

◆ Reset() [2/2]

void webrtc::test::FakeDecodeFromFile::Reset ( )
inlineoverridevirtual

Implements webrtc::AudioDecoder.

◆ SampleRateHz() [1/2]

int webrtc::test::FakeDecodeFromFile::SampleRateHz ( ) const
inlineoverridevirtual

Implements webrtc::AudioDecoder.

◆ SampleRateHz() [2/2]

int webrtc::test::FakeDecodeFromFile::SampleRateHz ( ) const
inlineoverridevirtual

Implements webrtc::AudioDecoder.


The documentation for this class was generated from the following files: