Class OpusMultistream

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

public class OpusMultistream extends Object
  • Nested Class Summary

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    nopus_multistream_decode(long st, long data, int len, long pcm, int frame_size, int decode_fec)
    int opus_multistream_decode(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec)
    static int
    nopus_multistream_decode_float(long st, long data, int len, long pcm, int frame_size, int decode_fec)
    int opus_multistream_decode_float(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec)
    static long
    nopus_multistream_decoder_create(int Fs, int channels, int streams, int coupled_streams, long mapping, long error)
    OpusMSDecoder * opus_multistream_decoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int * error)
    static int
    nopus_multistream_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, long mapping)
    int opus_multistream_decoder_init(OpusMSDecoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping)
    static int
    nopus_multistream_encode(long st, long pcm, int frame_size, long data, int max_data_bytes)
    int opus_multistream_encode(OpusMSEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    static int
    nopus_multistream_encode_float(long st, long pcm, int frame_size, long data, int max_data_bytes)
    int opus_multistream_encode_float(OpusMSEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    static long
    nopus_multistream_encoder_create(int Fs, int channels, int streams, int coupled_streams, long mapping, int application, long error)
    OpusMSEncoder * opus_multistream_encoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int application, int * error)
    static int
    nopus_multistream_encoder_init(long st, int Fs, int channels, int streams, int coupled_streams, long mapping, int application)
    int opus_multistream_encoder_init(OpusMSEncoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int application)
    static long
    nopus_multistream_surround_encoder_create(int Fs, int channels, int mapping_family, long streams, long coupled_streams, long mapping, int application, long error)
    OpusMSEncoder * opus_multistream_surround_encoder_create(opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, unsigned char * mapping, int application, int * error)
    static int
    nopus_multistream_surround_encoder_init(long st, int Fs, int channels, long streams, long coupled_streams, long mapping, int application)
    int opus_multistream_surround_encoder_init(OpusMSEncoder * st, opus_int32 Fs, int channels, int * streams, int * coupled_streams, unsigned char const * mapping, int application)
    static int
    opus_multistream_decode(long st, @Nullable ByteBuffer data, ShortBuffer pcm, int frame_size, int decode_fec)
    int opus_multistream_decode(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec)
    static int
    opus_multistream_decode_float(long st, @Nullable ByteBuffer data, FloatBuffer pcm, int frame_size, int decode_fec)
    int opus_multistream_decode_float(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec)
    static long
    opus_multistream_decoder_create(int Fs, int streams, int coupled_streams, ByteBuffer mapping, @Nullable IntBuffer error)
    OpusMSDecoder * opus_multistream_decoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int * error)
    static int
    opus_multistream_decoder_ctl(long st, int request)
    Performs a CTL function on a multistream Opus decoder.
    static int
    Performs a CTL function on a multistream Opus decoder.
    static void
    void opus_multistream_decoder_destroy(OpusMSDecoder * st)
    static int
    opus_multistream_decoder_get_size(int streams, int coupled_streams)
    opus_int32 opus_multistream_decoder_get_size(int streams, int coupled_streams)
    static int
    opus_multistream_decoder_init(long st, int Fs, int streams, int coupled_streams, ByteBuffer mapping)
    int opus_multistream_decoder_init(OpusMSDecoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping)
    static int
    opus_multistream_encode(long st, ShortBuffer pcm, int frame_size, ByteBuffer data)
    int opus_multistream_encode(OpusMSEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    static int
    opus_multistream_encode_float(long st, FloatBuffer pcm, int frame_size, ByteBuffer data)
    int opus_multistream_encode_float(OpusMSEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    static long
    opus_multistream_encoder_create(int Fs, int streams, int coupled_streams, ByteBuffer mapping, int application, @Nullable IntBuffer error)
    OpusMSEncoder * opus_multistream_encoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int application, int * error)
    static int
    opus_multistream_encoder_ctl(long st, int request)
    Performs a CTL function on an multistream Opus encoder.
    static int
    Performs a CTL function on an multistream Opus encoder.
    static void
    void opus_multistream_encoder_destroy(OpusMSEncoder * st)
    static int
    opus_multistream_encoder_get_size(int streams, int coupled_streams)
    opus_int32 opus_multistream_encoder_get_size(int streams, int coupled_streams)
    static int
    opus_multistream_encoder_init(long st, int Fs, int streams, int coupled_streams, ByteBuffer mapping, int application)
    int opus_multistream_encoder_init(OpusMSEncoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int application)
    static long
    opus_multistream_surround_encoder_create(int Fs, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, ByteBuffer mapping, int application, @Nullable IntBuffer error)
    OpusMSEncoder * opus_multistream_surround_encoder_create(opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, unsigned char * mapping, int application, int * error)
    static int
    opus_multistream_surround_encoder_get_size(int channels, int mapping_family)
    opus_int32 opus_multistream_surround_encoder_get_size(int channels, int mapping_family)
    static int
    opus_multistream_surround_encoder_init(long st, int Fs, IntBuffer streams, IntBuffer coupled_streams, ByteBuffer mapping, int application)
    int opus_multistream_surround_encoder_init(OpusMSEncoder * st, opus_int32 Fs, int channels, int * streams, int * coupled_streams, unsigned char const * mapping, int application)

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • OPUS_MULTISTREAM_GET_ENCODER_STATE_REQUEST

      public static final int OPUS_MULTISTREAM_GET_ENCODER_STATE_REQUEST
      See Also:
    • OPUS_MULTISTREAM_GET_DECODER_STATE_REQUEST

      public static final int OPUS_MULTISTREAM_GET_DECODER_STATE_REQUEST
      See Also:
  • Method Details

    • opus_multistream_encoder_get_size

      public static int opus_multistream_encoder_get_size(int streams, int coupled_streams)
      opus_int32 opus_multistream_encoder_get_size(int streams, int coupled_streams)
    • opus_multistream_surround_encoder_get_size

      public static int opus_multistream_surround_encoder_get_size(int channels, int mapping_family)
      opus_int32 opus_multistream_surround_encoder_get_size(int channels, int mapping_family)
    • nopus_multistream_encoder_create

      public static long nopus_multistream_encoder_create(int Fs, int channels, int streams, int coupled_streams, long mapping, int application, long error)
      OpusMSEncoder * opus_multistream_encoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int application, int * error)
    • opus_multistream_encoder_create

      public static long opus_multistream_encoder_create(int Fs, int streams, int coupled_streams, ByteBuffer mapping, int application, @Nullable IntBuffer error)
      OpusMSEncoder * opus_multistream_encoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int application, int * error)
    • nopus_multistream_surround_encoder_create

      public static long nopus_multistream_surround_encoder_create(int Fs, int channels, int mapping_family, long streams, long coupled_streams, long mapping, int application, long error)
      OpusMSEncoder * opus_multistream_surround_encoder_create(opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, unsigned char * mapping, int application, int * error)
    • opus_multistream_surround_encoder_create

      public static long opus_multistream_surround_encoder_create(int Fs, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, ByteBuffer mapping, int application, @Nullable IntBuffer error)
      OpusMSEncoder * opus_multistream_surround_encoder_create(opus_int32 Fs, int channels, int mapping_family, int * streams, int * coupled_streams, unsigned char * mapping, int application, int * error)
    • nopus_multistream_encoder_init

      public static int nopus_multistream_encoder_init(long st, int Fs, int channels, int streams, int coupled_streams, long mapping, int application)
      int opus_multistream_encoder_init(OpusMSEncoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int application)
    • opus_multistream_encoder_init

      public static int opus_multistream_encoder_init(long st, int Fs, int streams, int coupled_streams, ByteBuffer mapping, int application)
      int opus_multistream_encoder_init(OpusMSEncoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int application)
    • nopus_multistream_surround_encoder_init

      public static int nopus_multistream_surround_encoder_init(long st, int Fs, int channels, long streams, long coupled_streams, long mapping, int application)
      int opus_multistream_surround_encoder_init(OpusMSEncoder * st, opus_int32 Fs, int channels, int * streams, int * coupled_streams, unsigned char const * mapping, int application)
    • opus_multistream_surround_encoder_init

      public static int opus_multistream_surround_encoder_init(long st, int Fs, IntBuffer streams, IntBuffer coupled_streams, ByteBuffer mapping, int application)
      int opus_multistream_surround_encoder_init(OpusMSEncoder * st, opus_int32 Fs, int channels, int * streams, int * coupled_streams, unsigned char const * mapping, int application)
    • nopus_multistream_encode

      public static int nopus_multistream_encode(long st, long pcm, int frame_size, long data, int max_data_bytes)
      int opus_multistream_encode(OpusMSEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • opus_multistream_encode

      public static int opus_multistream_encode(long st, ShortBuffer pcm, int frame_size, ByteBuffer data)
      int opus_multistream_encode(OpusMSEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • nopus_multistream_encode_float

      public static int nopus_multistream_encode_float(long st, long pcm, int frame_size, long data, int max_data_bytes)
      int opus_multistream_encode_float(OpusMSEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • opus_multistream_encode_float

      public static int opus_multistream_encode_float(long st, FloatBuffer pcm, int frame_size, ByteBuffer data)
      int opus_multistream_encode_float(OpusMSEncoder * st, float const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • opus_multistream_encoder_destroy

      public static void opus_multistream_encoder_destroy(long st)
      void opus_multistream_encoder_destroy(OpusMSEncoder * st)
    • opus_multistream_decoder_get_size

      public static int opus_multistream_decoder_get_size(int streams, int coupled_streams)
      opus_int32 opus_multistream_decoder_get_size(int streams, int coupled_streams)
    • nopus_multistream_decoder_create

      public static long nopus_multistream_decoder_create(int Fs, int channels, int streams, int coupled_streams, long mapping, long error)
      OpusMSDecoder * opus_multistream_decoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int * error)
    • opus_multistream_decoder_create

      public static long opus_multistream_decoder_create(int Fs, int streams, int coupled_streams, ByteBuffer mapping, @Nullable IntBuffer error)
      OpusMSDecoder * opus_multistream_decoder_create(opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping, int * error)
    • nopus_multistream_decoder_init

      public static int nopus_multistream_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, long mapping)
      int opus_multistream_decoder_init(OpusMSDecoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping)
    • opus_multistream_decoder_init

      public static int opus_multistream_decoder_init(long st, int Fs, int streams, int coupled_streams, ByteBuffer mapping)
      int opus_multistream_decoder_init(OpusMSDecoder * st, opus_int32 Fs, int channels, int streams, int coupled_streams, unsigned char const * mapping)
    • nopus_multistream_decode

      public static int nopus_multistream_decode(long st, long data, int len, long pcm, int frame_size, int decode_fec)
      int opus_multistream_decode(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec)
    • opus_multistream_decode

      public static int opus_multistream_decode(long st, @Nullable ByteBuffer data, ShortBuffer pcm, int frame_size, int decode_fec)
      int opus_multistream_decode(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, opus_int16 * pcm, int frame_size, int decode_fec)
    • nopus_multistream_decode_float

      public static int nopus_multistream_decode_float(long st, long data, int len, long pcm, int frame_size, int decode_fec)
      int opus_multistream_decode_float(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec)
    • opus_multistream_decode_float

      public static int opus_multistream_decode_float(long st, @Nullable ByteBuffer data, FloatBuffer pcm, int frame_size, int decode_fec)
      int opus_multistream_decode_float(OpusMSDecoder * st, unsigned char const * data, opus_int32 len, float * pcm, int frame_size, int decode_fec)
    • opus_multistream_decoder_destroy

      public static void opus_multistream_decoder_destroy(long st)
      void opus_multistream_decoder_destroy(OpusMSDecoder * st)
    • opus_multistream_encoder_ctl

      public static int opus_multistream_encoder_ctl(long st, int request)
      Performs a CTL function on an multistream Opus encoder.
      Parameters:
      st - encoder state
      request - CTL request
    • opus_multistream_encoder_ctl

      public static int opus_multistream_encoder_ctl(long st, Opus.CTLRequest request)
      Performs a CTL function on an multistream Opus encoder.
      Parameters:
      st - encoder state
      request - CTL request
    • opus_multistream_decoder_ctl

      public static int opus_multistream_decoder_ctl(long st, int request)
      Performs a CTL function on a multistream Opus decoder.
      Parameters:
      st - decoder state
      request - CTL request
    • opus_multistream_decoder_ctl

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