|
int64_t | av_frame_get_best_effort_timestamp (const AVFrame *frame) |
| Accessors for some AVFrame fields. More...
|
|
void | av_frame_set_best_effort_timestamp (AVFrame *frame, int64_t val) |
|
int64_t | av_frame_get_pkt_duration (const AVFrame *frame) |
|
void | av_frame_set_pkt_duration (AVFrame *frame, int64_t val) |
|
int64_t | av_frame_get_pkt_pos (const AVFrame *frame) |
|
void | av_frame_set_pkt_pos (AVFrame *frame, int64_t val) |
|
int64_t | av_frame_get_channel_layout (const AVFrame *frame) |
|
void | av_frame_set_channel_layout (AVFrame *frame, int64_t val) |
|
int | av_frame_get_channels (const AVFrame *frame) |
|
void | av_frame_set_channels (AVFrame *frame, int val) |
|
int | av_frame_get_sample_rate (const AVFrame *frame) |
|
void | av_frame_set_sample_rate (AVFrame *frame, int val) |
|
AVDictionary * | av_frame_get_metadata (const AVFrame *frame) |
|
void | av_frame_set_metadata (AVFrame *frame, AVDictionary *val) |
|
int | av_frame_get_decode_error_flags (const AVFrame *frame) |
|
void | av_frame_set_decode_error_flags (AVFrame *frame, int val) |
|
int | av_frame_get_pkt_size (const AVFrame *frame) |
|
void | av_frame_set_pkt_size (AVFrame *frame, int val) |
|
AVDictionary ** | avpriv_frame_get_metadatap (AVFrame *frame) |
|
int8_t * | av_frame_get_qp_table (AVFrame *f, int *stride, int *type) |
|
int | av_frame_set_qp_table (AVFrame *f, AVBufferRef *buf, int stride, int type) |
|
enum AVColorSpace | av_frame_get_colorspace (const AVFrame *frame) |
|
void | av_frame_set_colorspace (AVFrame *frame, enum AVColorSpace val) |
|
enum AVColorRange | av_frame_get_color_range (const AVFrame *frame) |
|
void | av_frame_set_color_range (AVFrame *frame, enum AVColorRange val) |
|
const char * | av_get_colorspace_name (enum AVColorSpace val) |
| Get the name of a colorspace. More...
|
|
AVFrame * | av_frame_alloc (void) |
| Allocate an AVFrame and set its fields to default values. More...
|
|
void | av_frame_free (AVFrame **frame) |
| Free the frame and any dynamically allocated objects in it, e.g. More...
|
|
int | av_frame_ref (AVFrame *dst, AVFrame *src) |
| Setup a new reference to the data described by a given frame. More...
|
|
AVFrame * | av_frame_clone (AVFrame *src) |
| Create a new frame that references the same data as src. More...
|
|
void | av_frame_unref (AVFrame *frame) |
| Unreference all the buffers referenced by frame and reset the frame fields. More...
|
|
void | av_frame_move_ref (AVFrame *dst, AVFrame *src) |
| Move everythnig contained in src to dst and reset src. More...
|
|
int | av_frame_get_buffer (AVFrame *frame, int align) |
| Allocate new buffer(s) for audio or video data. More...
|
|
int | av_frame_is_writable (AVFrame *frame) |
| Check if the frame data is writable. More...
|
|
int | av_frame_make_writable (AVFrame *frame) |
| Ensure that the frame data is writable, avoiding data copy if possible. More...
|
|
int | av_frame_copy_props (AVFrame *dst, const AVFrame *src) |
| Copy only "metadata" fields from src to dst. More...
|
|
AVBufferRef * | av_frame_get_plane_buffer (AVFrame *frame, int plane) |
| Get the buffer reference a given data plane is stored in. More...
|
|
AVFrameSideData * | av_frame_new_side_data (AVFrame *frame, enum AVFrameSideDataType type, int size) |
| Add a new side data to a frame. More...
|
|
AVFrameSideData * | av_frame_get_side_data (const AVFrame *frame, enum AVFrameSideDataType type) |
|
int av_frame_get_buffer |
( |
AVFrame * |
frame, |
|
|
int |
align |
|
) |
| |
Allocate new buffer(s) for audio or video data.
The following fields must be set on frame before calling this function:
- format (pixel format for video, sample format for audio)
- width and height for video
- nb_samples and channel_layout for audio
This function will fill AVFrame.data and AVFrame.buf arrays and, if necessary, allocate and fill AVFrame.extended_data and AVFrame.extended_buf. For planar formats, one buffer will be allocated for each plane.
- Parameters
-
frame | frame in which to store the new buffers. |
align | required buffer size alignment |
- Returns
- 0 on success, a negative AVERROR on error.
Definition at line 234 of file frame.c.