Class OpusCustom

java.lang.Object
org.lwjgl.util.opus.OpusCustom

public class OpusCustom extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Contains the function pointers loaded from Opus.getLibrary().
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    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
    Performs a CTL function on an Opus custom decoder.
    static void
    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
    Performs a CTL function on an Opus custom encoder.
    static void
    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
    void opus_custom_mode_destroy(OpusCustomMode * mode)

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public 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)
    • 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

      public 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)
    • 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

      public 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)
    • 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 state
      request - CTL request
    • opus_custom_encoder_ctl

      public static int opus_custom_encoder_ctl(long st, Opus.CTLRequest request)
      Performs a CTL function on an Opus custom encoder.
      Parameters:
      st - encoder state
      request - 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 state
      request - CTL request
    • opus_custom_decoder_ctl

      public static int opus_custom_decoder_ctl(long st, Opus.CTLRequest request)
      Performs a CTL function on an Opus custom decoder.
      Parameters:
      st - decoder state
      request - CTL request