Crate opus_static_sys

Source

Structs§

OpusDRED
OpusDREDDecoder
OpusDecoder
OpusEncoder
OpusRepacketizer

Constants§

OPUS_ALLOC_FAIL
OPUS_APPLICATION_AUDIO
OPUS_APPLICATION_RESTRICTED_LOWDELAY
OPUS_APPLICATION_VOIP
OPUS_AUTO
OPUS_BAD_ARG
OPUS_BANDWIDTH_FULLBAND
OPUS_BANDWIDTH_MEDIUMBAND
OPUS_BANDWIDTH_NARROWBAND
OPUS_BANDWIDTH_SUPERWIDEBAND
OPUS_BANDWIDTH_WIDEBAND
OPUS_BITRATE_MAX
OPUS_BUFFER_TOO_SMALL
OPUS_FRAMESIZE_2_5_MS
OPUS_FRAMESIZE_5_MS
OPUS_FRAMESIZE_10_MS
OPUS_FRAMESIZE_20_MS
OPUS_FRAMESIZE_40_MS
OPUS_FRAMESIZE_60_MS
OPUS_FRAMESIZE_80_MS
OPUS_FRAMESIZE_100_MS
OPUS_FRAMESIZE_120_MS
OPUS_FRAMESIZE_ARG
OPUS_GET_APPLICATION_REQUEST
OPUS_GET_BANDWIDTH_REQUEST
OPUS_GET_BITRATE_REQUEST
OPUS_GET_COMPLEXITY_REQUEST
OPUS_GET_DRED_DURATION_REQUEST
OPUS_GET_DTX_REQUEST
OPUS_GET_EXPERT_FRAME_DURATION_REQUEST
OPUS_GET_FINAL_RANGE_REQUEST
OPUS_GET_FORCE_CHANNELS_REQUEST
OPUS_GET_GAIN_REQUEST
OPUS_GET_INBAND_FEC_REQUEST
OPUS_GET_IN_DTX_REQUEST
OPUS_GET_LAST_PACKET_DURATION_REQUEST
OPUS_GET_LOOKAHEAD_REQUEST
OPUS_GET_LSB_DEPTH_REQUEST
OPUS_GET_MAX_BANDWIDTH_REQUEST
OPUS_GET_PACKET_LOSS_PERC_REQUEST
OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST
OPUS_GET_PITCH_REQUEST
OPUS_GET_PREDICTION_DISABLED_REQUEST
OPUS_GET_SAMPLE_RATE_REQUEST
OPUS_GET_SIGNAL_REQUEST
OPUS_GET_VBR_CONSTRAINT_REQUEST
OPUS_GET_VBR_REQUEST
OPUS_INTERNAL_ERROR
OPUS_INVALID_PACKET
OPUS_INVALID_STATE
OPUS_OK
OPUS_RESET_STATE
OPUS_SET_APPLICATION_REQUEST
OPUS_SET_BANDWIDTH_REQUEST
OPUS_SET_BITRATE_REQUEST
OPUS_SET_COMPLEXITY_REQUEST
OPUS_SET_DNN_BLOB_REQUEST
OPUS_SET_DRED_DURATION_REQUEST
OPUS_SET_DTX_REQUEST
OPUS_SET_EXPERT_FRAME_DURATION_REQUEST
OPUS_SET_FORCE_CHANNELS_REQUEST
OPUS_SET_GAIN_REQUEST
OPUS_SET_INBAND_FEC_REQUEST
OPUS_SET_LSB_DEPTH_REQUEST
OPUS_SET_MAX_BANDWIDTH_REQUEST
OPUS_SET_PACKET_LOSS_PERC_REQUEST
OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST
OPUS_SET_PREDICTION_DISABLED_REQUEST
OPUS_SET_SIGNAL_REQUEST
OPUS_SET_VBR_CONSTRAINT_REQUEST
OPUS_SET_VBR_REQUEST
OPUS_SIGNAL_MUSIC
OPUS_SIGNAL_VOICE
OPUS_UNIMPLEMENTED

