libavfilter/avcodec.h File Reference

libavcodec/libavfilter gluing utilities More...

#include "libavcodec/avcodec.h"
#include "avfilter.h"
#include "vsrc_buffer.h"

Go to the source code of this file.

Functions

int avfilter_copy_frame_props (AVFilterBufferRef *dst, const AVFrame *src)
 Copy the frame properties of src to dst, without copying the actual image data.
AVFilterBufferRefavfilter_get_video_buffer_ref_from_frame (const AVFrame *frame, int perms)
 Create and return a picref reference from the data and properties contained in frame.
int avfilter_fill_frame_from_video_buffer_ref (AVFrame *frame, const AVFilterBufferRef *picref)
 Fill an AVFrame with the information stored in picref.
int av_vsrc_buffer_add_frame (AVFilterContext *buffer_src, const AVFrame *frame, int flags)
 Add frame data to buffer_src.

Detailed Description

libavcodec/libavfilter gluing utilities

This should be included in an application ONLY if the installed libavfilter has been compiled with libavcodec support, otherwise symbols defined below will not be available.

Definition in file avcodec.h.


Function Documentation

int av_vsrc_buffer_add_frame ( AVFilterContext buffer_src,
const AVFrame frame,
int  flags 
)

Add frame data to buffer_src.

Parameters:
buffer_srcpointer to a buffer source context
flagsa combination of AV_VSRC_BUF_FLAG_* flags
Returns:
>= 0 in case of success, a negative AVERROR code in case of failure
int avfilter_copy_frame_props ( AVFilterBufferRef dst,
const AVFrame src 
)

Copy the frame properties of src to dst, without copying the actual image data.

Definition at line 26 of file avcodec.c.

Fill an AVFrame with the information stored in picref.

Parameters:
framean already allocated AVFrame
picrefa video buffer reference
Returns:
0 in case of success, a negative AVERROR code in case of failure

Definition at line 59 of file avcodec.c.

Create and return a picref reference from the data and properties contained in frame.

Parameters:
permspermissions to assign to the new buffer reference

Definition at line 46 of file avcodec.c.