webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
webrtc::DecoderDatabase Class Reference

#include <decoder_database.h>

Inheritance diagram for webrtc::DecoderDatabase:
webrtc::MockDecoderDatabase webrtc::MockDecoderDatabase

Classes

class  DecoderInfo
 

Public Types

enum  DatabaseReturnCodes {
  kOK = 0, kInvalidRtpPayloadType = -1, kCodecNotSupported = -2, kInvalidSampleRate = -3,
  kDecoderExists = -4, kDecoderNotFound = -5, kInvalidPointer = -6, kOK = 0,
  kInvalidRtpPayloadType = -1, kCodecNotSupported = -2, kInvalidSampleRate = -3, kDecoderExists = -4,
  kDecoderNotFound = -5, kInvalidPointer = -6
}
 
enum  DatabaseReturnCodes {
  kOK = 0, kInvalidRtpPayloadType = -1, kCodecNotSupported = -2, kInvalidSampleRate = -3,
  kDecoderExists = -4, kDecoderNotFound = -5, kInvalidPointer = -6, kOK = 0,
  kInvalidRtpPayloadType = -1, kCodecNotSupported = -2, kInvalidSampleRate = -3, kDecoderExists = -4,
  kDecoderNotFound = -5, kInvalidPointer = -6
}
 

Public Member Functions

 DecoderDatabase (const rtc::scoped_refptr< AudioDecoderFactory > &decoder_factory)
 
virtual ~DecoderDatabase ()
 
virtual bool Empty () const
 
virtual int Size () const
 
virtual void Reset ()
 
virtual int RegisterPayload (uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &name)
 
virtual int RegisterPayload (int rtp_payload_type, const SdpAudioFormat &audio_format)
 
virtual int InsertExternal (uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &codec_name, AudioDecoder *decoder)
 
virtual int Remove (uint8_t rtp_payload_type)
 
virtual void RemoveAll ()
 
virtual const DecoderInfoGetDecoderInfo (uint8_t rtp_payload_type) const
 
virtual int SetActiveDecoder (uint8_t rtp_payload_type, bool *new_decoder)
 
virtual AudioDecoderGetActiveDecoder () const
 
virtual int SetActiveCngDecoder (uint8_t rtp_payload_type)
 
virtual ComfortNoiseDecoderGetActiveCngDecoder () const
 
AudioDecoderGetDecoder (uint8_t rtp_payload_type) const
 
bool IsType (uint8_t rtp_payload_type, const char *name) const
 
bool IsType (uint8_t rtp_payload_type, const std::string &name) const
 
bool IsComfortNoise (uint8_t rtp_payload_type) const
 
bool IsDtmf (uint8_t rtp_payload_type) const
 
bool IsRed (uint8_t rtp_payload_type) const
 
int CheckPayloadTypes (const PacketList &packet_list) const
 
 DecoderDatabase (const rtc::scoped_refptr< AudioDecoderFactory > &decoder_factory)
 
virtual ~DecoderDatabase ()
 
virtual bool Empty () const
 
virtual int Size () const
 
virtual void Reset ()
 
virtual int RegisterPayload (uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &name)
 
virtual int RegisterPayload (int rtp_payload_type, const SdpAudioFormat &audio_format)
 
virtual int InsertExternal (uint8_t rtp_payload_type, NetEqDecoder codec_type, const std::string &codec_name, AudioDecoder *decoder)
 
virtual int Remove (uint8_t rtp_payload_type)
 
virtual void RemoveAll ()
 
virtual const DecoderInfoGetDecoderInfo (uint8_t rtp_payload_type) const
 
virtual int SetActiveDecoder (uint8_t rtp_payload_type, bool *new_decoder)
 
virtual AudioDecoderGetActiveDecoder () const
 
virtual int SetActiveCngDecoder (uint8_t rtp_payload_type)
 
virtual ComfortNoiseDecoderGetActiveCngDecoder () const
 
AudioDecoderGetDecoder (uint8_t rtp_payload_type) const
 
bool IsType (uint8_t rtp_payload_type, const char *name) const
 
bool IsType (uint8_t rtp_payload_type, const std::string &name) const
 
bool IsComfortNoise (uint8_t rtp_payload_type) const
 