Functions§

opus_decode
Decode an Opus packet.
opus_decode24
Decode an Opus packet.
opus_decode_float
Decode an Opus packet with floating point output.
opus_decoder_create
Allocates and initializes a decoder state.
opus_decoder_ctl
Perform a CTL function on an Opus decoder. Generally the request and subsequent arguments are generated by a convenience macro.
opus_decoder_destroy
Frees an OpusDecoder allocated by opus_decoder_create().
opus_decoder_dred_decode
Decode audio from an Opus DRED packet with 16-bit output.
opus_decoder_dred_decode24
Decode audio from an Opus DRED packet with 24-bit output.
opus_decoder_dred_decode_float
Decode audio from an Opus DRED packet with floating point output.
opus_decoder_get_nb_samples
Gets the number of samples of an Opus packet.
opus_decoder_get_size
Gets the size of an OpusDecoder structure.
opus_decoder_init
Initializes a previously allocated decoder state. The state must be at least the size returned by opus_decoder_get_size(). This is intended for applications which use their own allocator instead of malloc. # See also
opus_dred_alloc
Allocates and initializes a DRED state.
opus_dred_decoder_create
Allocates and initializes an OpusDREDDecoder state.
opus_dred_decoder_ctl
Perform a CTL function on an Opus DRED decoder. Generally the request and subsequent arguments are generated by a convenience macro.
opus_dred_decoder_destroy
Frees an OpusDREDDecoder allocated by opus_dred_decoder_create().
opus_dred_decoder_get_size
Gets the size of an OpusDREDDecoder structure.
opus_dred_decoder_init
Initializes an OpusDREDDecoder state.
opus_dred_free
Frees an OpusDRED allocated by opus_dred_create().
opus_dred_get_size
Gets the size of an OpusDRED structure.
opus_dred_parse
Decode an Opus DRED packet.
opus_dred_process
Finish decoding an Opus DRED packet. The function only needs to be called if opus_dred_parse() was called with defer_processing=1. The source and destination will often be the same DRED state.
opus_encode
Encodes an Opus frame.
opus_encode24
Encodes an Opus frame.
opus_encode_float
Encodes an Opus frame from floating point input.
opus_encoder_create
Allocates and initializes an encoder state. There are three coding modes: OPUS_APPLICATION_VOIP gives best quality at a given bitrate for voice signals. It enhances the input signal by high-pass filtering and emphasizing formants and harmonics. Optionally it includes in-band forward error correction to protect against packet loss. Use this mode for typical VoIP applications. Because of the enhancement, even at high bitrates the output may sound different from the input. OPUS_APPLICATION_AUDIO gives best quality at a given bitrate for most non-voice signals like music. Use this mode for music and mixed (music/voice) content, broadcast, and applications requiring less than 15 ms of coding delay. OPUS_APPLICATION_RESTRICTED_LOWDELAY configures low-delay mode that disables the speech-optimized mode in exchange for slightly reduced delay. This mode can only be set on an newly initialized or freshly reset encoder because it changes the codec delay. This is useful when the caller knows that the speech-optimized modes will not be needed (use with caution).
opus_encoder_ctl
Perform a CTL function on an Opus encoder. Generally the request and subsequent arguments are generated by a convenience macro.
opus_encoder_destroy
Frees an OpusEncoder allocated by opus_encoder_create().
opus_encoder_get_size
Gets the size of an OpusEncoder structure.
opus_encoder_init
Initializes a previously allocated encoder state The memory pointed to by st must be at least the size returned by opus_encoder_get_size(). This is intended for applications which use their own allocator instead of malloc.
opus_get_version_string
Gets the libopus version string. Applications may look for the substring “-fixed” in the version string to determine whether they have a fixed-point or floating-point build at runtime.
opus_multistream_packet_pad
Pads a given Opus multi-stream packet to a larger size (possibly changing the TOC sequence).
opus_multistream_packet_unpad
Remove all padding from a given Opus multi-stream packet and rewrite the TOC sequence to minimize space usage.
opus_packet_get_bandwidth
Gets the bandwidth of an Opus packet.
opus_packet_get_nb_channels
Gets the number of channels from an Opus packet.
opus_packet_get_nb_frames
Gets the number of frames in an Opus packet.
opus_packet_get_nb_samples
Gets the number of samples of an Opus packet.
opus_packet_get_samples_per_frame
Gets the number of samples per frame from an Opus packet.
opus_packet_has_lbrr
Checks whether an Opus packet has LBRR.
opus_packet_pad
Pads a given Opus packet to a larger size (possibly changing the TOC sequence).
opus_packet_parse
Parse an opus packet into one or more frames. Opus_decode will perform this operation internally so most applications do not need to use this function. This function does not copy the frames, the returned pointers are pointers into the input packet.
opus_packet_unpad
Remove all padding from a given Opus packet and rewrite the TOC sequence to minimize space usage.
opus_pcm_soft_clip
Applies soft-clipping to bring a float signal within the [-1,1] range. If the signal is already in that range, nothing is done. If there are values outside of [-1,1], then the signal is clipped as smoothly as possible to both fit in the range and avoid creating excessive distortion in the process.
opus_repacketizer_cat
Add a packet to the current repacketizer state. This packet must match the configuration of any packets already submitted for repacketization since the last call to opus_repacketizer_init(). This means that it must have the same coding mode, audio bandwidth, frame size, and channel count. This can be checked in advance by examining the top 6 bits of the first byte of the packet, and ensuring they match the top 6 bits of the first byte of any previously submitted packet. The total duration of audio in the repacketizer state also must not exceed 120 ms, the maximum duration of a single packet, after adding this packet. The contents of the current repacketizer state can be extracted into new packets using opus_repacketizer_out() or opus_repacketizer_out_range(). In order to add a packet with a different configuration or to add more audio beyond 120 ms, you must clear the repacketizer state by calling opus_repacketizer_init(). If a packet is too large to add to the current repacketizer state, no part of it is added, even if it contains multiple frames, some of which might fit. If you wish to be able to add parts of such packets, you should first use another repacketizer to split the packet into pieces and add them individually.
opus_repacketizer_create
Allocates memory and initializes the new repacketizer with opus_repacketizer_init().
opus_repacketizer_destroy
Frees an OpusRepacketizer allocated by opus_repacketizer_create().
opus_repacketizer_get_nb_frames
Return the total number of frames contained in packet data submitted to the repacketizer state so far via opus_repacketizer_cat() since the last call to opus_repacketizer_init() or opus_repacketizer_create(). This defines the valid range of packets that can be extracted with opus_repacketizer_out_range() or opus_repacketizer_out().
opus_repacketizer_get_size
Gets the size of an OpusRepacketizer structure.
opus_repacketizer_init
(Re)initializes a previously allocated repacketizer state. The state must be at least the size returned by opus_repacketizer_get_size(). This can be used for applications which use their own allocator instead of malloc(). It must also be called to reset the queue of packets waiting to be repacketized, which is necessary if the maximum packet duration of 120 ms is reached or if you wish to submit packets with a different Opus configuration (coding mode, audio bandwidth, frame size, or channel count). Failure to do so will prevent a new packet from being added with opus_repacketizer_cat().
opus_repacketizer_out
Construct a new packet from data previously submitted to the repacketizer state via opus_repacketizer_cat(). This is a convenience routine that returns all the data submitted so far in a single packet. It is equivalent to calling @code opus_repacketizer_out_range(rp, 0, opus_repacketizer_get_nb_frames(rp), data, maxlen) @endcode # Arguments
opus_repacketizer_out_range
Construct a new packet from data previously submitted to the repacketizer state via opus_repacketizer_cat().
opus_strerror
Converts an opus error code into a human readable string.

Type Aliases§

opus_int8
opus_int16
opus_int32
opus_int64
opus_uint8
opus_uint16
opus_uint32
opus_uint64