|
FFmpeg
|
#include <string.h>#include "libavutil/avutil.h"#include "libavutil/error.h"#include "libavutil/mem.h"#include "libavutil/rational.h"#include "libavcodec/packet.h"#include "packet_internal.h"Go to the source code of this file.
Functions | |
| static void | get_packet_defaults (AVPacket *pkt) |
| int | ff_packet_list_put (PacketList *packet_buffer, AVPacket *pkt, int(*copy)(AVPacket *dst, const AVPacket *src), int flags) |
| Append an AVPacket to the list. More... | |
| int | ff_packet_list_get (PacketList *pkt_buffer, AVPacket *pkt) |
| Remove the oldest AVPacket in the list and return it. More... | |
| void | ff_packet_list_free (PacketList *pkt_buf) |
| Wipe the list and unref all the packets in it. More... | |
|
static |
Definition at line 30 of file packet_list.c.
Referenced by ff_packet_list_put().
| int ff_packet_list_put | ( | PacketList * | list, |
| AVPacket * | pkt, | ||
| int(*)(AVPacket *dst, const AVPacket *src) | copy, | ||
| int | flags | ||
| ) |
Append an AVPacket to the list.
| list | A PacketList |
| pkt | The packet being appended. The data described in it will be made reference counted if it isn't already. |
| copy | A callback to copy the contents of the packet to the list. May be null, in which case the packet's reference will be moved to the list. |
Definition at line 40 of file packet_list.c.
Referenced by aiff_write_packet(), av_read_frame(), avformat_find_stream_info(), avformat_queue_attached_pictures(), ff_decklink_packet_queue_put(), flac_write_packet(), handle_new_packet(), mov_write_packet(), mov_write_ttml_document_from_queue(), mp3_write_packet(), parse_packet(), and tta_write_packet().
| int ff_packet_list_get | ( | PacketList * | list, |
| AVPacket * | pkt | ||
| ) |
Remove the oldest AVPacket in the list and return it.
| head | A pointer to a PacketList struct |
| pkt | Pointer to an AVPacket struct |
Definition at line 89 of file packet_list.c.
Referenced by av_read_frame(), ff_decklink_packet_queue_flush(), ff_decklink_packet_queue_get(), ff_interleave_packet_per_dts(), ff_read_packet(), flac_queue_flush(), mov_write_ttml_document_from_queue(), mp3_queue_flush(), mxf_interleave_get_packet(), read_frame_internal(), and tta_queue_flush().
| void ff_packet_list_free | ( | PacketList * | pkt_buf | ) |
Wipe the list and unref all the packets in it.
Definition at line 103 of file packet_list.c.
Referenced by aiff_deinit(), avformat_free_context(), ff_flush_packet_queue(), flac_deinit(), matroska_parse_laces(), mov_free(), mov_write_ttml_document_from_queue(), mp3_deinit(), and tta_deinit().
1.8.17