FFmpeg
Data Structures | Macros | Functions
packet_internal.h File Reference
#include <stdint.h>
#include "packet.h"

Go to the source code of this file.

Data Structures

struct   PacketListEntry
 
struct   PacketList
 

Macros

#define  AVPACKET_IS_EMPTY(pkt)   (!(pkt)->data && !(pkt)->side_data_elems)
 
#define  FF_PACKETLIST_FLAG_PREPEND   (1 << 0)
  Prepend created AVPacketList instead of appending. More...
 

Functions

  Append an AVPacket to the list. More...
 
  Remove the oldest AVPacket in the list and return it. More...
 
  Wipe the list and unref all the packets in it. More...
 
 

Macro Definition Documentation

AVPACKET_IS_EMPTY

#define AVPACKET_IS_EMPTY (   pkt )    (!(pkt)->data && !(pkt)->side_data_elems)

Definition at line 26 of file packet_internal.h.

FF_PACKETLIST_FLAG_PREPEND

#define FF_PACKETLIST_FLAG_PREPEND   (1 << 0)

Prepend created AVPacketList instead of appending.

Definition at line 37 of file packet_internal.h.

Function Documentation

avpriv_packet_list_put()

int avpriv_packet_list_put ( PacketListlist,
AVPacketpkt,
int(*)(AVPacket *dst, const AVPacket *srccopy,
int  flags 
)

Append an AVPacket to the list.

Parameters
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.
Returns
0 on success, negative AVERROR value on failure. On failure, the packet and the list are unchanged.

Definition at line 546 of file packet.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().

avpriv_packet_list_get()

int avpriv_packet_list_get ( PacketListlist,
AVPacketpkt 
)

Remove the oldest AVPacket in the list and return it.

Note
The pkt will be overwritten completely on success. The caller owns the packet and must unref it by itself.
Parameters
head A pointer to a PacketList struct
pkt Pointer to an AVPacket struct
Returns
0 on success, and a packet is returned. AVERROR(EAGAIN) if the list was empty.

Definition at line 595 of file packet.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().

avpriv_packet_list_free()

void avpriv_packet_list_free ( PacketListlist )

Wipe the list and unref all the packets in it.

Definition at line 609 of file packet.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().

ff_side_data_set_prft()

int ff_side_data_set_prft ( AVPacketpkt,
int64_t  timestamp 
)

Definition at line 622 of file packet.c.

Referenced by X264_frame().


Generated on Tue Nov 18 2025 19:23:59 for FFmpeg by   doxygen 1.8.17

AltStyle によって変換されたページ (->オリジナル) /