FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
avfilter.h File Reference

external API header More...

#include <stddef.h>
#include "libavutil/avutil.h"
#include "libavutil/dict.h"
#include "libavutil/log.h"
#include "libavutil/samplefmt.h"
#include "libavutil/pixfmt.h"
#include "libavutil/rational.h"
#include "libavfilter/version.h"

Go to the source code of this file.

Data Structures

struct  AVFilterBuffer
 A reference-counted buffer data type used by the filter system. More...
 
struct  AVFilterBufferRefAudioProps
 Audio specific properties in a reference to an AVFilterBuffer. More...
 
struct  AVFilterBufferRefVideoProps
 Video specific properties in a reference to an AVFilterBuffer. More...
 
struct  AVFilterBufferRef
 A reference to an AVFilterBuffer. More...
 
struct  AVFilter
 Filter definition. More...
 
struct  AVFilterContext
 An instance of a filter. More...
 
struct  AVFilterLink
 A link between two filters. More...
 

Macros

#define AV_PERM_READ   0x01
 can read from the buffer
 
#define AV_PERM_WRITE   0x02
 can write to the buffer
 
#define AV_PERM_PRESERVE   0x04
 nobody else can overwrite the buffer
 
#define AV_PERM_REUSE   0x08
 can output the buffer multiple times, with the same contents each time
 
#define AV_PERM_REUSE2   0x10
 can output the buffer multiple times, modified each time
 
#define AV_PERM_NEG_LINESIZES   0x20
 the buffer requested can have negative linesizes
 
#define AV_PERM_ALIGN   0x40
 the buffer must be aligned
 
#define AVFILTER_ALIGN   16
 
#define AVFILTER_CMD_FLAG_ONE   1
 Stop once a filter understood the command (for target=all for example), fast filters are favored automatically.
 
#define AVFILTER_CMD_FLAG_FAST   2
 Only execute command when its fast (like a video out that supports contrast adjustment in hw)
 

Functions

unsigned avfilter_version (void)
 Return the LIBAVFILTER_VERSION_INT constant.
 
const char * avfilter_configuration (void)
 Return the libavfilter build-time configuration.
 
const char * avfilter_license (void)
 Return the libavfilter license.
 
const AVClassavfilter_get_class (void)
 Get the class for the AVFilterContext struct.
 
void avfilter_copy_buffer_ref_props (AVFilterBufferRef *dst, AVFilterBufferRef *src)
 Copy properties of src to dst, without copying the actual data.
 
AVFilterBufferRefavfilter_ref_buffer (AVFilterBufferRef *ref, int pmask)
 Add a new reference to a buffer.
 
void avfilter_unref_buffer (AVFilterBufferRef *ref)
 Remove a reference to a buffer.
 
void avfilter_unref_bufferp (AVFilterBufferRef **ref)
 Remove a reference to a buffer and set the pointer to NULL.
 
int avfilter_ref_get_channels (AVFilterBufferRef *ref)
 Get the number of channels of a buffer reference.
 
const char * avfilter_pad_get_name (AVFilterPad *pads, int pad_idx)
 Get the name of an AVFilterPad.
 
enum AVMediaType avfilter_pad_get_type (AVFilterPad *pads, int pad_idx)
 Get the type of an AVFilterPad.
 
int avfilter_link (AVFilterContext *src, unsigned srcpad, AVFilterContext *dst, unsigned dstpad)
 Link two filters together.
 
void avfilter_link_free (AVFilterLink **link)
 Free the link in *link, and set its pointer to NULL.
 
int avfilter_link_get_channels (AVFilterLink *link)
 Get the number of channels of a link.
 
void avfilter_link_set_closed (AVFilterLink *link, int closed)
 Set the closed field of a link.
 
int avfilter_config_links (AVFilterContext *filter)
 Negotiate the media format, dimensions, etc of all inputs to a filter.
 
AVFilterBufferRefavfilter_get_video_buffer_ref_from_arrays (uint8_t *const data[4], const int linesize[4], int perms, int w, int h, enum AVPixelFormat format)
 Create a buffer reference wrapped around an already allocated image buffer.
 
AVFilterBufferRefavfilter_get_audio_buffer_ref_from_arrays (uint8_t **data, int linesize, int perms, int nb_samples, enum AVSampleFormat sample_fmt, uint64_t channel_layout)
 Create an audio buffer reference wrapped around an already allocated samples buffer.
 
AVFilterBufferRefavfilter_get_audio_buffer_ref_from_arrays_channels (uint8_t **data, int linesize, int perms, int nb_samples, enum AVSampleFormat sample_fmt, int channels, uint64_t channel_layout)
 Create an audio buffer reference wrapped around an already allocated samples buffer.
 
int avfilter_process_command (AVFilterContext *filter, const char *cmd, const char *arg, char *res, int res_len, int flags)
 Make the filter instance process a command.
 
void avfilter_register_all (void)
 Initialize the filter system.
 
void avfilter_uninit (void)
 Uninitialize the filter system.
 
int avfilter_register (AVFilter *filter)
 Register a filter.
 
AVFilteravfilter_get_by_name (const char *name)
 Get a filter definition matching the given name.
 
AVFilter ** av_filter_next (AVFilter **filter)
 If filter is NULL, returns a pointer to the first registered filter pointer, if filter is non-NULL, returns the next pointer after filter.
 
int avfilter_open (AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name)
 Create a filter instance.
 
int avfilter_init_filter (AVFilterContext *filter, const char *args, void *opaque)
 Initialize a filter.
 
void avfilter_free (AVFilterContext *filter)
 Free a filter context.
 
int avfilter_insert_filter (AVFilterLink *link, AVFilterContext *filt, unsigned filt_srcpad_idx, unsigned filt_dstpad_idx)
 Insert a filter in the middle of an existing link.
 

Detailed Description

external API header

Definition in file avfilter.h.