Go to the source code of this file.
Definition at line 38 of file sync_queue.h.
Definition at line 39 of file sync_queue.h.
| Enumerator | |
|---|---|
| SYNC_QUEUE_PACKETS | |
| SYNC_QUEUE_FRAMES | |
Definition at line 28 of file sync_queue.h.
Allocate a sync queue of the given type.
Definition at line 675 of file sync_queue.c.
Referenced by sch_add_sq_enc(), and setup_sync_queues().
Definition at line 699 of file sync_queue.c.
Referenced by of_free(), and sch_free().
Add a new stream to the sync queue.
Definition at line 620 of file sync_queue.c.
Referenced by sch_sq_add_enc(), and setup_sync_queues().
Limit the number of output frames for stream with index stream_idx to max_frames.
Definition at line 649 of file sync_queue.c.
Referenced by sch_sq_add_enc(), and setup_sync_queues().
Set a constant output audio frame size, in samples.
Can only be used with SYNC_QUEUE_FRAMES queues and audio streams.
All output frames will have exactly frame_samples audio samples, except possibly for the last one, which may have fewer.
Definition at line 661 of file sync_queue.c.
Referenced by enc_open().
Submit a frame for the stream with index stream_idx.
On success, the sync queue takes ownership of the frame and will reset the contents of the supplied frame. On failure, the frame remains owned by the caller.
Sending a frame with NULL contents marks the stream as finished.
Definition at line 343 of file sync_queue.c.
Referenced by send_to_enc_sq(), and sync_queue_process().
Read a frame from the queue.
Definition at line 608 of file sync_queue.c.
Referenced by send_to_enc_sq(), and sync_queue_process().