21 #ifndef AVCODEC_PACKET_H 22 #define AVCODEC_PACKET_H 304 #define AV_PKT_DATA_QUALITY_FACTOR AV_PKT_DATA_QUALITY_STATS //DEPRECATED 385 #if FF_API_CONVERGENCE_DURATION 392 int64_t convergence_duration;
401 #define AV_PKT_FLAG_KEY 0x0001 402 #define AV_PKT_FLAG_CORRUPT 0x0002
408 #define AV_PKT_FLAG_DISCARD 0x0004 415 #define AV_PKT_FLAG_TRUSTED 0x0008 420 #define AV_PKT_FLAG_DISPOSABLE 0x0010 514 #if FF_API_AVPACKET_OLD_API 603 #if FF_API_MERGE_SD_API 736 #endif // AVCODEC_PACKET_H AVSideDataParamChangeFlags
Producer Reference Time data corresponding to the AVProducerReferenceTime struct, usually exported by...
A list of zero terminated key/value strings.
The optional first identifier line of a WebVTT cue.
ptrdiff_t const GLvoid * data
int64_t pos
byte position in stream, -1 if unknown
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
This side data should be associated with a video stream and contains Stereoscopic 3D information in f...
ATSC A53 Part 4 Closed Captions.
This side data contains an integer value representing the stream index of a "fallback" track...
An AV_PKT_DATA_H263_MB_INFO side data packet contains a number of structures with info about macroblo...
Macro definitions for various function/variable attributes.
Mastering display metadata (based on SMPTE-2086:2014).
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
int av_packet_unpack_dictionary(const uint8_t *data, int size, AVDictionary **dict)
Unpack a dictionary from side_data.
int av_packet_split_side_data(AVPacket *pkt)
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...
int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size)
Initialize a reference-counted packet from av_malloc()ed data.
int av_packet_merge_side_data(AVPacket *pkt)
This side data is encryption initialization data.
void av_packet_move_ref(AVPacket *dst, AVPacket *src)
Move every field in src to dst and reset src.
int av_packet_ref(AVPacket *dst, const AVPacket *src)
Setup a new reference to the data described by a given packet.
int av_packet_make_writable(AVPacket *pkt)
Create a writable reference for the data described by a given packet, avoiding data copy if possible...
MPEGTS stream ID as uint8_t, this is required to pass the stream ID information from the demuxer to t...
Libavcodec version macros.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
DOVI configuration ref: dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2, section 2.2 dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2, section 3.3 Tags are stored in struct AVDOVIDecoderConfigurationRecord.
An AV_PKT_DATA_PALETTE side data packet contains exactly AVPALETTE_SIZE bytes worth of palette...
AVPacket * av_packet_clone(const AVPacket *src)
Create a new packet that references the same data as src.
void av_packet_rescale_ts(AVPacket *pkt, AVRational tb_src, AVRational tb_dst)
Convert valid timing fields (timestamps / durations) in a packet from one timebase to another...
An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows:
uint8_t * av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type, int *size)
Get side information from packet.
void av_packet_free_side_data(AVPacket *pkt)
Convenience function to free all the side data stored.
ICC profile data consisting of an opaque octet buffer following the format described by ISO 15076-1...
AVBufferRef * buf
A reference to the reference-counted buffer where the packet data is stored.
enum AVPacketSideDataType type
int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size)
Shrink the already allocated side data buffer.
int flags
A combination of AV_PKT_FLAG values.
int av_copy_packet_side_data(AVPacket *pkt, const AVPacket *src)
int av_packet_copy_props(AVPacket *dst, const AVPacket *src)
Copy only "properties" fields from src to dst.
This side data contains quality related information from the encoder.
int av_packet_make_refcounted(AVPacket *pkt)
Ensure the data described by a given packet is reference counted.
This side data should be associated with a video stream and corresponds to the AVSphericalMapping str...
Active Format Description data consisting of a single byte as specified in ETSI TS 101 154 using AVAc...
Content light level (based on CTA-861.3).
The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format that the extradata buffer was...
A list of zero terminated key/value strings.
uint8_t * av_packet_pack_dictionary(AVDictionary *dict, int *size)
Pack a dictionary for use in side_data.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
Data found in BlockAdditional element of matroska container.
Rational number (pair of numerator and denominator).
Recommmends skipping the specified number of samples.
int av_packet_add_side_data(AVPacket *pkt, enum AVPacketSideDataType type, uint8_t *data, size_t size)
Wrap an existing array as a packet side data.
FF_DISABLE_DEPRECATION_WARNINGS void av_free_packet(AVPacket *pkt)
refcounted data buffer API
This side data contains encryption info for how to decrypt the packet.
int av_copy_packet(AVPacket *dst, const AVPacket *src)
This side data should be associated with an audio stream and contains ReplayGain information in form ...
#define attribute_deprecated
Timecode which conforms to SMPTE ST 12-1:2014.
A reference to a data buffer.
An AV_PKT_DATA_JP_DUALMONO side data packet indicates that the packet may contain "dual mono" audio s...
AVPacketSideData * side_data
Additional packet data that can be provided by the container.
struct AVPacketList * next
Utilties for rational number calculation.
int av_grow_packet(AVPacket *pkt, int grow_by)
Increase packet size, correctly zeroing padding.
void av_init_packet(AVPacket *pkt)
Initialize optional fields of a packet with default values.
The optional settings (rendering instructions) that immediately follow the timestamp specifier of a W...
int av_dup_packet(AVPacket *pkt)
AVPacket * av_packet_alloc(void)
Allocate an AVPacket and set its fields to default values.
This side data corresponds to the AVCPBProperties struct.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
const char * av_packet_side_data_name(enum AVPacketSideDataType type)
uint8_t * av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size)
Allocate new information of a packet.
The number of side data types.
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
This side data should be associated with an audio stream and corresponds to enum AVAudioServiceType.