Package org.lwjgl.util.opus
Class OpusCustom
java.lang.Object
org.lwjgl.util.opus.OpusCustom
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromOpus.getLibrary(). -
Method Summary
Modifier and TypeMethodDescriptionstatic intnopus_custom_decode(long st, long data, int len, long pcm, int frame_size) int opus_custom_decode(OpusCustomDecoder * st, unsigned char const * data, int len, opus_int16 * pcm, int frame_size)static intnopus_custom_decode_float(long st, long data, int len, long pcm, int frame_size) int opus_custom_decode_float(OpusCustomDecoder * st, unsigned char const * data, int len, float * pcm, int frame_size)static longnopus_custom_decoder_create(long mode, int channels, long error) OpusCustomDecoder * opus_custom_decoder_create(OpusCustomMode const * mode, int channels, int * error)static intnopus_custom_encode(long st, long pcm, int frame_size, long compressed, int maxCompressedBytes) int opus_custom_encode(OpusCustomEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * compressed, int maxCompressedBytes)static intnopus_custom_encode_float(long st, long pcm, int frame_size, long compressed, int maxCompressedBytes) int opus_custom_encode_float(OpusCustomEncoder * st, float const * pcm, int frame_size, unsigned char * compressed, int maxCompressedBytes)static longnopus_custom_encoder_create(long mode, int channels, long error) OpusCustomEncoder * opus_custom_encoder_create(OpusCustomMode const * mode, int channels, int * error)static longnopus_custom_mode_create(int Fs, int frame_size, long error) OpusCustomMode * opus_custom_mode_create(opus_int32 Fs, int frame_size, int * error)static intopus_custom_decode(long st, @Nullable ByteBuffer data, ShortBuffer pcm, int frame_size) int opus_custom_decode(OpusCustomDecoder * st, unsigned char const * data, int len, opus_int16 * pcm, int frame_size)static intopus_custom_decode_float(long st, @Nullable ByteBuffer data, FloatBuffer pcm, int frame_size) int opus_custom_decode_float(OpusCustomDecoder * st, unsigned char const * data, int len, float * pcm, int frame_size)static longopus_custom_decoder_create(long mode, int channels, @Nullable IntBuffer error) OpusCustomDecoder * opus_custom_decoder_create(OpusCustomMode const * mode, int channels, int * error)static intopus_custom_decoder_ctl(long st, int request) Performs a CTL function on an Opus custom decoder.static intopus_custom_decoder_ctl(long st, Opus.CTLRequest request) Performs a CTL function on an Opus custom decoder.static voidopus_custom_decoder_destroy(long st) void opus_custom_decoder_destroy(OpusCustomDecoder * st)static intopus_custom_decoder_get_size(long mode, int channels) int opus_custom_decoder_get_size(OpusCustomMode const * mode, int channels)static intopus_custom_decoder_init(long st, long mode, int channels) int opus_custom_decoder_init(OpusCustomDecoder * st, OpusCustomMode const * mode, int channels)static intopus_custom_encode(long st, ShortBuffer pcm, int frame_size, ByteBuffer compressed) int opus_custom_encode(OpusCustomEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * compressed, int maxCompressedBytes)static intopus_custom_encode_float(long st, FloatBuffer pcm, int frame_size, ByteBuffer compressed) int opus_custom_encode_float(OpusCustomEncoder * st, float const * pcm, int frame_size, unsigned char * compressed, int maxCompressedBytes)static longopus_custom_encoder_create(long mode, int channels, @Nullable IntBuffer error) OpusCustomEncoder * opus_custom_encoder_create(OpusCustomMode const * mode, int channels, int * error)static intopus_custom_encoder_ctl(long st, int request) Performs a CTL function on an Opus custom encoder.static intopus_custom_encoder_ctl(long st, Opus.CTLRequest request) Performs a CTL function on an Opus custom encoder.static voidopus_custom_encoder_destroy(long st) void opus_custom_encoder_destroy(OpusCustomEncoder * st)static intopus_custom_encoder_get_size(long mode, int channels) int opus_custom_encoder_get_size(OpusCustomMode const * mode, int channels)static intopus_custom_encoder_init(long st, long mode, int channels) int opus_custom_encoder_init(OpusCustomEncoder * st, OpusCustomMode const * mode, int channels)static longopus_custom_mode_create(int Fs, int frame_size, @Nullable IntBuffer error) OpusCustomMode * opus_custom_mode_create(opus_int32 Fs, int frame_size, int * error)static voidopus_custom_mode_destroy(long mode) void opus_custom_mode_destroy(OpusCustomMode * mode)
-
Method Details
-
nopus_custom_mode_create
public static long nopus_custom_mode_create(int Fs, int frame_size, long error) OpusCustomMode * opus_custom_mode_create(opus_int32 Fs, int frame_size, int * error) -
opus_custom_mode_create
OpusCustomMode * opus_custom_mode_create(opus_int32 Fs, int frame_size, int * error) -
opus_custom_mode_destroy
public static void opus_custom_mode_destroy(long mode) void opus_custom_mode_destroy(OpusCustomMode * mode) -
opus_custom_encoder_get_size
public static int opus_custom_encoder_get_size(long mode, int channels) int opus_custom_encoder_get_size(OpusCustomMode const * mode, int channels) -
opus_custom_encoder_init
public static int opus_custom_encoder_init(long st, long mode, int channels) int opus_custom_encoder_init(OpusCustomEncoder * st, OpusCustomMode const * mode, int channels) -
nopus_custom_encoder_create
public static long nopus_custom_encoder_create(long mode, int channels, long error) OpusCustomEncoder * opus_custom_encoder_create(OpusCustomMode const * mode, int channels, int * error) -
opus_custom_encoder_create
OpusCustomEncoder * opus_custom_encoder_create(OpusCustomMode const * mode, int channels, int * error) -
opus_custom_encoder_destroy
public static void opus_custom_encoder_destroy(long st) void opus_custom_encoder_destroy(OpusCustomEncoder * st) -
nopus_custom_encode_float
public static int nopus_custom_encode_float(long st, long pcm, int frame_size, long compressed, int maxCompressedBytes) int opus_custom_encode_float(OpusCustomEncoder * st, float const * pcm, int frame_size, unsigned char * compressed, int maxCompressedBytes) -
opus_custom_encode_float
public static int opus_custom_encode_float(long st, FloatBuffer pcm, int frame_size, ByteBuffer compressed) int opus_custom_encode_float(OpusCustomEncoder * st, float const * pcm, int frame_size, unsigned char * compressed, int maxCompressedBytes) -
nopus_custom_encode
public static int nopus_custom_encode(long st, long pcm, int frame_size, long compressed, int maxCompressedBytes) int opus_custom_encode(OpusCustomEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * compressed, int maxCompressedBytes) -
opus_custom_encode
public static int opus_custom_encode(long st, ShortBuffer pcm, int frame_size, ByteBuffer compressed) int opus_custom_encode(OpusCustomEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * compressed, int maxCompressedBytes) -
opus_custom_decoder_get_size
public static int opus_custom_decoder_get_size(long mode, int channels) int opus_custom_decoder_get_size(OpusCustomMode const * mode, int channels) -
opus_custom_decoder_init
public static int opus_custom_decoder_init(long st, long mode, int channels) int opus_custom_decoder_init(OpusCustomDecoder * st, OpusCustomMode const * mode, int channels) -
nopus_custom_decoder_create
public static long nopus_custom_decoder_create(long mode, int channels, long error) OpusCustomDecoder * opus_custom_decoder_create(OpusCustomMode const * mode, int channels, int * error) -
opus_custom_decoder_create
OpusCustomDecoder * opus_custom_decoder_create(OpusCustomMode const * mode, int channels, int * error) -
opus_custom_decoder_destroy
public static void opus_custom_decoder_destroy(long st) void opus_custom_decoder_destroy(OpusCustomDecoder * st) -
nopus_custom_decode_float
public static int nopus_custom_decode_float(long st, long data, int len, long pcm, int frame_size) int opus_custom_decode_float(OpusCustomDecoder * st, unsigned char const * data, int len, float * pcm, int frame_size) -
opus_custom_decode_float
public static int opus_custom_decode_float(long st, @Nullable ByteBuffer data, FloatBuffer pcm, int frame_size) int opus_custom_decode_float(OpusCustomDecoder * st, unsigned char const * data, int len, float * pcm, int frame_size) -
nopus_custom_decode
public static int nopus_custom_decode(long st, long data, int len, long pcm, int frame_size) int opus_custom_decode(OpusCustomDecoder * st, unsigned char const * data, int len, opus_int16 * pcm, int frame_size) -
opus_custom_decode
public static int opus_custom_decode(long st, @Nullable ByteBuffer data, ShortBuffer pcm, int frame_size) int opus_custom_decode(OpusCustomDecoder * st, unsigned char const * data, int len, opus_int16 * pcm, int frame_size) -
opus_custom_encoder_ctl
public static int opus_custom_encoder_ctl(long st, int request) Performs a CTL function on an Opus custom encoder.- Parameters:
st- encoder staterequest- CTL request
-
opus_custom_encoder_ctl
Performs a CTL function on an Opus custom encoder.- Parameters:
st- encoder staterequest- CTL request
-
opus_custom_decoder_ctl
public static int opus_custom_decoder_ctl(long st, int request) Performs a CTL function on an Opus custom decoder.- Parameters:
st- decoder staterequest- CTL request
-
opus_custom_decoder_ctl
Performs a CTL function on an Opus custom decoder.- Parameters:
st- decoder staterequest- CTL request
-