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 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 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 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)
    Performs a CTL function on a projection Opus decoder.
    static int
    Performs a CTL function on a projection Opus decoder.
    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_encoder_ctl(long st, int request)
    Performs a CTL function on an projection Opus encoder.
    static int
    Performs a CTL function on an projection Opus encoder.
    static int
    int opus_projection_encoder_destroy(OpusProjectionEncoder * st)
    Copies the demixing matrix to the supplied pointer location.
    Gets the gain (in dB.
    Gets the size in bytes of the demixing matrix from the encoder.

    Methods inherited from class java.lang.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

      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

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

      public static int opus_projection_encoder_destroy(long st)
      int opus_projection_encoder_destroy(OpusProjectionEncoder * st)
    • opus_projection_decoder_get_size

      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

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

      public static int opus_projection_decoder_destroy(long st)
      int opus_projection_decoder_destroy(OpusProjectionDecoder * st)
    • opus_projection_encoder_ctl

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

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

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

      public static int opus_projection_decoder_ctl(long st, Opus.CTLRequest request)
      Performs a CTL function on a projection Opus decoder.
      Parameters:
      st - projection decoder state
      request - CTL request
    • OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN

      public static Opus.CTLRequest OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN(IntBuffer value)
      Gets the gain (in dB. S7.8-format) of the demixing matrix from the encoder.
      Returns:
      the gain (in dB. S7.8-format) of the demixing matrix.
    • OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE

      public static Opus.CTLRequest OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE(IntBuffer value)
      Gets the size in bytes of the demixing matrix from the encoder.
      Returns:
      the size in bytes of the demixing matrix.
    • OPUS_PROJECTION_GET_DEMIXING_MATRIX

      public static Opus.CTLRequest OPUS_PROJECTION_GET_DEMIXING_MATRIX(ByteBuffer matrix)
      Copies the demixing matrix to the supplied pointer location.
      Parameters:
      matrix - returns the demixing matrix to the supplied pointer location.