libopusenc
0.2.1-13-gdc6ab59
Stand-alone encoder library for .opus files.
|
Data Structures | |
struct | OpusEncCallbacks |
Callback functions for accessing the stream. More... | |
Callback functions | |
These are the callbacks that can be implemented for an encoder. | |
typedef int(* | ope_write_func) (void *user_data, const unsigned char *ptr, opus_int32 len) |
Called for writing a page. More... | |
typedef int(* | ope_close_func) (void *user_data) |
Called for closing a stream. More... | |
typedef void(* | ope_packet_func) (void *user_data, const unsigned char *packet_ptr, opus_int32 packet_len, opus_uint32 flags) |
Called on every packet encoded (including header). More... | |
typedef int(* ope_write_func) (void *user_data, const unsigned char *ptr, opus_int32 len) |
Called for writing a page.
user_data | user-defined data passed to the callback |
ptr | buffer to be written |
len | number of bytes to be written |
0 | success |
1 | failure |
typedef int(* ope_close_func) (void *user_data) |
Called for closing a stream.
user_data | user-defined data passed to the callback |
0 | success |
1 | failure |
typedef void(* ope_packet_func) (void *user_data, const unsigned char *packet_ptr, opus_int32 packet_len, opus_uint32 flags) |
Called on every packet encoded (including header).
user_data | user-defined data passed to the callback |
packet_ptr | packet data |
packet_len | number of bytes in the packet |
flags | optional flags (none defined for now so zero) |