Lines Matching defs:link
38 AVFilterBufferRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
45 if (av_image_alloc(data, linesize, w, h, link->format, 16) < 0)
49 perms, w, h, link->format);
58 AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int perms,
180 /* FIXME: samplesref is same as link->cur_buf. Need to consider removing the redundant parameter. */
206 int avfilter_default_config_output_link(AVFilterLink *link)
208 if (link->src->input_count && link->src->inputs[0]) {
209 if (link->type == AVMEDIA_TYPE_VIDEO) {
210 link->w = link->src->inputs[0]->w;
211 link->h = link->src->inputs[0]->h;
212 link->time_base = link->src->inputs[0]->time_base;
213 } else if (link->type == AVMEDIA_TYPE_AUDIO) {
214 link->channel_layout = link->src->inputs[0]->channel_layout;
215 link->sample_rate = link->src->inputs[0]->sample_rate;
219 * really should implement its own config_props() for this link. */
268 void avfilter_null_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
270 avfilter_start_frame(link->dst->outputs[0], picref);
273 void avfilter_null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
275 avfilter_draw_slice(link->dst->outputs[0], y, h, slice_dir);
278 void avfilter_null_end_frame(AVFilterLink *link)
280 avfilter_end_frame(link->dst->outputs[0]);
283 void avfilter_null_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref)
285 avfilter_filter_samples(link->dst->outputs[0], samplesref);
288 AVFilterBufferRef *avfilter_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
290 return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);
293 AVFilterBufferRef *avfilter_null_get_audio_buffer(AVFilterLink *link, int perms,
297 return avfilter_get_audio_buffer(link->dst->outputs[0], perms, sample_fmt,