Package org.lwjgl.util.opus
Class OpusCustom
java.lang.Object
org.lwjgl.util.opus.OpusCustom
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromOpus.getLibrary()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
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)
static long
nopus_custom_decoder_create
(long mode, int channels, long error) OpusCustomDecoder * opus_custom_decoder_create(OpusCustomMode const * mode, int channels, int * error)
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)
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)
static long
nopus_custom_encoder_create
(long mode, int channels, long error) OpusCustomEncoder * opus_custom_encoder_create(OpusCustomMode const * mode, int channels, int * error)
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)
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)
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)
static long
opus_custom_decoder_create
(long mode, int channels, @Nullable IntBuffer error) OpusCustomDecoder * opus_custom_decoder_create(OpusCustomMode const * mode, int channels, int * error)
static int
opus_custom_decoder_ctl
(long st, int request) Performs a CTL function on an Opus custom decoder.static int
opus_custom_decoder_ctl
(long st, Opus.CTLRequest request) Performs a CTL function on an Opus custom decoder.static void
opus_custom_decoder_destroy
(long st) void opus_custom_decoder_destroy(OpusCustomDecoder * st)
static int
opus_custom_decoder_get_size
(long mode, int channels) int opus_custom_decoder_get_size(OpusCustomMode const * mode, int channels)
static int
opus_custom_decoder_init
(long st, long mode, int channels) int opus_custom_decoder_init(OpusCustomDecoder * st, OpusCustomMode const * mode, int channels)
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)
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)
static long
opus_custom_encoder_create
(long mode, int channels, @Nullable IntBuffer error) OpusCustomEncoder * opus_custom_encoder_create(OpusCustomMode const * mode, int channels, int * error)
static int
opus_custom_encoder_ctl
(long st, int request) Performs a CTL function on an Opus custom encoder.static int
opus_custom_encoder_ctl
(long st, Opus.CTLRequest request) Performs a CTL function on an Opus custom encoder.static void
opus_custom_encoder_destroy
(long st) void opus_custom_encoder_destroy(OpusCustomEncoder * st)
static int
opus_custom_encoder_get_size
(long mode, int channels) int opus_custom_encoder_get_size(OpusCustomMode const * mode, int channels)
static int
opus_custom_encoder_init
(long st, long mode, int channels) int opus_custom_encoder_init(OpusCustomEncoder * st, OpusCustomMode const * mode, int channels)
static long
opus_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 void
opus_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
-