There are two complementary methods for adding packets to the packet queue.
As each packet is enqueued, its validity is checked against the framing constraints outlined in the Ogg basics section. If it does not pass these constraints, oggz_write_feed() will fail with an appropriate error code.
Typedefs | |
typedef int(* | OggzWriteHungry )(OGGZ *oggz, int empty, void *user_data) |
This is the signature of a callback which Oggz will call when oggz is hungry . | |
Functions | |
int | oggz_write_set_hungry_callback (OGGZ *oggz, OggzWriteHungry hungry, int only_when_empty, void *user_data) |
Set a callback for Oggz to call when oggz is hungry . | |
int | oggz_write_feed (OGGZ *oggz, ogg_packet *op, long serialno, int flush, int *guard) |
Add a packet to oggz's packet queue. | |
long | oggz_write_output (OGGZ *oggz, unsigned char *buf, long n) |
Output data from an OGGZ handle. | |
long | oggz_write (OGGZ *oggz, long n) |
Write n bytes from an OGGZ handle. | |
long | oggz_write_get_next_page_size (OGGZ *oggz) |
Query the number of bytes in the next page to be written. |
|
This is the signature of a callback which Oggz will call when oggz is hungry .
|
|
Write n bytes from an OGGZ handle. Oggz will call your write callback as needed.
|
|
Add a packet to oggz's packet queue.
|
|
Query the number of bytes in the next page to be written.
|
|
Output data from an OGGZ handle. Oggz will call your write callback as needed.
|
|
Set a callback for Oggz to call when oggz is hungry .
|