BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

pj::CodecOpusConfig Struct Reference

#include <media.hpp>

Public Member Functions

pjmedia_codec_opus_config toPj () const
 
void fromPj (const pjmedia_codec_opus_config &config)
 

Data Fields

unsigned sample_rate
 
unsigned channel_cnt
 
unsigned frm_ptime
 
unsigned bit_rate
 
unsigned packet_loss
 
unsigned complexity
 
bool cbr
 

Detailed Description

Opus codec parameters setting;

Field Documentation

◆ sample_rate

unsigned pj::CodecOpusConfig::sample_rate

Sample rate in Hz.

◆ channel_cnt

unsigned pj::CodecOpusConfig::channel_cnt

Number of channels.

◆ frm_ptime

unsigned pj::CodecOpusConfig::frm_ptime

Frame time in msec.

◆ bit_rate

unsigned pj::CodecOpusConfig::bit_rate

Encoder bit rate in bps.

◆ packet_loss

unsigned pj::CodecOpusConfig::packet_loss

Encoder's expected packet loss pct.

◆ complexity

unsigned pj::CodecOpusConfig::complexity

Encoder complexity, 0-10(10 is highest)

◆ cbr

bool pj::CodecOpusConfig::cbr

Constant bit rate?


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

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.