Package org.lwjgl.util.opus
Class OpusEnc
java.lang.Object
org.lwjgl.util.opus.OpusEnc
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromOpus.getLibrary(). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic intnope_comments_add(long comments, long tag, long val) int ope_comments_add(OggOpusComments * comments, char const * tag, char const * val)static intnope_comments_add_picture(long comments, long filename, int picture_type, long description) int ope_comments_add_picture(OggOpusComments * comments, char const * filename, int picture_type, char const * description)static intnope_comments_add_picture_from_memory(long comments, long ptr, long size, int picture_type, long description) int ope_comments_add_picture_from_memory(OggOpusComments * comments, char const * ptr, size_t size, int picture_type, char const * description)static intnope_comments_add_string(long comments, long tag_and_val) int ope_comments_add_string(OggOpusComments * comments, char const * tag_and_val)static intnope_encoder_continue_new_file(long enc, long path, long comments) int ope_encoder_continue_new_file(OggOpusEnc * enc, char const * path, OggOpusComments * comments)static longnope_encoder_create_callbacks(long callbacks, long user_data, long comments, int rate, int channels, int family, long error) OggOpusEnc * ope_encoder_create_callbacks(OpusEncCallbacks const * callbacks, void * user_data, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error)static longnope_encoder_create_file(long path, long comments, int rate, int channels, int family, long error) OggOpusEnc * ope_encoder_create_file(char const * path, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error)static longnope_encoder_create_pull(long comments, int rate, int channels, int family, long error) OggOpusEnc * ope_encoder_create_pull(OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error)static intnope_encoder_deferred_init_with_mapping(long enc, int family, int streams, int coupled_streams, long mapping) int ope_encoder_deferred_init_with_mapping(OggOpusEnc * enc, int family, int streams, int coupled_streams, unsigned char const * mapping)static intnope_encoder_get_page(long enc, long page, long len, int flush) int ope_encoder_get_page(OggOpusEnc * enc, unsigned char ** page, opus_int32 * len, int flush)static intnope_encoder_write(long enc, long pcm, int samples_per_channel) int ope_encoder_write(OggOpusEnc * enc, opus_int16 const * pcm, int samples_per_channel)static intnope_encoder_write_float(long enc, long pcm, int samples_per_channel) int ope_encoder_write_float(OggOpusEnc * enc, float const * pcm, int samples_per_channel)static longchar const * ope_get_version_string(void)static longnope_strerror(int error) char const * ope_strerror(int error)static intope_comments_add(long comments, CharSequence tag, CharSequence val) int ope_comments_add(OggOpusComments * comments, char const * tag, char const * val)static intope_comments_add(long comments, ByteBuffer tag, ByteBuffer val) int ope_comments_add(OggOpusComments * comments, char const * tag, char const * val)static intope_comments_add_picture(long comments, CharSequence filename, int picture_type, @Nullable CharSequence description) int ope_comments_add_picture(OggOpusComments * comments, char const * filename, int picture_type, char const * description)static intope_comments_add_picture(long comments, ByteBuffer filename, int picture_type, @Nullable ByteBuffer description) int ope_comments_add_picture(OggOpusComments * comments, char const * filename, int picture_type, char const * description)static intope_comments_add_picture_from_memory(long comments, ByteBuffer ptr, int picture_type, @Nullable CharSequence description) int ope_comments_add_picture_from_memory(OggOpusComments * comments, char const * ptr, size_t size, int picture_type, char const * description)static intope_comments_add_picture_from_memory(long comments, ByteBuffer ptr, int picture_type, @Nullable ByteBuffer description) int ope_comments_add_picture_from_memory(OggOpusComments * comments, char const * ptr, size_t size, int picture_type, char const * description)static intope_comments_add_string(long comments, CharSequence tag_and_val) int ope_comments_add_string(OggOpusComments * comments, char const * tag_and_val)static intope_comments_add_string(long comments, ByteBuffer tag_and_val) int ope_comments_add_string(OggOpusComments * comments, char const * tag_and_val)static longope_comments_copy(long comments) OggOpusComments * ope_comments_copy(OggOpusComments * comments)static longOggOpusComments * ope_comments_create(void)static voidope_comments_destroy(long comments) void ope_comments_destroy(OggOpusComments * comments)static intope_encoder_chain_current(long enc, long comments) int ope_encoder_chain_current(OggOpusEnc * enc, OggOpusComments * comments)static intope_encoder_continue_new_callbacks(long enc, long user_data, long comments) int ope_encoder_continue_new_callbacks(OggOpusEnc * enc, void * user_data, OggOpusComments * comments)static intope_encoder_continue_new_file(long enc, CharSequence path, long comments) int ope_encoder_continue_new_file(OggOpusEnc * enc, char const * path, OggOpusComments * comments)static intope_encoder_continue_new_file(long enc, ByteBuffer path, long comments) int ope_encoder_continue_new_file(OggOpusEnc * enc, char const * path, OggOpusComments * comments)static longope_encoder_create_callbacks(OpusEncCallbacks callbacks, long user_data, long comments, int rate, int channels, int family, @Nullable IntBuffer error) OggOpusEnc * ope_encoder_create_callbacks(OpusEncCallbacks const * callbacks, void * user_data, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error)static longope_encoder_create_file(CharSequence path, long comments, int rate, int channels, int family, @Nullable IntBuffer error) OggOpusEnc * ope_encoder_create_file(char const * path, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error)static longope_encoder_create_file(ByteBuffer path, long comments, int rate, int channels, int family, @Nullable IntBuffer error) OggOpusEnc * ope_encoder_create_file(char const * path, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error)static longope_encoder_create_pull(long comments, int rate, int channels, int family, @Nullable IntBuffer error) OggOpusEnc * ope_encoder_create_pull(OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error)static intope_encoder_ctl(long enc, int request) Sets encoder options.static intope_encoder_ctl(long enc, Opus.CTLRequest request) Sets encoder options.static intope_encoder_deferred_init_with_mapping(long enc, int family, int streams, int coupled_streams, ByteBuffer mapping) int ope_encoder_deferred_init_with_mapping(OggOpusEnc * enc, int family, int streams, int coupled_streams, unsigned char const * mapping)static voidope_encoder_destroy(long enc) void ope_encoder_destroy(OggOpusEnc * enc)static intope_encoder_drain(long enc) int ope_encoder_drain(OggOpusEnc * enc)static intope_encoder_flush_header(long enc) int ope_encoder_flush_header(OggOpusEnc * enc)static booleanope_encoder_get_page(long enc, PointerBuffer page, IntBuffer len, boolean flush) int ope_encoder_get_page(OggOpusEnc * enc, unsigned char ** page, opus_int32 * len, int flush)static intope_encoder_write(long enc, ShortBuffer pcm, int samples_per_channel) int ope_encoder_write(OggOpusEnc * enc, opus_int16 const * pcm, int samples_per_channel)static intope_encoder_write_float(long enc, FloatBuffer pcm, int samples_per_channel) int ope_encoder_write_float(OggOpusEnc * enc, float const * pcm, int samples_per_channel)static intint ope_get_abi_version(void)static Opus.CTLRequestOPE_GET_COMMENT_PADDING_REQUEST(IntBuffer __result) static Opus.CTLRequestOPE_GET_DECISION_DELAY_REQUEST(IntBuffer __result) static Opus.CTLRequestOPE_GET_HEADER_GAIN_REQUEST(IntBuffer __result) static Opus.CTLRequestOPE_GET_MUXING_DELAY_REQUEST(IntBuffer __result) static Opus.CTLRequestOPE_GET_NB_COUPLED_STREAMS_REQUEST(IntBuffer __result) static Opus.CTLRequestOPE_GET_NB_STREAMS_REQUEST(IntBuffer __result) static Opus.CTLRequestOPE_GET_SERIALNO_REQUEST(IntBuffer __result) static @Nullable Stringchar const * ope_get_version_string(void)static Opus.CTLRequestOPE_SET_COMMENT_PADDING_REQUEST(int value) static Opus.CTLRequestOPE_SET_DECISION_DELAY_REQUEST(int value) static Opus.CTLRequestOPE_SET_HEADER_GAIN_REQUEST(int value) static Opus.CTLRequestOPE_SET_MUXING_DELAY_REQUEST(int value) static Opus.CTLRequeststatic Opus.CTLRequestOPE_SET_SERIALNO_REQUEST(int value) static @Nullable Stringope_strerror(int error) char const * ope_strerror(int error)
-
Field Details
-
OPE_API_VERSION
public static final int OPE_API_VERSION- See Also:
-
OPE_OK
public static final int OPE_OK- See Also:
-
OPE_BAD_ARG
public static final int OPE_BAD_ARG- See Also:
-
OPE_INTERNAL_ERROR
public static final int OPE_INTERNAL_ERROR- See Also:
-
OPE_UNIMPLEMENTED
public static final int OPE_UNIMPLEMENTED- See Also:
-
OPE_ALLOC_FAIL
public static final int OPE_ALLOC_FAIL- See Also:
-
OPE_CANNOT_OPEN
public static final int OPE_CANNOT_OPEN- See Also:
-
OPE_TOO_LATE
public static final int OPE_TOO_LATE- See Also:
-
OPE_INVALID_PICTURE
public static final int OPE_INVALID_PICTURE- See Also:
-
OPE_INVALID_ICON
public static final int OPE_INVALID_ICON- See Also:
-
OPE_WRITE_FAIL
public static final int OPE_WRITE_FAIL- See Also:
-
OPE_CLOSE_FAIL
public static final int OPE_CLOSE_FAIL- See Also:
-
OPE_SET_DECISION_DELAY_REQUEST
public static final int OPE_SET_DECISION_DELAY_REQUEST- See Also:
-
OPE_GET_DECISION_DELAY_REQUEST
public static final int OPE_GET_DECISION_DELAY_REQUEST- See Also:
-
OPE_SET_MUXING_DELAY_REQUEST
public static final int OPE_SET_MUXING_DELAY_REQUEST- See Also:
-
OPE_GET_MUXING_DELAY_REQUEST
public static final int OPE_GET_MUXING_DELAY_REQUEST- See Also:
-
OPE_SET_COMMENT_PADDING_REQUEST
public static final int OPE_SET_COMMENT_PADDING_REQUEST- See Also:
-
OPE_GET_COMMENT_PADDING_REQUEST
public static final int OPE_GET_COMMENT_PADDING_REQUEST- See Also:
-
OPE_SET_SERIALNO_REQUEST
public static final int OPE_SET_SERIALNO_REQUEST- See Also:
-
OPE_GET_SERIALNO_REQUEST
public static final int OPE_GET_SERIALNO_REQUEST- See Also:
-
OPE_SET_PACKET_CALLBACK_REQUEST
public static final int OPE_SET_PACKET_CALLBACK_REQUEST- See Also:
-
OPE_SET_HEADER_GAIN_REQUEST
public static final int OPE_SET_HEADER_GAIN_REQUEST- See Also:
-
OPE_GET_HEADER_GAIN_REQUEST
public static final int OPE_GET_HEADER_GAIN_REQUEST- See Also:
-
OPE_GET_NB_STREAMS_REQUEST
public static final int OPE_GET_NB_STREAMS_REQUEST- See Also:
-
OPE_GET_NB_COUPLED_STREAMS_REQUEST
public static final int OPE_GET_NB_COUPLED_STREAMS_REQUEST- See Also:
-
-
Method Details
-
ope_comments_create
public static long ope_comments_create()OggOpusComments * ope_comments_create(void) -
ope_comments_copy
public static long ope_comments_copy(long comments) OggOpusComments * ope_comments_copy(OggOpusComments * comments) -
ope_comments_destroy
public static void ope_comments_destroy(long comments) void ope_comments_destroy(OggOpusComments * comments) -
nope_comments_add
public static int nope_comments_add(long comments, long tag, long val) int ope_comments_add(OggOpusComments * comments, char const * tag, char const * val) -
ope_comments_add
int ope_comments_add(OggOpusComments * comments, char const * tag, char const * val) -
ope_comments_add
int ope_comments_add(OggOpusComments * comments, char const * tag, char const * val) -
nope_comments_add_string
public static int nope_comments_add_string(long comments, long tag_and_val) int ope_comments_add_string(OggOpusComments * comments, char const * tag_and_val) -
ope_comments_add_string
int ope_comments_add_string(OggOpusComments * comments, char const * tag_and_val) -
ope_comments_add_string
int ope_comments_add_string(OggOpusComments * comments, char const * tag_and_val) -
nope_comments_add_picture
public static int nope_comments_add_picture(long comments, long filename, int picture_type, long description) int ope_comments_add_picture(OggOpusComments * comments, char const * filename, int picture_type, char const * description) -
ope_comments_add_picture
public static int ope_comments_add_picture(long comments, ByteBuffer filename, int picture_type, @Nullable ByteBuffer description) int ope_comments_add_picture(OggOpusComments * comments, char const * filename, int picture_type, char const * description) -
ope_comments_add_picture
public static int ope_comments_add_picture(long comments, CharSequence filename, int picture_type, @Nullable CharSequence description) int ope_comments_add_picture(OggOpusComments * comments, char const * filename, int picture_type, char const * description) -
nope_comments_add_picture_from_memory
public static int nope_comments_add_picture_from_memory(long comments, long ptr, long size, int picture_type, long description) int ope_comments_add_picture_from_memory(OggOpusComments * comments, char const * ptr, size_t size, int picture_type, char const * description) -
ope_comments_add_picture_from_memory
public static int ope_comments_add_picture_from_memory(long comments, ByteBuffer ptr, int picture_type, @Nullable ByteBuffer description) int ope_comments_add_picture_from_memory(OggOpusComments * comments, char const * ptr, size_t size, int picture_type, char const * description) -
ope_comments_add_picture_from_memory
public static int ope_comments_add_picture_from_memory(long comments, ByteBuffer ptr, int picture_type, @Nullable CharSequence description) int ope_comments_add_picture_from_memory(OggOpusComments * comments, char const * ptr, size_t size, int picture_type, char const * description) -
nope_encoder_create_file
public static long nope_encoder_create_file(long path, long comments, int rate, int channels, int family, long error) OggOpusEnc * ope_encoder_create_file(char const * path, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error) -
ope_encoder_create_file
public static long ope_encoder_create_file(ByteBuffer path, long comments, int rate, int channels, int family, @Nullable IntBuffer error) OggOpusEnc * ope_encoder_create_file(char const * path, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error) -
ope_encoder_create_file
public static long ope_encoder_create_file(CharSequence path, long comments, int rate, int channels, int family, @Nullable IntBuffer error) OggOpusEnc * ope_encoder_create_file(char const * path, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error) -
nope_encoder_create_callbacks
public static long nope_encoder_create_callbacks(long callbacks, long user_data, long comments, int rate, int channels, int family, long error) OggOpusEnc * ope_encoder_create_callbacks(OpusEncCallbacks const * callbacks, void * user_data, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error) -
ope_encoder_create_callbacks
public static long ope_encoder_create_callbacks(OpusEncCallbacks callbacks, long user_data, long comments, int rate, int channels, int family, @Nullable IntBuffer error) OggOpusEnc * ope_encoder_create_callbacks(OpusEncCallbacks const * callbacks, void * user_data, OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error) -
nope_encoder_create_pull
public static long nope_encoder_create_pull(long comments, int rate, int channels, int family, long error) OggOpusEnc * ope_encoder_create_pull(OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error) -
ope_encoder_create_pull
public static long ope_encoder_create_pull(long comments, int rate, int channels, int family, @Nullable IntBuffer error) OggOpusEnc * ope_encoder_create_pull(OggOpusComments * comments, opus_int32 rate, int channels, int family, int * error) -
nope_encoder_deferred_init_with_mapping
public static int nope_encoder_deferred_init_with_mapping(long enc, int family, int streams, int coupled_streams, long mapping) int ope_encoder_deferred_init_with_mapping(OggOpusEnc * enc, int family, int streams, int coupled_streams, unsigned char const * mapping) -
ope_encoder_deferred_init_with_mapping
public static int ope_encoder_deferred_init_with_mapping(long enc, int family, int streams, int coupled_streams, ByteBuffer mapping) int ope_encoder_deferred_init_with_mapping(OggOpusEnc * enc, int family, int streams, int coupled_streams, unsigned char const * mapping) -
nope_encoder_write_float
public static int nope_encoder_write_float(long enc, long pcm, int samples_per_channel) int ope_encoder_write_float(OggOpusEnc * enc, float const * pcm, int samples_per_channel) -
ope_encoder_write_float
int ope_encoder_write_float(OggOpusEnc * enc, float const * pcm, int samples_per_channel) -
nope_encoder_write
public static int nope_encoder_write(long enc, long pcm, int samples_per_channel) int ope_encoder_write(OggOpusEnc * enc, opus_int16 const * pcm, int samples_per_channel) -
ope_encoder_write
int ope_encoder_write(OggOpusEnc * enc, opus_int16 const * pcm, int samples_per_channel) -
nope_encoder_get_page
public static int nope_encoder_get_page(long enc, long page, long len, int flush) int ope_encoder_get_page(OggOpusEnc * enc, unsigned char ** page, opus_int32 * len, int flush) -
ope_encoder_get_page
public static boolean ope_encoder_get_page(long enc, PointerBuffer page, IntBuffer len, boolean flush) int ope_encoder_get_page(OggOpusEnc * enc, unsigned char ** page, opus_int32 * len, int flush) -
ope_encoder_drain
public static int ope_encoder_drain(long enc) int ope_encoder_drain(OggOpusEnc * enc) -
ope_encoder_destroy
public static void ope_encoder_destroy(long enc) void ope_encoder_destroy(OggOpusEnc * enc) -
ope_encoder_chain_current
public static int ope_encoder_chain_current(long enc, long comments) int ope_encoder_chain_current(OggOpusEnc * enc, OggOpusComments * comments) -
nope_encoder_continue_new_file
public static int nope_encoder_continue_new_file(long enc, long path, long comments) int ope_encoder_continue_new_file(OggOpusEnc * enc, char const * path, OggOpusComments * comments) -
ope_encoder_continue_new_file
int ope_encoder_continue_new_file(OggOpusEnc * enc, char const * path, OggOpusComments * comments) -
ope_encoder_continue_new_file
int ope_encoder_continue_new_file(OggOpusEnc * enc, char const * path, OggOpusComments * comments) -
ope_encoder_continue_new_callbacks
public static int ope_encoder_continue_new_callbacks(long enc, long user_data, long comments) int ope_encoder_continue_new_callbacks(OggOpusEnc * enc, void * user_data, OggOpusComments * comments) -
ope_encoder_flush_header
public static int ope_encoder_flush_header(long enc) int ope_encoder_flush_header(OggOpusEnc * enc) -
nope_strerror
public static long nope_strerror(int error) char const * ope_strerror(int error) -
ope_strerror
char const * ope_strerror(int error) -
nope_get_version_string
public static long nope_get_version_string()char const * ope_get_version_string(void) -
ope_get_version_string
char const * ope_get_version_string(void) -
ope_get_abi_version
public static int ope_get_abi_version()int ope_get_abi_version(void) -
ope_encoder_ctl
public static int ope_encoder_ctl(long enc, int request) Sets encoder options.- Parameters:
enc- encoderrequest- use a request macro- Returns:
- error code
-
ope_encoder_ctl
Sets encoder options.- Parameters:
enc- encoderrequest- use a request macro- Returns:
- error code
-
OPE_SET_DECISION_DELAY_REQUEST
-
OPE_GET_DECISION_DELAY_REQUEST
-
OPE_SET_MUXING_DELAY_REQUEST
-
OPE_GET_MUXING_DELAY_REQUEST
-
OPE_SET_COMMENT_PADDING_REQUEST
-
OPE_GET_COMMENT_PADDING_REQUEST
-
OPE_SET_SERIALNO_REQUEST
-
OPE_GET_SERIALNO_REQUEST
-
OPE_SET_PACKET_CALLBACK_REQUEST
-
OPE_SET_HEADER_GAIN_REQUEST
-
OPE_GET_HEADER_GAIN_REQUEST
-
OPE_GET_NB_STREAMS_REQUEST
-
OPE_GET_NB_COUPLED_STREAMS_REQUEST
-