Ring Daemon 16.0.0
|
#include <media_codec.h>
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 () | |
![]() | |
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()} |
![]() | |
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 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} |
Definition at line 119 of file media_codec.h.
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.
jami::SystemAudioCodecInfo::~SystemAudioCodecInfo | ( | ) |
Definition at line 94 of file media_codec.cpp.
|
overridevirtual |
Reimplemented from jami::SystemCodecInfo.
Definition at line 97 of file media_codec.cpp.
References audioformat, libjami::Account::ConfProperties::CodecInfo::BITRATE, jami::SystemCodecInfo::bitrate, libjami::Account::ConfProperties::CodecInfo::CHANNEL_NUMBER, jami::SystemCodecInfo::longName, jami::MEDIA_AUDIO, jami::SystemCodecInfo::mediaType, libjami::Account::ConfProperties::CodecInfo::NAME, jami::AudioFormat::nb_channels, libjami::Account::ConfProperties::CodecInfo::SAMPLE_RATE, jami::AudioFormat::sample_rate, and libjami::Account::ConfProperties::CodecInfo::TYPE.
bool jami::SystemAudioCodecInfo::isPCMG722 | ( | ) | const |
Definition at line 111 of file media_codec.cpp.
References jami::SystemCodecInfo::avcodecId, and jami::emitSignal().
void jami::SystemAudioCodecInfo::setCodecSpecifications | ( | const std::map< std::string, std::string > & | details | ) |
Definition at line 117 of file media_codec.cpp.
References audioformat, libjami::Account::ConfProperties::CodecInfo::BITRATE, jami::SystemCodecInfo::bitrate, jami::emitSignal(), libjami::Account::ConfProperties::CodecInfo::SAMPLE_RATE, and jami::AudioFormat::sample_rate.
AudioFormat jami::SystemAudioCodecInfo::audioformat {AudioFormat::NONE()} |
Definition at line 138 of file media_codec.h.
Referenced by getCodecSpecifications(), and setCodecSpecifications().