FFmpeg
|
frame.h
Go to the documentation of this file.
167 * DTS copied from the AVPacket that triggered returning this frame. (if frame threading isnt used)
223 int16_t (*motion_val[2])[2];
243 int8_t *ref_index[2];
void av_frame_set_best_effort_timestamp(AVFrame *frame, int64_t val)
int64_t pkt_pos
reordered pos from the last AVPacket that has been input into the decoder Code outside libavcodec sho...
Definition: frame.h:382
int repeat_pict
When decoding, this signals how much the picture must be delayed.
Definition: frame.h:265
external API header
int av_frame_get_decode_error_flags(const AVFrame *frame)
int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
Copy only "metadata" fields from src to dst.
Definition: frame.c:424
attribute_deprecated void * hwaccel_picture_private
Definition: frame.h:308
void av_frame_set_pkt_duration(AVFrame *frame, int64_t val)
Public dictionary API.
AVDictionary ** avpriv_frame_get_metadatap(AVFrame *frame)
Definition: frame.c:49
void av_frame_move_ref(AVFrame *dst, AVFrame *src)
Move everythnig contained in src to dst and reset src.
Definition: frame.c:352
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
Definition: frame.h:159
AVBufferRef * av_frame_get_plane_buffer(AVFrame *frame, int plane)
Get the buffer reference a given data plane is stored in.
Definition: frame.c:489
Definition: frame.h:40
int64_t av_frame_get_pkt_duration(const AVFrame *frame)
int av_frame_set_qp_table(AVFrame *f, AVBufferRef *buf, int stride, int type)
Definition: frame.c:51
Libavcodec version macros.
void av_frame_set_pkt_size(AVFrame *frame, int val)
Definition: dict.c:28
void av_frame_set_pkt_pos(AVFrame *frame, int64_t val)
void av_frame_set_channels(AVFrame *frame, int val)
AVFrameSideData * av_frame_new_side_data(AVFrame *frame, enum AVFrameSideDataType type, int size)
Add a new side data to a frame.
Definition: frame.c:520
int av_frame_is_writable(AVFrame *frame)
Check if the frame data is writable.
Definition: frame.c:361
int av_frame_get_channels(const AVFrame *frame)
void av_frame_set_metadata(AVFrame *frame, AVDictionary *val)
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.
Definition: frame.h:357
int64_t av_frame_get_best_effort_timestamp(const AVFrame *frame)
Accessors for some AVFrame fields.
AVBufferRef * qp_table_buf
Not to be accessed directly from outside libavutil.
Definition: frame.h:438
void av_frame_set_sample_rate(AVFrame *frame, int val)
AVFrame * av_frame_clone(AVFrame *src)
Create a new frame that references the same data as src.
Definition: frame.c:317
int format
format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames...
Definition: frame.h:134
int64_t pkt_duration
duration of the corresponding packet, expressed in AVStream->time_base units, 0 if unknown...
Definition: frame.h:392
int av_frame_get_pkt_size(const AVFrame *frame)
AVRational sample_aspect_ratio
Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.
Definition: frame.h:154
AVDictionary * av_frame_get_metadata(const AVFrame *frame)
int64_t reordered_opaque
reordered opaque 64bit (generally an integer or a double precision float PTS but can be anything)...
Definition: frame.h:302
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)
Definition: frame.h:320
AVFrame * av_frame_alloc(void)
Allocate an AVFrame and set its fields to default values.
Definition: frame.c:95
int palette_has_changed
Tell user application that palette has changed from previous frame.
Definition: frame.h:280
refcounted data buffer API
int64_t best_effort_timestamp
frame timestamp estimated using various heuristics, in stream time base Code outside libavcodec shoul...
Definition: frame.h:373
int av_frame_get_sample_rate(const AVFrame *frame)
int decode_error_flags
decode error flags of the frame, set to a combination of FF_DECODE_ERROR_xxx flags if the decoder pro...
Definition: frame.h:412
int64_t pkt_pts
PTS copied from the AVPacket that was decoded to produce this frame.
Definition: frame.h:164
int av_frame_make_writable(AVFrame *frame)
Ensure that the frame data is writable, avoiding data copy if possible.
Definition: frame.c:377
int64_t pkt_dts
DTS copied from the AVPacket that triggered returning this frame.
Definition: frame.h:171
attribute_deprecated uint32_t * mb_type
macroblock type table mb_type_base + mb_width + 2
Definition: frame.h:230
rational numbers
void av_frame_unref(AVFrame *frame)
Unreference all the buffers referenced by frame and reset the frame fields.
Definition: frame.c:330
int top_field_first
If the content is interlaced, is top field displayed first.
Definition: frame.h:275
int64_t av_frame_get_pkt_pos(const AVFrame *frame)
attribute_deprecated uint8_t * mbskip_table
mbskip_table[mb]>=1 if MB didn't change stride= mb_width = (width+15)>>4
Definition: frame.h:210
int8_t * av_frame_get_qp_table(AVFrame *f, int *stride, int *type)
Definition: frame.c:64
void av_frame_set_decode_error_flags(AVFrame *frame, int val)
void av_frame_set_channel_layout(AVFrame *frame, int64_t val)
int64_t av_frame_get_channel_layout(const AVFrame *frame)
struct AVFrameSideData AVFrameSideData
int av_frame_get_buffer(AVFrame *frame, int align)
Allocate new buffer(s) for audio or video data.
Definition: frame.c:215
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
Definition: frame.c:108
int pkt_size
size of the corresponding packet containing the compressed frame.
Definition: frame.h:433
AVFrameSideData * av_frame_get_side_data(AVFrame *frame, enum AVFrameSideDataType type)
Definition: frame.c:553
int av_frame_ref(AVFrame *dst, AVFrame *src)
Setup a new reference to the data described by an given frame.
Definition: frame.c:228
Generated on Mon Nov 18 2024 06:51:55 for FFmpeg by 1.8.11