Class OpusProjection

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

public class OpusProjection 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
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    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)
    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)
    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)
    static int
    nopus_projection_decode24(long st, long data, int len, long pcm, int frame_size, int decode_fec)
    int opus_projection_decode24(OpusProjectionDecoder * st, unsigned char const * data, opus_int32 len, opus_int32 * pcm, int frame_size, int decode_fec)
    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)
    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)
    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)
    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)
    static int
    nopus_projection_encode24(long st, long pcm, int frame_size, long data, int max_data_bytes)
    int opus_projection_encode24(OpusProjectionEncoder * st, opus_int32 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    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)
    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)
    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)
    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)
    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)
    static int
    opus_projection_decode24(long st, @Nullable ByteBuffer data, IntBuffer pcm, int frame_size, int decode_fec)
    int opus_projection_decode24(OpusProjectionDecoder * st, unsigned char const * data, opus_int32 len, opus_int32 * pcm, int frame_size, int decode_fec)
    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)
    static int
    opus_projection_decoder_ctl(long st, int request)
     
    static int
     
    static int
    int opus_projection_decoder_destroy(OpusProjectionDecoder * st)
    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)
    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)
    static int
    opus_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 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)
    static int
    opus_projection_encode24(long st, IntBuffer pcm, int frame_size, ByteBuffer data)
    int opus_projection_encode24(OpusProjectionEncoder * st, opus_int32 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    static int
    opus_projection_encoder_ctl(long st, int request)
     
    static int
     
    static int
    int opus_projection_encoder_destroy(OpusProjectionEncoder * st)
     
     
     

    Methods inherited from class Object

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

      @NativeType("opus_int32") 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

      @NativeType("OpusProjectionEncoder *") public static long opus_projection_ambisonics_encoder_create(@NativeType("opus_int32") int Fs, int channels, int mapping_family, @NativeType("int *") IntBuffer streams, @NativeType("int *") IntBuffer coupled_streams, int application, @NativeType("int *") @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(@NativeType("OpusProjectionEncoder *") long st, @NativeType("opus_int32") int Fs, int channels, int mapping_family, @NativeType("int *") IntBuffer streams, @NativeType("int *") 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

      public static int opus_projection_encode(@NativeType("OpusProjectionEncoder *") long st, @NativeType("opus_int16 const *") ShortBuffer pcm, int frame_size, @NativeType("unsigned char *") ByteBuffer data)
      int opus_projection_encode(OpusProjectionEncoder * st, opus_int16 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • nopus_projection_encode24

      public static int nopus_projection_encode24(long st, long pcm, int frame_size, long data, int max_data_bytes)
      int opus_projection_encode24(OpusProjectionEncoder * st, opus_int32 const * pcm, int frame_size, unsigned char * data, opus_int32 max_data_bytes)
    • opus_projection_encode24

      public static int opus_projection_encode24(@NativeType("OpusProjectionEncoder *") long st, @NativeType("opus_int32 const *") IntBuffer pcm, int frame_size, @NativeType("unsigned char *") ByteBuffer data)
      int opus_projection_encode24(OpusProjectionEncoder * st, opus_int32 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(@NativeType("OpusProjectionEncoder *") long st, @NativeType("float const *") FloatBuffer pcm, int frame_size, @NativeType("unsigned char *") 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(@NativeType("OpusProjectionEncoder *") long st)
      int opus_projection_encoder_destroy(OpusProjectionEncoder * st)
    • opus_projection_decoder_get_size

      @NativeType("opus_int32") 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

      @NativeType("OpusProjectionDecoder *") public static long opus_projection_decoder_create(@NativeType("opus_int32") int Fs, int channels, int streams, int coupled_streams, @NativeType("unsigned char *") ByteBuffer demixing_matrix, @NativeType("int *") @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(@NativeType("OpusProjectionDecoder *") long st, @NativeType("opus_int32") int Fs, int channels, int streams, int coupled_streams, @NativeType("unsigned char *") 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(@NativeType("OpusProjectionDecoder *") long st, @NativeType("unsigned char const *") @Nullable ByteBuffer data, @NativeType("opus_int16 *") 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_decode24

      public static int nopus_projection_decode24(long st, long data, int len, long pcm, int frame_size, int decode_fec)
      int opus_projection_decode24(OpusProjectionDecoder * st, unsigned char const * data, opus_int32 len, opus_int32 * pcm, int frame_size, int decode_fec)
    • opus_projection_decode24

      public static int opus_projection_decode24(@NativeType("OpusProjectionDecoder *") long st, @NativeType("unsigned char const *") @Nullable ByteBuffer data, @NativeType("opus_int32 *") IntBuffer pcm, int frame_size, int decode_fec)
      int opus_projection_decode24(OpusProjectionDecoder * st, unsigned char const * data, opus_int32 len, opus_int32 * 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(@NativeType("OpusMSDecoder *") long st, @NativeType("unsigned char const *") @Nullable ByteBuffer data, @NativeType("float *") 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(@NativeType("OpusProjectionDecoder *") long st)
      int opus_projection_decoder_destroy(OpusProjectionDecoder * st)
    • opus_projection_encoder_ctl

      public static int opus_projection_encoder_ctl(@NativeType("OpusProjectionEncoder *") long st, int request)
    • opus_projection_encoder_ctl

      public static int opus_projection_encoder_ctl(@NativeType("OpusProjectionEncoder *") long st, Opus.CTLRequest request)
    • opus_projection_decoder_ctl

      public static int opus_projection_decoder_ctl(@NativeType("OpusProjectionDecoder *") long st, int request)
    • opus_projection_decoder_ctl

      public static int opus_projection_decoder_ctl(@NativeType("OpusProjectionDecoder *") long st, Opus.CTLRequest request)
    • OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN

      public static Opus.CTLRequest OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN(IntBuffer value)
    • OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE

      public static Opus.CTLRequest OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE(IntBuffer value)
    • OPUS_PROJECTION_GET_DEMIXING_MATRIX

      public static Opus.CTLRequest OPUS_PROJECTION_GET_DEMIXING_MATRIX(ByteBuffer matrix)