Package org.lwjgl.util.opus
Class OpusProjection
java.lang.Object
org.lwjgl.util.opus.OpusProjection
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromOpus.getLibrary(). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic longnopus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application, long error) OpusProjectionEncoder * opus_projection_ambisonics_encoder_create(opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, int application, int * error)static intnopus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application) int opus_projection_ambisonics_encoder_init(OpusProjectionEncoder * st, opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, int application)static intnopus_projection_decode(long st, long data, int len, long pcm, int frame_size, int decode_fec) int opus_projection_decode(OpusProjectionDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec)static intnopus_projection_decode_float(long st, long data, int len, long pcm, int frame_size, int decode_fec) int opus_projection_decode_float(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec)static longnopus_projection_decoder_create(int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int demixing_matrix_size, long error) OpusProjectionDecoder * opus_projection_decoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char * demixing_matrix, opus_int32 demixing_matrix_size, int * error)static intnopus_projection_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int demixing_matrix_size) int opus_projection_decoder_init(OpusProjectionDecoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char * demixing_matrix, opus_int32 demixing_matrix_size)static intnopus_projection_encode(long st, long pcm, int frame_size, long data, int max_data_bytes) int opus_projection_encode(OpusProjectionEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)static intnopus_projection_encode_float(long st, long pcm, int frame_size, long data, int max_data_bytes) int opus_projection_encode_float(OpusProjectionEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)static longopus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, int application, @Nullable IntBuffer error) OpusProjectionEncoder * opus_projection_ambisonics_encoder_create(opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, int application, int * error)static intopus_projection_ambisonics_encoder_get_size(int channels, int mapping_family) opus_int32 opus_projection_ambisonics_encoder_get_size(int channels, int mapping_family)static intopus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, int application) int opus_projection_ambisonics_encoder_init(OpusProjectionEncoder * st, opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, int application)static intopus_projection_decode(long st, @Nullable ByteBuffer data, ShortBuffer pcm, int frame_size, int decode_fec) int opus_projection_decode(OpusProjectionDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec)static intopus_projection_decode_float(long st, @Nullable ByteBuffer data, FloatBuffer pcm, int frame_size, int decode_fec) int opus_projection_decode_float(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec)static longopus_projection_decoder_create(int Fs, int channels, int streams, int coupled_streams, ByteBuffer demixing_matrix, @Nullable IntBuffer error) OpusProjectionDecoder * opus_projection_decoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char * demixing_matrix, opus_int32 demixing_matrix_size, int * error)static intopus_projection_decoder_ctl(long st, int request) Performs a CTL function on a projection Opus decoder.static intopus_projection_decoder_ctl(long st, Opus.CTLRequest request) Performs a CTL function on a projection Opus decoder.static intopus_projection_decoder_destroy(long st) int opus_projection_decoder_destroy(OpusProjectionDecoder * st)static intopus_projection_decoder_get_size(int channels, int streams, int coupled_streams) opus_int32 opus_projection_decoder_get_size(int channels, int streams, int coupled_streams)static intopus_projection_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, ByteBuffer demixing_matrix) int opus_projection_decoder_init(OpusProjectionDecoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char * demixing_matrix, opus_int32 demixing_matrix_size)static intopus_projection_encode(long st, ShortBuffer pcm, int frame_size, ByteBuffer data) int opus_projection_encode(OpusProjectionEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)static intopus_projection_encode_float(long st, FloatBuffer pcm, int frame_size, ByteBuffer data) int opus_projection_encode_float(OpusProjectionEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)static intopus_projection_encoder_ctl(long st, int request) Performs a CTL function on an projection Opus encoder.static intopus_projection_encoder_ctl(long st, Opus.CTLRequest request) Performs a CTL function on an projection Opus encoder.static intopus_projection_encoder_destroy(long st) int opus_projection_encoder_destroy(OpusProjectionEncoder * st)static Opus.CTLRequestCopies the demixing matrix to the supplied pointer location.static Opus.CTLRequestGets the gain (in dB.static Opus.CTLRequestGets the size in bytes of the demixing matrix from the encoder.
-
Field Details
-
OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST
public static final int OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST- See Also:
-
OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST
public static final int OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST- See Also:
-
OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST
public static final int OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST- See Also:
-
-
Method Details
-
opus_projection_ambisonics_encoder_get_size
public static int opus_projection_ambisonics_encoder_get_size(int channels, int mapping_family) opus_int32 opus_projection_ambisonics_encoder_get_size(int channels, int mapping_family) -
nopus_projection_ambisonics_encoder_create
public static long nopus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application, long error) OpusProjectionEncoder * opus_projection_ambisonics_encoder_create(opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, int application, int * error) -
opus_projection_ambisonics_encoder_create
public static long opus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, int application, @Nullable IntBuffer error) OpusProjectionEncoder * opus_projection_ambisonics_encoder_create(opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, int application, int * error) -
nopus_projection_ambisonics_encoder_init
public static int nopus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application) int opus_projection_ambisonics_encoder_init(OpusProjectionEncoder * st, opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, int application) -
opus_projection_ambisonics_encoder_init
public static int opus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, int application) int opus_projection_ambisonics_encoder_init(OpusProjectionEncoder * st, opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, int application) -
nopus_projection_encode
public static int nopus_projection_encode(long st, long pcm, int frame_size, long data, int max_data_bytes) int opus_projection_encode(OpusProjectionEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes) -
opus_projection_encode
int opus_projection_encode(OpusProjectionEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes) -
nopus_projection_encode_float
public static int nopus_projection_encode_float(long st, long pcm, int frame_size, long data, int max_data_bytes) int opus_projection_encode_float(OpusProjectionEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes) -
opus_projection_encode_float
public static int opus_projection_encode_float(long st, FloatBuffer pcm, int frame_size, ByteBuffer data) int opus_projection_encode_float(OpusProjectionEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes) -
opus_projection_encoder_destroy
public static int opus_projection_encoder_destroy(long st) int opus_projection_encoder_destroy(OpusProjectionEncoder * st) -
opus_projection_decoder_get_size
public static int opus_projection_decoder_get_size(int channels, int streams, int coupled_streams) opus_int32 opus_projection_decoder_get_size(int channels, int streams, int coupled_streams) -
nopus_projection_decoder_create
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) OpusProjectionDecoder * opus_projection_decoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char * demixing_matrix, opus_int32 demixing_matrix_size, int * error) -
opus_projection_decoder_create
public static long opus_projection_decoder_create(int Fs, int channels, int streams, int coupled_streams, ByteBuffer demixing_matrix, @Nullable IntBuffer error) OpusProjectionDecoder * opus_projection_decoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char * demixing_matrix, opus_int32 demixing_matrix_size, int * error) -
nopus_projection_decoder_init
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) int opus_projection_decoder_init(OpusProjectionDecoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char * demixing_matrix, opus_int32 demixing_matrix_size) -
opus_projection_decoder_init
public static int opus_projection_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, ByteBuffer demixing_matrix) int opus_projection_decoder_init(OpusProjectionDecoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char * demixing_matrix, opus_int32 demixing_matrix_size) -
nopus_projection_decode
public static int nopus_projection_decode(long st, long data, int len, long pcm, int frame_size, int decode_fec) int opus_projection_decode(OpusProjectionDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec) -
opus_projection_decode
public static int opus_projection_decode(long st, @Nullable ByteBuffer data, ShortBuffer pcm, int frame_size, int decode_fec) int opus_projection_decode(OpusProjectionDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec) -
nopus_projection_decode_float
public static int nopus_projection_decode_float(long st, long data, int len, long pcm, int frame_size, int decode_fec) int opus_projection_decode_float(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec) -
opus_projection_decode_float
public static int opus_projection_decode_float(long st, @Nullable ByteBuffer data, FloatBuffer pcm, int frame_size, int decode_fec) int opus_projection_decode_float(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec) -
opus_projection_decoder_destroy
public static int opus_projection_decoder_destroy(long st) int opus_projection_decoder_destroy(OpusProjectionDecoder * st) -
opus_projection_encoder_ctl
public static int opus_projection_encoder_ctl(long st, int request) Performs a CTL function on an projection Opus encoder.- Parameters:
st- projection encoder staterequest- CTL request
-
opus_projection_encoder_ctl
Performs a CTL function on an projection Opus encoder.- Parameters:
st- projection encoder staterequest- CTL request
-
opus_projection_decoder_ctl
public static int opus_projection_decoder_ctl(long st, int request) Performs a CTL function on a projection Opus decoder.- Parameters:
st- projection decoder staterequest- CTL request
-
opus_projection_decoder_ctl
Performs a CTL function on a projection Opus decoder.- Parameters:
st- projection decoder staterequest- CTL request
-
OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN
Gets the gain (in dB. S7.8-format) of the demixing matrix from the encoder.- Returns:
- the gain (in dB. S7.8-format) of the demixing matrix.
-
OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE
Gets the size in bytes of the demixing matrix from the encoder.- Returns:
- the size in bytes of the demixing matrix.
-
OPUS_PROJECTION_GET_DEMIXING_MATRIX
Copies the demixing matrix to the supplied pointer location.- Parameters:
matrix- returns the demixing matrix to the supplied pointer location.
-