37 int i, nb_outputs = 2;
40 nb_outputs = strtol(args,
NULL, 0);
41 if (nb_outputs <= 0) {
48 for (i = 0; i < nb_outputs; i++) {
52 snprintf(name,
sizeof(name),
"output%d", i);
memory handling functions
int ff_filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)
Send a frame of data to the next filter.
enum AVMediaType type
AVFilterPad type.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
const char * name
Pad name.
AVFilterPad * output_pads
array of output pads
void avfilter_unref_bufferp(AVFilterBufferRef **ref)
Remove a reference to a buffer and set the pointer to NULL.
AVFilter avfilter_vf_split
A filter pad used for either input or output.
A link between two filters.
unsigned nb_outputs
number of output pads
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
static const AVFilterPad avfilter_af_asplit_inputs[]
AVFilterBufferRef * avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
Add a new reference to a buffer.
common internal API header
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *frame)
static void ff_insert_outpad(AVFilterContext *f, unsigned index, AVFilterPad *p)
Insert a new output pad for the filter.
const AVFilterPad * inputs
NULL terminated list of inputs. NULL if none.
A reference to an AVFilterBuffer.
static const AVFilterPad avfilter_vf_split_inputs[]
static void split_uninit(AVFilterContext *ctx)
char * av_strdup(const char *s)
Duplicate the string s.
static int split_init(AVFilterContext *ctx, const char *args)
const char * name
filter name
AVFilterLink ** outputs
array of pointers to output links
#define AV_PERM_WRITE
can write to the buffer
AVFilterContext * dst
dest filter
AVFilter * filter
the AVFilter of which this is an instance
AVFilterBufferRef * ff_null_get_audio_buffer(AVFilterLink *link, int perms, int nb_samples)
get_audio_buffer() handler for filters which simply pass audio along
AVFilter avfilter_af_asplit
AVFilterBufferRef * ff_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)