26 #ifndef AVUTIL_FRAME_H
27 #define AVUTIL_FRAME_H
136 #define AV_NUM_DATA_POINTERS 8
198 #if FF_API_AVFRAME_LAVC
237 #if FF_API_AVFRAME_LAVC
306 #if FF_API_AVFRAME_LAVC
332 #if FF_API_AVFRAME_LAVC
354 #if FF_API_AVFRAME_LAVC
426 #define AV_FRAME_FLAG_CORRUPT (1 << 0)
#define AV_NUM_DATA_POINTERS
This structure describes decoded (raw) audio or video data.
attribute_deprecated int qscale_type
AVBufferRef * buf[AV_NUM_DATA_POINTERS]
AVBuffer references backing the data for this frame.
void * opaque
for some private data of the user
int nb_extended_buf
Number of elements in extended_buf.
int repeat_pict
When decoding, this signals how much the picture must be delayed.
void av_frame_move_ref(AVFrame *dst, AVFrame *src)
Move everythnig contained in src to dst and reset src.
attribute_deprecated int8_t * qscale_table
QP table.
AVColorTransferCharacteristic
Color Transfer Characteristic.
AVFrameSideData * av_frame_get_side_data(const AVFrame *frame, enum AVFrameSideDataType type)
attribute_deprecated void * hwaccel_picture_private
AVFrame * av_frame_alloc(void)
Allocate an AVFrame and set its fields to default values.
AVColorSpace
YUV colorspace type.
attribute_deprecated int qstride
QP store stride.
attribute_deprecated void * thread_opaque
int av_frame_ref(AVFrame *dst, const AVFrame *src)
Set up a new reference to the data described by the source frame.
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
The data is the AVPanScan struct defined in libavcodec.
int interlaced_frame
The content of the picture is interlaced.
AVColorRange
MPEG vs JPEG YUV range.
AVColorPrimaries
Chromaticity coordinates of the source primaries.
Active Format Description data consisting of a single byte as specified in ETSI TS 101 154 using enum...
Metadata relevant to a downmix procedure.
AVFrameSideData ** side_data
int width
width and height of the video frame
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
enum AVColorRange color_range
ATSC A53 Part 4 Closed Captions.
enum AVColorSpace colorspace
Libavutil version macros.
int av_frame_copy(AVFrame *dst, const AVFrame *src)
Copy the frame data from src to dst.
uint64_t channel_layout
Channel layout of the audio data.
enum AVPictureType pict_type
Picture type of the frame.
int flags
Frame flags, a combination of AV_FRAME_FLAGS.
int display_picture_number
picture number in display order
attribute_deprecated int buffer_hints
AVBufferRef ** extended_buf
For planar audio which requires more than AV_NUM_DATA_POINTERS AVBufferRef pointers, this array will hold all the references which cannot fit into AVFrame.buf.
attribute_deprecated int reference
AVBufferRef * av_frame_get_plane_buffer(AVFrame *frame, int plane)
Get the buffer reference a given data plane is stored in.
int quality
quality (between 1 (good) and FF_LAMBDA_MAX (bad))
attribute_deprecated uint8_t * base[AV_NUM_DATA_POINTERS]
AVFrame * av_frame_clone(const AVFrame *src)
Create a new frame that references the same data as src.
int format
format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames...
int coded_picture_number
picture number in bitstream order
uint64_t error[AV_NUM_DATA_POINTERS]
error
attribute_deprecated short * dct_coeff
DCT coefficients.
This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...
int av_frame_is_writable(AVFrame *frame)
Check if the frame data is writable.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
main external API structure.
AVRational sample_aspect_ratio
Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.
void av_frame_remove_side_data(AVFrame *frame, enum AVFrameSideDataType type)
If side data of the supplied type exists in the frame, free it and remove it from the frame...
int64_t reordered_opaque
reordered opaque 64bit (generally an integer or a double precision float PTS but can be anything)...
int sample_rate
Sample rate of the audio data.
AVFrameSideData * av_frame_new_side_data(AVFrame *frame, enum AVFrameSideDataType type, int size)
Add a new side data to a frame.
attribute_deprecated uint8_t motion_subsample_log2
log2 of the size of the block which a single vector in motion_val represents: (4->16x16, 3->8x8, 2-> 4x4, 1-> 2x2)
rational number numerator/denominator
int palette_has_changed
Tell user application that palette has changed from previous frame.
attribute_deprecated int16_t(*[2] motion_val)[2]
motion vector table
refcounted data buffer API
enum AVChromaLocation chroma_location
AVActiveFormatDescription
int64_t pkt_pts
PTS copied from the AVPacket that was decoded to produce this frame.
int av_frame_get_buffer(AVFrame *frame, int align)
Allocate new buffer(s) for audio or video data.
void av_frame_unref(AVFrame *frame)
Unreference all the buffers referenced by frame and reset the frame fields.
enum AVFrameSideDataType type
int av_frame_make_writable(AVFrame *frame)
Ensure that the frame data is writable, avoiding data copy if possible.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
#define attribute_deprecated
int64_t pkt_dts
DTS copied from the AVPacket that triggered returning this frame.
A reference to a data buffer.
attribute_deprecated uint32_t * mb_type
macroblock type table mb_type_base + mb_width + 2
attribute_deprecated struct AVCodecContext * owner
int top_field_first
If the content is interlaced, is top field displayed first.
int key_frame
1 -> keyframe, 0-> not
attribute_deprecated uint8_t * mbskip_table
mbskip_table[mb]>=1 if MB didn't change stride= mb_width = (width+15)>>4
enum AVColorPrimaries color_primaries
AVChromaLocation
Location of chroma samples.
enum AVColorTransferCharacteristic color_trc
attribute_deprecated struct AVPanScan * pan_scan
Pan scan.
ReplayGain information in the form of the AVReplayGain struct.
uint8_t ** extended_data
pointers to the data planes/channels.
attribute_deprecated int type
Stereoscopic 3d metadata.
attribute_deprecated int8_t * ref_index[2]
motion reference frame index the order in which these are stored can depend on the codec...
int nb_samples
number of audio samples (per channel) described by this frame
The data is the AVMatrixEncoding enum defined in libavutil/channel_layout.h.
int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
Copy only "metadata" fields from src to dst.