Skip to main content

Codec

Enum Codec 

Source
pub enum Codec {
Show 73 variants None, NonStandard, Pcma, G711Alaw56k, Pcmu, G711Ulaw56k, G72264k, G72256k, G72248k, G7231, G728, G729, G729A, Is11172, Is13818, G729B, G729Ab, GsmFullRate, GsmHalfRate, GsmEnhancedFullRate, Wideband256k, Data64k, Data56k, G7221_32k, G7221_24k, Aac, Mp4aLatm128, Mp4aLatm64, Mp4aLatm56, Mp4aLatm48, Mp4aLatm32, Mp4aLatm24, Mp4aLatm, Gsm, ActiveVoice, G726_32k, G726_24k, G726_16k, G729AnnexB, Ilbc, Isac, Opus, Amr, AmrWb, H261, H263, H263Plus, H264, H264Svc, T120, H224, T38Fax, Tote, H265, H264Uc, Xv150ModemRelay711u, NseVbd711u, Xv150ModemRelay729a, NseVbd729a, H264Fec, ClearChannel, UniversalTranscoder, DtmfOutOfBandRfc2833, DtmfPassthrough, DtmfDynamic, DtmfOutOfBand, DtmfInBandRfc2833, CfbTones, DtmfNoAudio, V150ModemRelay, V150Sprt, V150Sse, Unknown(u32),
}
Expand description

Skinny payload capability / codec identifier.

Variants§

§

None

Indicates that no media encoding is selected or advertised.

§

NonStandard

Marks an implementation-specific media format. The identifier alone does not define an interoperable encoding.

§

Pcma

G.711 A-law PCM at 64 kbit/s, commonly used by E-carrier telephony systems.

§

G711Alaw56k

G.711 A-law PCM carried through a 56 kbit/s bearer rather than a full 64 kbit/s channel.

§

Pcmu

G.711 µ-law PCM at 64 kbit/s, commonly used by North American and Japanese telephony systems.

§

G711Ulaw56k

G.711 µ-law PCM carried through a 56 kbit/s bearer rather than a full 64 kbit/s channel.

§

G72264k

G.722 sub-band wideband speech using its 64 kbit/s mode.

§

G72256k

G.722 sub-band wideband speech using its 56 kbit/s mode.

§

G72248k

G.722 sub-band wideband speech using its 48 kbit/s mode.

§

G7231

G.723.1 low-bit-rate narrowband speech, normally encoded at 5.3 or 6.3 kbit/s.

§

G728

G.728 low-delay CELP narrowband speech encoded at 16 kbit/s.

§

G729

Base G.729 CS-ACELP narrowband speech encoded at 8 kbit/s.

§

G729A

The reduced-complexity Annex A profile of G.729 at 8 kbit/s.

§

Is11172

ISO/IEC 11172 MPEG-1 audio, retained as a legacy SCCP audio capability.

§

Is13818

ISO/IEC 13818 MPEG-2 audio, retained as a legacy SCCP audio capability.

§

G729B

G.729 with Annex B voice-activity detection and comfort-noise generation.

§

G729Ab

The reduced-complexity G.729 Annex A profile combined with Annex B silence suppression.

§

GsmFullRate

GSM Full Rate cellular speech coding. This is distinct from the RTP GSM 06.10 capability represented by Gsm.

§

GsmHalfRate

GSM Half Rate cellular speech coding, trading speech quality for reduced radio bandwidth.

§

GsmEnhancedFullRate

GSM Enhanced Full Rate cellular speech coding with improved quality over GSM Full Rate.

§

Wideband256k

Uncompressed 16-bit linear wideband PCM at 16 kHz, producing a 256 kbit/s audio stream.

§

Data64k

A transparent 64 kbit/s data bearer rather than an audio or video encoding.

§

Data56k

A transparent 56 kbit/s data bearer for rate-limited digital trunks.

§

G7221_32k

G.722.1 wideband transform audio at 32 kbit/s, commonly known as the Siren 7 family.

§

G7221_24k

G.722.1 wideband transform audio at 24 kbit/s, commonly known as the Siren 7 family.

§

Aac

Generic Advanced Audio Coding capability without a fixed SCCP LATM bit-rate selector.

§

Mp4aLatm128

AAC audio transported with MPEG-4 LATM at a nominal 128 kbit/s. Cisco capability tables associate this family with low-delay AAC.

§

Mp4aLatm64

AAC audio transported with MPEG-4 LATM at a nominal 64 kbit/s.

§

Mp4aLatm56

AAC audio transported with MPEG-4 LATM at a nominal 56 kbit/s.

§

Mp4aLatm48

AAC audio transported with MPEG-4 LATM at a nominal 48 kbit/s.

§

Mp4aLatm32

AAC audio transported with MPEG-4 LATM at a nominal 32 kbit/s.

§

Mp4aLatm24

AAC audio transported with MPEG-4 LATM at a nominal 24 kbit/s.

§

Mp4aLatm

AAC audio transported with MPEG-4 LATM when the bit rate is negotiated elsewhere or unspecified.

§

Gsm

The RTP GSM 06.10 full-rate narrowband speech format. This is the interoperable RTP profile rather than a cellular bearer-mode selector.

§

ActiveVoice

A Cisco-defined narrowband ActiveVoice audio capability. The audited SCCP sources name it but do not establish a public encoding specification.

§

G726_32k

G.726 ADPCM narrowband speech encoded at 32 kbit/s.

§

G726_24k

G.726 ADPCM narrowband speech encoded at 24 kbit/s.

§

G726_16k

