| Modifier and Type | Class and Description |
|---|---|
| public static class | OpusProjection.
Contains the function pointers loaded from |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||||
|---|---|---|---|---|---|---|
| public static long | nopus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application, long error)
Unsafe version of: | |||||
| public static int | nopus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application)
Unsafe version of: | |||||
| public static int | nopus_projection_decode(long st, long data, int
number of bytes in payload len, long pcm, int frame_size, int decode_fec)Unsafe version of: | |||||
| public static int | nopus_projection_decode_float(long st, long data, int
number of bytes in payload len, long pcm, int frame_size, int decode_fec)Unsafe version of: | |||||
| public static long | nopus_projection_decoder_create(int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int
the size in bytes if the demixing matrix demixing_matrix_size, long error)Unsafe version of: | |||||
| public static int | nopus_projection_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int
the size in bytes if the demixing matrix demixing_matrix_size)Unsafe version of: | |||||
| public static int | nopus_projection_encode(long st, long pcm, int frame_size, long data, int
size of the allocated memory for the output payload. This may be used to impose an upper limit on the instant bitrate, but should not be used as
the only bitrate control. Use max_data_bytes)SET_BITRATE_REQUEST to control the bitrate.Unsafe version of: | |||||
| public static int | nopus_projection_encode_float(long st, long pcm, int frame_size, long data, int
size of the allocated memory for the output payload. This may be used to impose an upper limit on the instant bitrate, but should not be used as
the only bitrate control. Use max_data_bytes)SET_BITRATE_REQUEST to control the bitrate.Unsafe version of: | |||||
| public static long | opus_projection_ambisonics_encoder_create(int
sampling rate of the input signal (in Hz). One of: Fs, int
number of channels in the input signal. This must be at most 255. It may be greater than the number of coded channels ( channels, int streams +
coupled_streams).the mapping family to use for selecting the appropriate projection mapping_family, IntBuffer the total number of streams that will be encoded from the input streams, IntBuffer number of coupled (2 channel) streams to encode that will be encoded from the input coupled_streams, int the target encoder application application, IntBuffer returns error)OK on success, or a negative error code on failureAllocates and initializes a projection encoder state. | |||||
| public static int | Returns: the size in bytes on success, or a negative error codethe total number of input channels to encode. This must be no more than 255. channels, int the mapping family to use for selecting the appropriate projection mapping_family)Gets the size of an | |||||
| public static int | Returns: OK on success, or a negative error code on failureprojection encoder state to initialize st, int sampling rate of the input signal (in Hz). One of: Fs, int
number of channels in the input signal. This must be at most 255. It may be greater than the number of coded channels ( channels, int mapping_family, IntBuffer streams +
coupled_streams).the total number of streams that will be encoded from the input streams, IntBuffer number of coupled (2 channel) streams to encode that will be encoded from the input. Additionally, the total number of encoded channels
( coupled_streams, int streams + coupled_streams) must be no more than the number of input channels.the target encoder application application)Initialize a previously allocated projection encoder state. | |||||
| public static int | Returns: number of decoded samples on success or a negative error code on failureprojection decoder state st, ByteBuffer input payload (Use a data, ShortBuffer NULL pointer to indicate packet loss)output signal, with interleaved samples. This must contain room for pcm, int frame_size*channels samples.number of samples per channel of available space in frame_size, int pcm.
If this is less than the maximum packet duration (120ms; 5760 for 48kHz), this function will not be capable of decoding some packets. In the case
of PLC ( flag (0 or 1) to request that any in-band forward error correction data be decoded. If no such data is available, the frame is decoded as if it
were lost. decode_fec)Decode a projection Opus packet. | |||||
| public static int | Returns: number of decoded samples on success or a negative error code on failureprojection decoder state st, ByteBuffer input payload. Use a data, FloatBuffer NULL pointer to indicate packet lossoutput signal, with interleaved samples. (This must contain room for pcm, int frame_size*channels samples.)number of samples per channel of available space in pcm.
frame_size, int If this is less than the maximum packet duration (120ms; 5760 for 48kHz), this function will not be capable of decoding some packets. In the case
of PLC ( flag (0 or 1) to request that any in-band forward error correction data be decoded. If no such data is available, the frame is decoded as if it
were lost. decode_fec)Decode a projection Opus packet with floating point output. | |||||
| public static long | opus_projection_decoder_create(int
sampling rate of input signal (Hz). One of: Fs, int
number of channels to output channels, int the total number of streams coded in the input. This must be no more than 255. streams, int number streams to decode as coupled (2 channel) streams. This must be no larger than the total number of streams. Additionally, The total number of
coded channels ( coupled_streams, ByteBuffer streams + coupled_streams) must be no more than 255.demixing matrix that maps from coded channels to output channels demixing_matrix, IntBuffer returns error)OK on success, or a negative error code on failureAllocates and initializes a projection decoder state. | |||||
| private static int | opus_projection_decoder_ctl(long
projection decoder state st)Performs a CTL function on an projection Opus decoder. | |||||
| public static int | opus_projection_decoder_ctl(long
projection decoder state st, int CTL request request)Performs a CTL function on a projection Opus decoder. | |||||
| public static int | opus_projection_decoder_ctl(long
projection decoder state st, Opus.CTL request requestPerforms a CTL function on a projection Opus decoder. | |||||
| public static int | opus_projection_decoder_destroy(long
projection decoder state to be freed st)Frees an | |||||
| public static int | Returns: the size in bytes on success, or a negative error code on failurethe total number of output channels. This must be no more than 255. channels, int the total number of streams coded in the input streams, int number streams to decode as coupled (2 channel) streams. This must be no larger than the total number of streams. Additionally, The total number of
coded channels ( coupled_streams)streams + coupled_streams) must be no more than 255.Gets the size of an | |||||
| public static int | Returns: OK on success, or a negative error code on failureprojection decoder state to initialize st, int sampling rate of input signal (Hz). One of: Fs, int
number of channels to output. This mustbe at most 255. It may be different from the number of coded channels ( channels, int stream + coupled_streams).the total number of streams coded in the input. This must be no more than 255. streams, int number streams to decode as coupled (2 channel) streams. This must be no larger than the total number of streams. Additionally, The total number of
coded channels ( coupled_streams, ByteBuffer streams + coupled_streams) must be no more than 255.demixing matrix that maps from coded channels to output channels demixing_matrix)Initialize a previously allocated projection decoder state object. | |||||
| public static int | Returns: the length of the encoded packet (in bytes) on success or a negative error code on failureprojection encoder state st, ShortBuffer the input signal as interleaved samples. This must contain pcm, int frame_size*channels samples.number of samples per channel in the input signal. This must be an Opus frame size for the encoder's sampling rate. For example, at 48 kHz the
permitted values are 120, 240, 480, 960, 1920, and 2880. Passing in a duration of less than 10 ms (480 samples at 48 kHz) will prevent the encoder
from using the LPC or hybrid modes. frame_size, ByteBuffer output payload. This must contain storage for at data)max_data_bytes.Encodes a projection Opus frame. | |||||
| public static int | Returns: the length of the encoded packet (in bytes) on success or a negative error code on failureprojection encoder state st, FloatBuffer the input signal as interleaved samples with a normal range of pcm, int +/-1.0. Samples with a range beyond +/-1.0 are supported but will be
clipped by decoders using the integer API and should only be used if it is known that the far end supports extended dynamic range. This must
contain frame_size*channels samples.number of samples per channel in the input signal. This must be an Opus frame size for the encoder's sampling rate. For example, at 48 kHz the
permitted values are 120, 240, 480, 960, 1920, and 2880. Passing in a duration of less than 10 ms (480 samples at 48 kHz) will prevent the encoder
from using the LPC or hybrid modes. frame_size, ByteBuffer output payload. This must contain storage for at data)max_data_bytes.Encodes a projection Opus frame from floating point input. | |||||
| private static int | opus_projection_encoder_ctl(long
projection encoder state st)Performs a CTL function on an projection Opus encoder. | |||||
| public static int | opus_projection_encoder_ctl(long
projection encoder state st, int CTL request request)Performs a CTL function on an projection Opus encoder. | |||||
| public static int | opus_projection_encoder_ctl(long
projection encoder state st, Opus.CTL request requestPerforms a CTL function on an projection Opus encoder. | |||||
| public static int | opus_projection_encoder_destroy(long
projection encoder state to be freed st)Frees an | |||||
| public static Opus. | OPUS_PROJECTION_GET_DEMIXING_MATRIX(ByteBuffer
returns the demixing matrix to the supplied pointer location. matrix)Copies the demixing matrix to the supplied pointer location. | |||||
| public static Opus. | Returns: the gain (in dB. S7.8-format) of the demixing matrix.Gets the gain (in dB. | |||||
| public static Opus. | Returns: the size in bytes of the demixing matrix.Gets the size in bytes of the demixing matrix from the encoder. |
| OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST | back to summary |
|---|---|
| public static final int OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST Projection CTLs Enum values: | |
| OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST | back to summary |
|---|---|
| public static final int OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST Projection CTLs Enum values: | |
| OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST | back to summary |
|---|---|
| public static final int OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST Projection CTLs Enum values: | |
| OpusProjection | back to summary |
|---|---|
| protected OpusProjection() | |
| nopus_projection_ambisonics_encoder_create | back to summary |
|---|---|
| public static long nopus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application, long error) Unsafe version of: | |
| nopus_projection_ambisonics_encoder_init | back to summary |
|---|---|
| public static int nopus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application) Unsafe version of: | |
| nopus_projection_decode | back to summary |
|---|---|
| public static int nopus_projection_decode(long st, long data, int len, long pcm, int frame_size, int decode_fec) Unsafe version of:
| |
| nopus_projection_decode_float | back to summary |
|---|---|
| public static int nopus_projection_decode_float(long st, long data, int len, long pcm, int frame_size, int decode_fec) Unsafe version of:
| |
| nopus_projection_decoder_create | back to summary |
|---|---|
| public static long nopus_projection_decoder_create(int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int demixing_matrix_size, long error) Unsafe version of:
| |
| nopus_projection_decoder_init | back to summary |
|---|---|
| public static int nopus_projection_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int demixing_matrix_size) Unsafe version of:
| |
| nopus_projection_encode | back to summary |
|---|---|
| public static int nopus_projection_encode(long st, long pcm, int frame_size, long data, int max_data_bytes) Unsafe version of:
| |
| nopus_projection_encode_float | back to summary |
|---|---|
| public static int nopus_projection_encode_float(long st, long pcm, int frame_size, long data, int max_data_bytes) Unsafe version of:
| |
| opus_projection_ambisonics_encoder_create | back to summary | |||||
|---|---|---|---|---|---|---|
| public static long opus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, int application, IntBuffer error) Allocates and initializes a projection encoder state. Call
| ||||||
| opus_projection_ambisonics_encoder_get_size | back to summary |
|---|---|
| public static int opus_projection_ambisonics_encoder_get_size(int channels, int mapping_family) Gets the size of an
| |
| opus_projection_ambisonics_encoder_init | back to summary | |||||
|---|---|---|---|---|---|---|
| public static int opus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, int application) Initialize a previously allocated projection encoder state. The memory pointed to by To reset a previously initialized state, use the
| ||||||
| opus_projection_decode | back to summary |
|---|---|
| public static int opus_projection_decode(long st, ByteBuffer data, ShortBuffer pcm, int frame_size, int decode_fec) Decode a projection Opus packet.
| |
| opus_projection_decode_float | back to summary |
|---|---|
| public static int opus_projection_decode_float(long st, ByteBuffer data, FloatBuffer pcm, int frame_size, int decode_fec) Decode a projection Opus packet with floating point output.
| |
| opus_projection_decoder_create | back to summary | |||||
|---|---|---|---|---|---|---|
| public static long opus_projection_decoder_create(int Fs, int channels, int streams, int coupled_streams, ByteBuffer demixing_matrix, IntBuffer error) Allocates and initializes a projection decoder state. Call
| ||||||
| opus_projection_decoder_ctl | back to summary |
|---|---|
| private static int opus_projection_decoder_ctl(long st) Performs a CTL function on an projection Opus decoder.
| |
| opus_projection_decoder_ctl | back to summary |
|---|---|
| public static int opus_projection_decoder_ctl(long st, int request) Performs a CTL function on a projection Opus decoder.
| |
| opus_projection_decoder_ctl | back to summary |
|---|---|
| public static int opus_projection_decoder_ctl(long st, Opus. Performs a CTL function on a projection Opus decoder.
| |
| opus_projection_decoder_destroy | back to summary |
|---|---|
| public static int opus_projection_decoder_destroy(long st) Frees an
| |
| opus_projection_decoder_get_size | back to summary |
|---|---|
| public static int opus_projection_decoder_get_size(int channels, int streams, int coupled_streams) Gets the size of an
| |
| opus_projection_decoder_init | back to summary | |||||
|---|---|---|---|---|---|---|
| public static int opus_projection_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, ByteBuffer demixing_matrix) Initialize a previously allocated projection decoder state object. The memory pointed to by To reset a previously initialized state, use the
| ||||||
| opus_projection_encode | back to summary |
|---|---|
| public static int opus_projection_encode(long st, ShortBuffer pcm, int frame_size, ByteBuffer data) Encodes a projection Opus frame.
| |
| opus_projection_encode_float | back to summary |
|---|---|
| public static int opus_projection_encode_float(long st, FloatBuffer pcm, int frame_size, ByteBuffer data) Encodes a projection Opus frame from floating point input.
| |
| opus_projection_encoder_ctl | back to summary |
|---|---|
| private static int opus_projection_encoder_ctl(long st) Performs a CTL function on an projection Opus encoder.
| |
| opus_projection_encoder_ctl | back to summary |
|---|---|
| public static int opus_projection_encoder_ctl(long st, int request) Performs a CTL function on an projection Opus encoder.
| |
| opus_projection_encoder_ctl | back to summary |
|---|---|
| public static int opus_projection_encoder_ctl(long st, Opus. Performs a CTL function on an projection Opus encoder.
| |
| opus_projection_encoder_destroy | back to summary |
|---|---|
| public static int opus_projection_encoder_destroy(long st) Frees an
| |
| OPUS_PROJECTION_GET_DEMIXING_MATRIX | back to summary |
|---|---|
| public static Opus. Copies the demixing matrix to the supplied pointer location.
| |
| OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN | back to summary |
|---|---|
| public static Opus. Gets the gain (in dB. S7.8-format) of the demixing matrix from the encoder.
| |
| OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE | back to summary |
|---|---|
| public static Opus. Gets the size in bytes of the demixing matrix from the encoder.
| |
Opus.getLibrary().
| Modifier and Type | Field and Description |
|---|---|
| public static final long | projection_ambisonics_encoder_create
Function address. |
| public static final long | projection_ambisonics_encoder_get_size
Function address. |
| public static final long | projection_ambisonics_encoder_init
Function address. |
| public static final long | projection_decode
Function address. |
| public static final long | projection_decode_float
Function address. |
| public static final long | projection_decoder_create
Function address. |
| public static final long | projection_decoder_ctl
Function address. |
| public static final long | projection_decoder_destroy
Function address. |
| public static final long | projection_decoder_get_size
Function address. |
| public static final long | projection_decoder_init
Function address. |
| public static final long | projection_encode
Function address. |
| public static final long | projection_encode_float
Function address. |
| public static final long | projection_encoder_ctl
Function address. |
| public static final long | projection_encoder_destroy
Function address. |
| Access | Constructor and Description |
|---|---|
| private |
| projection_ambisonics_encoder_create | back to summary |
|---|---|
| public static final long projection_ambisonics_encoder_create Function address. | |
| projection_ambisonics_encoder_get_size | back to summary |
|---|---|
| public static final long projection_ambisonics_encoder_get_size Function address. | |
| projection_ambisonics_encoder_init | back to summary |
|---|---|
| public static final long projection_ambisonics_encoder_init Function address. | |
| projection_decode | back to summary |
|---|---|
| public static final long projection_decode Function address. | |
| projection_decode_float | back to summary |
|---|---|
| public static final long projection_decode_float Function address. | |
| projection_decoder_create | back to summary |
|---|---|
| public static final long projection_decoder_create Function address. | |
| projection_decoder_ctl | back to summary |
|---|---|
| public static final long projection_decoder_ctl Function address. | |
| projection_decoder_destroy | back to summary |
|---|---|
| public static final long projection_decoder_destroy Function address. | |
| projection_decoder_get_size | back to summary |
|---|---|
| public static final long projection_decoder_get_size Function address. | |
| projection_decoder_init | back to summary |
|---|---|
| public static final long projection_decoder_init Function address. | |
| projection_encode | back to summary |
|---|---|
| public static final long projection_encode Function address. | |
| projection_encode_float | back to summary |
|---|---|
| public static final long projection_encode_float Function address. | |
| projection_encoder_ctl | back to summary |
|---|---|
| public static final long projection_encoder_ctl Function address. | |
| projection_encoder_destroy | back to summary |
|---|---|
| public static final long projection_encoder_destroy Function address. | |
| Functions | back to summary |
|---|---|
| private Functions() | |