bool IsDtmf (uint8_t rtp_payload_type) const
 
bool IsRed (uint8_t rtp_payload_type) const
 
int CheckPayloadTypes (const PacketList &packet_list) const
 

Static Public Attributes

static const uint8_t kRtpPayloadTypeError = 0xFF
 

Member Enumeration Documentation

◆ DatabaseReturnCodes [1/2]

Enumerator
kOK 
kInvalidRtpPayloadType 
kCodecNotSupported 
kInvalidSampleRate 
kDecoderExists 
kDecoderNotFound 
kInvalidPointer 
kOK 
kInvalidRtpPayloadType 
kCodecNotSupported 
kInvalidSampleRate 
kDecoderExists 
kDecoderNotFound 
kInvalidPointer 

◆ DatabaseReturnCodes [2/2]

Enumerator
kOK 
kInvalidRtpPayloadType 
kCodecNotSupported 
kInvalidSampleRate 
kDecoderExists 
kDecoderNotFound 
kInvalidPointer 
kOK 
kInvalidRtpPayloadType 
kCodecNotSupported 
kInvalidSampleRate 
kDecoderExists 
kDecoderNotFound 
kInvalidPointer 

Constructor & Destructor Documentation

◆ DecoderDatabase() [1/2]

webrtc::DecoderDatabase::DecoderDatabase ( const rtc::scoped_refptr< AudioDecoderFactory > &  decoder_factory)

◆ ~DecoderDatabase() [1/2]

webrtc::DecoderDatabase::~DecoderDatabase ( )
virtualdefault

◆ DecoderDatabase() [2/2]

webrtc::DecoderDatabase::DecoderDatabase ( const rtc::scoped_refptr< AudioDecoderFactory > &  decoder_factory)

◆ ~DecoderDatabase() [2/2]

virtual webrtc::DecoderDatabase::~DecoderDatabase ( )
virtual

Member Function Documentation

◆ CheckPayloadTypes() [1/2]

int webrtc::DecoderDatabase::CheckPayloadTypes ( const PacketList packet_list) const

◆ CheckPayloadTypes() [2/2]

int webrtc::DecoderDatabase::CheckPayloadTypes ( const PacketList packet_list) const

◆ Empty() [1/2]

bool webrtc::DecoderDatabase::Empty ( ) const
virtual

◆ Empty() [2/2]

virtual bool webrtc::DecoderDatabase::Empty ( ) const
virtual

◆ GetActiveCngDecoder() [1/2]

virtual ComfortNoiseDecoder* webrtc::DecoderDatabase::GetActiveCngDecoder ( ) const
virtual

◆ GetActiveCngDecoder() [2/2]

ComfortNoiseDecoder * webrtc::DecoderDatabase::GetActiveCngDecoder ( ) const
virtual

◆ GetActiveDecoder() [1/2]

AudioDecoder * webrtc::DecoderDatabase::GetActiveDecoder ( ) const
virtual

◆ GetActiveDecoder() [2/2]

virtual AudioDecoder* webrtc::DecoderDatabase::GetActiveDecoder ( ) const
virtual

◆ GetDecoder() [1/2]

AudioDecoder* webrtc::DecoderDatabase::GetDecoder ( uint8_t  rtp_payload_type) const

◆ GetDecoder() [2/2]

AudioDecoder * webrtc::DecoderDatabase::GetDecoder ( uint8_t  rtp_payload_type) const

◆ GetDecoderInfo() [1/2]

const DecoderDatabase::DecoderInfo * webrtc::DecoderDatabase::GetDecoderInfo ( uint8_t  rtp_payload_type) const
virtual

◆ GetDecoderInfo() [2/2]

virtual const DecoderInfo* webrtc::DecoderDatabase::GetDecoderInfo ( uint8_t  rtp_payload_type) const
virtual

◆ InsertExternal() [1/2]

int webrtc::DecoderDatabase::InsertExternal ( uint8_t  rtp_payload_type,
NetEqDecoder  codec_type,
const std::string codec_name,
AudioDecoder decoder 
)
virtual

◆ InsertExternal() [2/2]

virtual int webrtc::DecoderDatabase::InsertExternal ( uint8_t  rtp_payload_type,
NetEqDecoder  codec_type,
const std::string codec_name,
AudioDecoder decoder 
)
virtual

