45 "ref[%p buf:%p data:%p linesize[%d, %d, %d, %d] pts:%"PRId64
" pos:%"PRId64,
51 ff_tlog(ctx,
" a:%d/%d s:%dx%d i:%c iskey:%d type:%c",
60 ff_tlog(ctx,
" cl:%"PRId64
"d n:%d r:%d",
66 ff_tlog(ctx,
"]%s", end ?
"\n" :
"");
77 return FFMPEG_CONFIGURATION;
82 #define LICENSE_PREFIX "libavfilter license: "
101 idx =
FFMIN(idx, *count);
105 memmove(*pads + idx + 1, *pads + idx,
sizeof(
AVFilterPad) * (*count - idx));
106 memmove(*links + idx + 1, *links + idx,
sizeof(
AVFilterLink*) * (*count - idx));
108 (*links)[idx] =
NULL;
111 for (i = idx + 1; i < *
count; i++)
113 (*(
unsigned *)((
uint8_t *) *links[i] + padidx_off))++;
127 "Media type mismatch between the '%s' filter output pad %d (%s) and the '%s' filter input pad %d (%s)\n",
171 unsigned filt_srcpad_idx,
unsigned filt_dstpad_idx)
177 "between the filter '%s' and the filter '%s'\n",
181 if ((ret =
avfilter_link(filt, filt_dstpad_idx, link->
dst, dstpad_idx)) < 0) {
190 filt->
inputs[filt_srcpad_idx] = link;
213 for (i = 0; i < filter->
nb_inputs; i ++) {
225 case AVLINK_STARTINIT:
237 "with more than one input "
238 "must set config_props() "
239 "callbacks on all outputs\n");
242 }
else if ((ret = config_link(link)) < 0) {
244 "Failed to configure output pad on %s\n",
249 switch (link->
type) {
266 }
else if (!link->
w || !link->
h) {
268 "Video source filters must set their output link's "
269 "width and height\n");
285 if ((ret = config_link(link)) < 0) {
287 "Failed to configure input pad on %s\n",
303 "link[%p s:%dx%d fmt:%s %s->%s]%s",
304 link, link->
w, link->
h,
314 "link[%p r:%d cl:%s fmt:%s %s->%s]%s",
356 int i,
min = INT_MAX;
366 min =
FFMIN(min, val);
403 "Error when evaluating the expression '%s' for enable\n",
427 if(!strcmp(cmd,
"ping")){
430 }
else if(!strcmp(cmd,
"enable")) {
448 if (!strcmp(f->
name, name))
465 || (!input->start_frame && !input->end_frame));
481 #if FF_API_OLD_FILTER_REGISTER
487 void avfilter_uninit(
void)
499 for (count = 0; pads->
name; count++)
539 #define OFFSET(x) offsetof(AVFilterContext, x)
540 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM
621 #if FF_API_AVFILTER_OPEN
625 return *filter_ctx ? 0 :
AVERROR(ENOMEM);
661 for (i = 0; i < filter->
nb_inputs; i++) {
702 const char *shorthand =
NULL;
714 &parsed_key, &
value);
764 #if FF_API_AVFILTER_INIT_FILTER
802 "options, but options were provided: %s.\n", args);
806 #if FF_API_OLD_FILTER_OPTS
807 if ( !strcmp(filter->
filter->
name,
"format") ||
810 !strcmp(filter->
filter->
name,
"frei0r_src") ||
827 if (!strcmp(filter->
filter->
name,
"frei0r") ||
830 else if (!strcmp(filter->
filter->
name,
"frei0r_src"))
833 while (nb_leading--) {
836 p = copy + strlen(copy);
842 deprecated = strchr(p,
':') !=
NULL;
844 if (!strcmp(filter->
filter->
name,
"aevalsrc")) {
846 while ((p = strchr(p,
':')) && p[1] !=
':') {
847 const char *epos = strchr(p + 1,
'=');
848 const char *spos = strchr(p + 1,
':');
849 const int next_token_is_opt = epos && (!spos || epos < spos);
850 if (next_token_is_opt) {
858 if (p && *p ==
':') {
860 memmove(p, p + 1, strlen(p));
863 while ((p = strchr(p,
':')))
868 "'|' to separate the list items.\n");
882 if (!strncmp(args,
"filter=", 7))
917 return pads[pad_idx].
name;
922 return pads[pad_idx].
type;
953 switch (link->
type) {
960 default:
return AVERROR(EINVAL);
968 switch (link->
type) {
979 default:
return AVERROR(EINVAL);
988 "Processing command time:%f command:%s arg:%s\n",
1029 "Samples dropped due to memory allocation failure.\n");