libavfilter/defaults.c File Reference

#include "libavutil/audioconvert.h"
#include "libavutil/imgutils.h"
#include "libavutil/samplefmt.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Functions

void ff_avfilter_default_free_buffer (AVFilterBuffer *ptr)
 default handler for freeing audio/video buffer when there are no references left
AVFilterBufferRefavfilter_default_get_video_buffer (AVFilterLink *link, int perms, int w, int h)
 default handler for get_video_buffer() for video inputs
AVFilterBufferRefavfilter_default_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples)
 default handler for get_audio_buffer() for audio inputs
void avfilter_default_start_frame (AVFilterLink *inlink, AVFilterBufferRef *picref)
 default handler for start_frame() for video inputs
void avfilter_default_draw_slice (AVFilterLink *inlink, int y, int h, int slice_dir)
 default handler for draw_slice() for video inputs
void avfilter_default_end_frame (AVFilterLink *inlink)
 default handler for end_frame() for video inputs
void avfilter_default_filter_samples (AVFilterLink *inlink, AVFilterBufferRef *samplesref)
 default handler for filter_samples() for audio inputs
static void set_common_formats (AVFilterContext *ctx, AVFilterFormats *fmts, enum AVMediaType type, int offin, int offout)
void avfilter_set_common_pixel_formats (AVFilterContext *ctx, AVFilterFormats *formats)
 Helpers for query_formats() which set all links to the same list of formats/layouts.
void avfilter_set_common_sample_formats (AVFilterContext *ctx, AVFilterFormats *formats)
void avfilter_set_common_channel_layouts (AVFilterContext *ctx, AVFilterFormats *formats)
void avfilter_set_common_packing_formats (AVFilterContext *ctx, AVFilterFormats *formats)
int avfilter_default_query_formats (AVFilterContext *ctx)
 Default handler for query_formats().
void avfilter_null_start_frame (AVFilterLink *link, AVFilterBufferRef *picref)
 start_frame() handler for filters which simply pass video along
void avfilter_null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir)
 draw_slice() handler for filters which simply pass video along
void avfilter_null_end_frame (AVFilterLink *link)
 end_frame() handler for filters which simply pass video along
void avfilter_null_filter_samples (AVFilterLink *link, AVFilterBufferRef *samplesref)
 filter_samples() handler for filters which simply pass audio along
AVFilterBufferRefavfilter_null_get_video_buffer (AVFilterLink *link, int perms, int w, int h)
 get_video_buffer() handler for filters which simply pass video along
AVFilterBufferRefavfilter_null_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples)
 get_audio_buffer() handler for filters which simply pass audio along


Function Documentation

void avfilter_default_draw_slice ( AVFilterLink inlink,
int  y,
int  h,
int  slice_dir 
)

default handler for draw_slice() for video inputs

Definition at line 123 of file defaults.c.

Referenced by avfilter_draw_slice().

void avfilter_default_end_frame ( AVFilterLink inlink  ) 

default handler for end_frame() for video inputs

Definition at line 134 of file defaults.c.

Referenced by avfilter_end_frame(), and end_frame().

void avfilter_default_filter_samples ( AVFilterLink inlink,
AVFilterBufferRef samplesref 
)

default handler for filter_samples() for audio inputs

Definition at line 154 of file defaults.c.

Referenced by avfilter_filter_samples().

AVFilterBufferRef* avfilter_default_get_audio_buffer ( AVFilterLink link,
int  perms,
int  nb_samples 
)

default handler for get_audio_buffer() for audio inputs

Definition at line 83 of file defaults.c.

Referenced by avfilter_default_filter_samples(), avfilter_filter_samples(), and avfilter_get_audio_buffer().

AVFilterBufferRef* avfilter_default_get_video_buffer ( AVFilterLink link,
int  perms,
int  w,
int  h 
)

default handler for get_video_buffer() for video inputs

Definition at line 37 of file defaults.c.

Referenced by avfilter_get_video_buffer(), and get_video_buffer().

int avfilter_default_query_formats ( AVFilterContext ctx  ) 

Default handler for query_formats().

Definition at line 223 of file defaults.c.

Referenced by main(), and query_formats().

void avfilter_default_start_frame ( AVFilterLink inlink,
AVFilterBufferRef picref 
)

default handler for start_frame() for video inputs

Definition at line 109 of file defaults.c.

Referenced by avfilter_start_frame().

void avfilter_null_draw_slice ( AVFilterLink link,
int  y,
int  h,
int  slice_dir 
)

draw_slice() handler for filters which simply pass video along

Definition at line 238 of file defaults.c.

void avfilter_null_end_frame ( AVFilterLink link  ) 

end_frame() handler for filters which simply pass video along

Definition at line 243 of file defaults.c.

void avfilter_null_filter_samples ( AVFilterLink link,
AVFilterBufferRef samplesref 
)

filter_samples() handler for filters which simply pass audio along

Definition at line 248 of file defaults.c.

AVFilterBufferRef* avfilter_null_get_audio_buffer ( AVFilterLink link,
int  perms,
int  nb_samples 
)

get_audio_buffer() handler for filters which simply pass audio along

Definition at line 258 of file defaults.c.

AVFilterBufferRef* avfilter_null_get_video_buffer ( AVFilterLink link,
int  perms,
int  w,
int  h 
)

get_video_buffer() handler for filters which simply pass video along

Definition at line 253 of file defaults.c.

void avfilter_null_start_frame ( AVFilterLink link,
AVFilterBufferRef picref 
)

start_frame() handler for filters which simply pass video along

Definition at line 233 of file defaults.c.

void avfilter_set_common_channel_layouts ( AVFilterContext ctx,
AVFilterFormats formats 
)

Definition at line 209 of file defaults.c.

Referenced by avfilter_default_query_formats(), and query_formats().

void avfilter_set_common_packing_formats ( AVFilterContext ctx,
AVFilterFormats formats 
)

Definition at line 216 of file defaults.c.

Referenced by avfilter_default_query_formats(), and query_formats().

void avfilter_set_common_pixel_formats ( AVFilterContext ctx,
AVFilterFormats formats 
)

Helpers for query_formats() which set all links to the same list of formats/layouts.

If there are no links hooked to this filter, the list of formats is freed.

Definition at line 195 of file defaults.c.

Referenced by avfilter_default_query_formats(), and query_formats().

void avfilter_set_common_sample_formats ( AVFilterContext ctx,
AVFilterFormats formats 
)

Definition at line 202 of file defaults.c.

Referenced by avfilter_default_query_formats(), and query_formats().

void ff_avfilter_default_free_buffer ( AVFilterBuffer ptr  ) 

default handler for freeing audio/video buffer when there are no references left

Definition at line 28 of file defaults.c.

Referenced by avfilter_get_audio_buffer_ref_from_arrays(), and avfilter_get_video_buffer_ref_from_arrays().

static void set_common_formats ( AVFilterContext ctx,
AVFilterFormats fmts,
enum AVMediaType  type,
int  offin,
int  offout 
) [static]


Generated on Fri Oct 26 02:43:51 2012 for FFmpeg by  doxygen 1.5.8