◆ IsComfortNoise() [1/2]

bool webrtc::DecoderDatabase::IsComfortNoise ( uint8_t  rtp_payload_type) const

◆ IsComfortNoise() [2/2]

bool webrtc::DecoderDatabase::IsComfortNoise ( uint8_t  rtp_payload_type) const

◆ IsDtmf() [1/2]

bool webrtc::DecoderDatabase::IsDtmf ( uint8_t  rtp_payload_type) const

◆ IsDtmf() [2/2]

bool webrtc::DecoderDatabase::IsDtmf ( uint8_t  rtp_payload_type) const

◆ IsRed() [1/2]

bool webrtc::DecoderDatabase::IsRed ( uint8_t  rtp_payload_type) const

◆ IsRed() [2/2]

bool webrtc::DecoderDatabase::IsRed ( uint8_t  rtp_payload_type) const

◆ IsType() [1/4]

bool webrtc::DecoderDatabase::IsType ( uint8_t  rtp_payload_type,
const char *  name 
) const

◆ IsType() [2/4]

bool webrtc::DecoderDatabase::IsType ( uint8_t  rtp_payload_type,
const char *  name 
) const

◆ IsType() [3/4]

bool webrtc::DecoderDatabase::IsType ( uint8_t  rtp_payload_type,
const std::string name 
) const

◆ IsType() [4/4]

bool webrtc::DecoderDatabase::IsType ( uint8_t  rtp_payload_type,
const std::string name 
) const

◆ RegisterPayload() [1/4]

virtual int webrtc::DecoderDatabase::RegisterPayload ( uint8_t  rtp_payload_type,
NetEqDecoder  codec_type,
const std::string name 
)
virtual

◆ RegisterPayload() [2/4]

int webrtc::DecoderDatabase::RegisterPayload ( uint8_t  rtp_payload_type,
NetEqDecoder  codec_type,
const std::string name 
)
virtual

◆ RegisterPayload() [3/4]

int webrtc::DecoderDatabase::RegisterPayload ( int  rtp_payload_type,
const SdpAudioFormat audio_format 
)
virtual

◆ RegisterPayload() [4/4]

virtual int webrtc::DecoderDatabase::RegisterPayload ( int  rtp_payload_type,
const SdpAudioFormat audio_format 
)
virtual

◆ Remove() [1/2]

int webrtc::DecoderDatabase::Remove ( uint8_t  rtp_payload_type)
virtual

◆ Remove() [2/2]

virtual int webrtc::DecoderDatabase::Remove ( uint8_t  rtp_payload_type)
virtual

◆ RemoveAll() [1/2]

void webrtc::DecoderDatabase::RemoveAll ( )
virtual

◆ RemoveAll() [2/2]

virtual void webrtc::DecoderDatabase::RemoveAll ( )
virtual

◆ Reset() [1/2]

void webrtc::DecoderDatabase::Reset ( )
virtual

◆ Reset() [2/2]

virtual void webrtc::DecoderDatabase::Reset ( )
virtual

◆ SetActiveCngDecoder() [1/2]

virtual int webrtc::DecoderDatabase::SetActiveCngDecoder ( uint8_t  rtp_payload_type)
virtual

◆ SetActiveCngDecoder() [2/2]

int webrtc::DecoderDatabase::SetActiveCngDecoder ( uint8_t  rtp_payload_type)
virtual

◆ SetActiveDecoder() [1/2]

int webrtc::DecoderDatabase::SetActiveDecoder ( uint8_t  rtp_payload_type,
bool *  new_decoder 
)
virtual

◆ SetActiveDecoder() [2/2]

virtual int webrtc::DecoderDatabase::SetActiveDecoder ( uint8_t  rtp_payload_type,
bool *  new_decoder 
)
virtual

◆ Size() [1/2]

int webrtc::DecoderDatabase::Size ( ) const
virtual

◆ Size() [2/2]

virtual int webrtc::DecoderDatabase::Size ( ) const
virtual

Member Data Documentation

◆ kRtpPayloadTypeError

static const uint8_t webrtc::DecoderDatabase::kRtpPayloadTypeError = 0xFF
static

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