Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::SystemAudioCodecInfo Struct Reference

#include <media_codec.h>

Inheritance diagram for jami::SystemAudioCodecInfo:
Inheritance graph
Collaboration diagram for jami::SystemAudioCodecInfo:
Collaboration graph

Public Member Functions

std::map< std::string, std::string > getCodecSpecifications () const override
 
bool isPCMG722 () const
 
void setCodecSpecifications (const std::map< std::string, std::string > &details)
 
 SystemAudioCodecInfo (unsigned codecId, unsigned avcodecId, const std::string &longName, const std::string &name, const std::string &libName, CodecType type, unsigned bitrate=0, unsigned sampleRate=0, unsigned nbChannels=0, unsigned payloadType=0, AVSampleFormat sampleFormat=AV_SAMPLE_FMT_S16)
 
 ~SystemAudioCodecInfo ()
 
- Public Member Functions inherited from jami::SystemCodecInfo
 SystemCodecInfo (unsigned codecId, unsigned avcodecId, const std::string &longName, const std::string &name, const std::string &libName, MediaType mediaType, CodecType codecType=CODEC_NONE, unsigned bitrate=0, unsigned payloadType=0, unsigned m_minQuality=DEFAULT_NO_QUALITY, unsigned m_maxQuality=DEFAULT_NO_QUALITY)
 
virtual ~SystemCodecInfo ()
 

Public Attributes

AudioFormat audioformat {AudioFormat::NONE()}
 
- Public Attributes inherited from jami::SystemCodecInfo
unsigned avcodecId
 
unsigned bitrate
 
CodecType codecType
 
unsigned id
 
bool isActive {false}
 
std::string libName
 
std::string longName
 
unsigned maxBitrate = DEFAULT_MAX_BITRATE
 
unsigned maxQuality = DEFAULT_NO_QUALITY
 
MediaType mediaType
 
unsigned minBitrate = DEFAULT_MIN_BITRATE
 
unsigned minQuality = DEFAULT_NO_QUALITY
 
std::string name
 
unsigned order {0}
 
unsigned payloadType
 
unsigned quality
 

Additional Inherited Members

- Static Public Attributes inherited from jami::SystemCodecInfo
static constexpr unsigned DEFAULT_CODEC_QUALITY {30}
 
static constexpr unsigned DEFAULT_MAX_BITRATE {6000}
 
static constexpr unsigned DEFAULT_MIN_BITRATE {200}
 
static constexpr unsigned DEFAULT_NO_QUALITY {0}
 
static constexpr unsigned DEFAULT_VIDEO_BITRATE {800}
 

Detailed Description

Definition at line 119 of file media_codec.h.

Constructor & Destructor Documentation

◆ SystemAudioCodecInfo()

jami::SystemAudioCodecInfo::SystemAudioCodecInfo ( unsigned  codecId,
unsigned  avcodecId,
const std::string &  longName,
const std::string &  name,
const std::string &  libName,
CodecType  type,
unsigned  bitrate = 0,
unsigned  sampleRate = 0,
unsigned  nbChannels = 0,
unsigned  payloadType = 0,
AVSampleFormat  sampleFormat = AV_SAMPLE_FMT_S16 
)

Definition at line 71 of file media_codec.cpp.

◆ ~SystemAudioCodecInfo()

jami::SystemAudioCodecInfo::~SystemAudioCodecInfo ( )

Definition at line 94 of file media_codec.cpp.

Member Function Documentation

◆ getCodecSpecifications()

◆ isPCMG722()

bool jami::SystemAudioCodecInfo::isPCMG722 ( ) const

Definition at line 111 of file media_codec.cpp.

References jami::SystemCodecInfo::avcodecId, and jami::emitSignal().

Here is the call graph for this function:

◆ setCodecSpecifications()

void jami::SystemAudioCodecInfo::setCodecSpecifications ( const std::map< std::string, std::string > &  details)

Member Data Documentation

◆ audioformat

AudioFormat jami::SystemAudioCodecInfo::audioformat {AudioFormat::NONE()}

Definition at line 138 of file media_codec.h.

Referenced by getCodecSpecifications(), and setCodecSpecifications().


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