G.726 ADPCM narrowband speech encoded at 16 kbit/s.

§

G729AnnexB

A later SCCP identifier for G.729 Annex B silence suppression. It remains wire-distinct from the legacy G729B identifier.

§

Ilbc

iLBC packet-loss-resilient narrowband speech, normally using 20 ms or 30 ms frames.

§

Isac

iSAC adaptive wideband speech coding designed for variable IP-network conditions.

§

Opus

Opus interactive audio, supporting speech and full-band audio with adaptive bit rate.

§

Amr

Adaptive Multi-Rate narrowband cellular speech coding.

§

AmrWb

Adaptive Multi-Rate Wideband speech coding, also standardized as G.722.2.

§

H261

H.261 video for audiovisual services over constant-rate digital channels.

§

H263

Base H.263 low-bit-rate video coding.

§

H263Plus

H.263+ video, incorporating the optional enhancements standardized in H.263 version 2.

§

H264

Base H.264/AVC video capability.

§

H264Svc

The scalable-video-coding extension of H.264/AVC, allowing layered temporal, spatial, or quality streams.

§

T120

T.120 real-time data-conferencing traffic such as shared whiteboards and application data. It is a data capability, not a speech codec.

§

H224

H.224 low-rate data-link traffic used by applications such as H.281 far-end camera control.

§

T38Fax

T.38 real-time facsimile relay, transporting decoded fax data instead of modem audio.

§

Tote

A Cisco-defined TOTE payload capability with no public encoding semantics established here. Available SCCP sources disagree on whether to classify it as video or data.

§

H265

H.265/HEVC video, the successor to H.264/AVC with improved compression efficiency.

§

H264Uc

Cisco’s distinct H264_UC video capability. The audited sources do not define what the UC profile adds, so it is not treated as base H.264.

§

Xv150ModemRelay711u

Cisco X-V.150 modem relay associated with a G.711 µ-law voiceband-data path. Legacy chan-sccp sources identify it with modem traffic on VG224 gateways.

§

NseVbd711u

Cisco named-signaling-event mode for voiceband data carried over G.711 µ-law.

§

Xv150ModemRelay729a

Cisco X-V.150 modem relay associated with a G.729 Annex A voice path. Legacy chan-sccp sources identify it with modem traffic on VG224 gateways.

§

NseVbd729a

Cisco named-signaling-event mode for voiceband data associated with G.729 Annex A.

§

H264Fec

Cisco’s H.264 capability variant carrying forward-error-correction support. It is negotiated separately because the backend has no equivalent base-H.264 flag.

§

ClearChannel

A transparent clear-channel bearer that preserves arbitrary digital data without transcoding.

§

UniversalTranscoder

A Cisco media-resource capability representing a universal transcoder. It identifies a transformation service rather than a media encoding.

§

DtmfOutOfBandRfc2833

DTMF carried as RTP telephone-event packets using a dynamically negotiated payload type. The historical name references RFC 2833; RFC 4733 later replaced it.

§

DtmfPassthrough

Cisco’s proprietary RTP DTMF passthrough payload rather than audible in-band tones.

§

DtmfDynamic

A Cisco DTMF event capability whose RTP payload number is negotiated dynamically.

§

DtmfOutOfBand

Cisco out-of-band DTMF signaling, carrying digits separately from the voice samples.

§

DtmfInBandRfc2833

Cisco’s historical “in-band RFC 2833” event-payload mode. Despite the label, it represents packetized digit events rather than acoustic DTMF audio.

§

CfbTones

Conference-bridge tone events used by Cisco media resources. This is a control/event payload, not an audio codec.

§

DtmfNoAudio

DTMF event signaling without a companion audio stream.

§

V150ModemRelay

The V.150.1 modem-relay media mode, carrying demodulated modem data across an IP network.

§

V150Sprt

The V.150.1 Simple Packet Relay Transport used for reliable modem-relay data.

§

V150Sse

The V.150.1 State Signalling Events channel used to coordinate transitions among audio, VBD, and relay modes.

§

Unknown(u32)

Preserves an SCCP numeric value not recognized by this crate. Allows newer or vendor-specific values to round-trip without loss.

Implementations§

Source§

impl Codec

Source

pub const ALL_KNOWN: &'static [Self]

Source

pub const fn wire_value(self) -> u32

Source

pub const fn is_known(self) -> bool

Source§

impl Codec

Source

pub const fn skinny(self) -> u32

Backward-compatible name for the SCCP numeric value.

Source

pub const fn kind(self) -> CodecKind

Classifies this capability into its broad media family.

Source

pub const fn sample_rate(self) -> Option<u32>

Returns the nominal clock rate in hertz for supported audio codecs.

Non-audio, unrecognized, and codecs without a defined mapping return None.

Source

pub const fn rtp_payload_type(self) -> Option<u8>

Returns the codec’s default RTP payload type when statically assigned.

Dynamically assigned codecs return None and require negotiated payload metadata.

Trait Implementations§

Source§

impl Clone for Codec

Source§

fn clone(&self) -> Codec

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Codec

Source§

impl Debug for Codec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Codec

Source§

impl From<Codec> for u32

Source§

fn from(value: Codec) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Codec

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl Hash for Codec

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Codec

Source§

fn eq(&self, other: &Codec) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Codec

Auto Trait Implementations§

§

impl Freeze for Codec

§

impl RefUnwindSafe for Codec

§

impl Send for Codec

§

impl Sync for Codec

§

impl Unpin for Codec

§

impl UnsafeUnpin for Codec

§

impl UnwindSafe for Codec

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more