#include <stdint.h>#include <string.h>#include "libavutil/avassert.h"#include "libavutil/container_fifo.h"#include "libavutil/channel_layout.h"#include "libavutil/cpu.h"#include "libavutil/error.h"#include "libavutil/mathematics.h"#include "libavutil/mem.h"#include "libavutil/samplefmt.h"#include "libavutil/timestamp.h"#include "sync_queue.h"Go to the source code of this file.
Definition at line 69 of file sync_queue.c.
Compute the end timestamp of a frame.
If nb_samples is provided, consider the frame to have this number of audio samples, otherwise use frame duration.
Definition at line 118 of file sync_queue.c.
Referenced by bethsoftvid_decode_frame(), bfi_decode_frame(), decode_bmv_frame(), decode_dds1(), decode_dsw1(), decode_tdlt(), decode_tsw1(), decode_wdlt(), ff_h263_decode_frame(), get_duration(), overflow_heartbeat(), receive_for_stream(), sq_send(), and write_subframes().
Definition at line 131 of file sync_queue.c.
Referenced by enc_open(), receive_for_stream(), sq_frame_samples(), sq_send(), and validate_options().
Definition at line 136 of file sync_queue.c.
Referenced by sq_send().
Definition at line 141 of file sync_queue.c.
Referenced by sq_send().
Definition at line 161 of file sync_queue.c.
Referenced by sq_limit_frames(), sq_send(), and stream_update_ts().
Definition at line 208 of file sync_queue.c.
Referenced by stream_update_ts().
Definition at line 243 of file sync_queue.c.
Referenced by overflow_heartbeat(), and sq_send().
Definition at line 272 of file sync_queue.c.
Referenced by sq_receive().
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 333 of file sync_queue.c.
Referenced by send_to_enc_sq(), and sync_queue_process().
Definition at line 389 of file sync_queue.c.
Referenced by receive_samples().
Definition at line 412 of file sync_queue.c.
Referenced by receive_for_stream(), and receive_samples().
Definition at line 428 of file sync_queue.c.
Referenced by receive_for_stream().
Definition at line 502 of file sync_queue.c.
Referenced by receive_internal().
Definition at line 562 of file sync_queue.c.
Referenced by sq_receive().
Read a frame from the queue.
Definition at line 586 of file sync_queue.c.
Referenced by send_to_enc_sq(), and sync_queue_process().
Add a new stream to the sync queue.
Definition at line 598 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 628 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 640 of file sync_queue.c.
Referenced by enc_open().
Allocate a sync queue of the given type.
Definition at line 654 of file sync_queue.c.
Referenced by sch_add_sq_enc(), and setup_sync_queues().
Definition at line 671 of file sync_queue.c.
Referenced by of_free(), and sch_free().