History

lavfi: make filters less verbose.

Anton Khirnov committed 14 years ago

Commit 1a49a161 parent ce0a97526 files · +37 −38Browse files

Unified · Split

26 files
  1. libavfilter/asrc_anullsrc.c +1 −1
  2. libavfilter/avfilter.c +1 −1
  3. libavfilter/buffersrc.c +1 −1
  4. libavfilter/fifo.c +0 −1
  5. libavfilter/vf_aspect.c +2 −2
  6. libavfilter/vf_blackframe.c +1 −1
  7. libavfilter/vf_crop.c +1 −1
  8. libavfilter/vf_cropdetect.c +1 −1
  9. libavfilter/vf_drawbox.c +1 −1
  10. libavfilter/vf_fade.c +1 −1
  11. libavfilter/vf_fieldorder.c +1 −1
  12. libavfilter/vf_frei0r.c +9 −9
  13. libavfilter/vf_gradfun.c +1 −1
  14. libavfilter/vf_hqdn3d.c +1 −1
  15. libavfilter/vf_libopencv.c +3 −3
  16. libavfilter/vf_overlay.c +2 −2
  17. libavfilter/vf_pad.c +1 −1
  18. libavfilter/vf_scale.c +1 −1
  19. libavfilter/vf_setpts.c +1 −1
  20. libavfilter/vf_settb.c +1 −1
  21. libavfilter/vf_transpose.c +1 −1
  22. libavfilter/vf_unsharp.c +1 −1
  23. libavfilter/vf_yadif.c +1 −1
  24. libavfilter/vsrc_color.c +1 −1
  25. libavfilter/vsrc_movie.c +1 −1
  26. libavfilter/vsrc_nullsrc.c +1 −1
libavfilter/asrc_anullsrc.c+1−1
@@ -68,7 +68,7 @@ static int config_props(AVFilterLink *outlink) · 67 unmodified lines
6868
6969 chans_nb = av_get_channel_layout_nb_channels(priv->channel_layout);
7070 av_get_channel_layout_string(buf, sizeof(buf), chans_nb, priv->channel_layout);
71− av_log(outlink->src, AV_LOG_INFO,
71+ av_log(outlink->src, AV_LOG_VERBOSE,
7272 "sample_rate:%"PRId64 " channel_layout:%"PRId64 " channel_layout_description:'%s'\n",
7373 priv->sample_rate, priv->channel_layout, buf);
7474
libavfilter/avfilter.c+1−1
@@ -101,7 +101,7 @@ int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt, · 100 unmodified lines
101101 int ret;
102102 unsigned dstpad_idx = link->dstpad - link->dst->input_pads;
103103
104− av_log(link->dst, AV_LOG_INFO, "auto-inserting filter '%s' "
104+ av_log(link->dst, AV_LOG_VERBOSE, "auto-inserting filter '%s' "
105105 "between the filter '%s' and the filter '%s'\n",
106106 filt->name, link->src->name, link->dst->name);
107107
libavfilter/buffersrc.c+1−1
@@ -178,7 +178,7 @@ static av_cold int init_video(AVFilterContext *ctx, const char *args) · 177 unmodified lines
178178 if (!(c->fifo = av_fifo_alloc(sizeof(AVFilterBufferRef*))))
179179 return AVERROR(ENOMEM);
180180
181− av_log(ctx, AV_LOG_INFO, "w:%d h:%d pixfmt:%s\n", c->w, c->h, av_pix_fmt_descriptors[c->pix_fmt].name);
181+ av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d pixfmt:%s\n", c->w, c->h, av_pix_fmt_descriptors[c->pix_fmt].name);
182182 return 0;
183183 }
184184
libavfilter/fifo.c+0−1
@@ -55,7 +55,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args) · 54 unmodified lines
5555 FifoContext *fifo = ctx->priv;
5656 fifo->last = &fifo->root;
5757
58− av_log(ctx, AV_LOG_INFO, "\n");
5958 return 0;
6059 }
6160
libavfilter/vf_aspect.c+2−2
@@ -60,7 +60,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) · 59 unmodified lines
6060 if (aspect->aspect.den == 0)
6161 aspect->aspect = (AVRational) {0, 1};
6262
63− av_log(ctx, AV_LOG_INFO, "a:%d/%d\n", aspect->aspect.num, aspect->aspect.den);
63+ av_log(ctx, AV_LOG_VERBOSE, "a:%d/%d\n", aspect->aspect.num, aspect->aspect.den);
6464 return 0;
6565 }
6666
@@ -83,7 +83,7 @@ static int setdar_config_props(AVFilterLink *inlink) · 16 unmodified lines
8383 aspect->aspect.num * inlink->h,
8484 aspect->aspect.den * inlink->w, 100);
8585
86− av_log(inlink->dst, AV_LOG_INFO, "w:%d h:%d -> dar:%d/%d sar:%d/%d\n",
86+ av_log(inlink->dst, AV_LOG_VERBOSE, "w:%d h:%d -> dar:%d/%d sar:%d/%d\n",
8787 inlink->w, inlink->h, dar.num, dar.den, aspect->aspect.num, aspect->aspect.den);
8888
8989 inlink->sample_aspect_ratio = aspect->aspect;
libavfilter/vf_blackframe.c+1−1
@@ -63,7 +63,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) · 62 unmodified lines
6363 if (args)
6464 sscanf(args, "%u:%u", &blackframe->bamount, &blackframe->bthresh);
6565
66− av_log(ctx, AV_LOG_INFO, "bamount:%u bthresh:%u\n",
66+ av_log(ctx, AV_LOG_VERBOSE, "bamount:%u bthresh:%u\n",
6767 blackframe->bamount, blackframe->bthresh);
6868
6969 if (blackframe->bamount > 100 || blackframe->bthresh > 255) {
libavfilter/vf_crop.c+1−1
@@ -207,7 +207,7 @@ static int config_input(AVFilterLink *link) · 206 unmodified lines
207207 NULL, NULL, NULL, NULL, 0, ctx)) < 0)
208208 return AVERROR(EINVAL);
209209
210− av_log(ctx, AV_LOG_INFO, "w:%d h:%d -> w:%d h:%d\n",
210+ av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d -> w:%d h:%d\n",
211211 link->w, link->h, crop->w, crop->h);
212212
213213 if (crop->w <= 0 || crop->h <= 0 ||
libavfilter/vf_cropdetect.c+1−1
@@ -92,7 +92,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) · 91 unmodified lines
9292 if (args)
9393 sscanf(args, "%d:%d:%d", &cd->limit, &cd->round, &cd->reset_count);
9494
95− av_log(ctx, AV_LOG_INFO, "limit:%d round:%d reset_count:%d\n",
95+ av_log(ctx, AV_LOG_VERBOSE, "limit:%d round:%d reset_count:%d\n",
9696 cd->limit, cd->round, cd->reset_count);
9797
9898 return 0;
libavfilter/vf_drawbox.c+1−1
@@ -87,7 +87,7 @@ static int config_input(AVFilterLink *inlink) · 86 unmodified lines
8787 if (drawbox->w == 0) drawbox->w = inlink->w;
8888 if (drawbox->h == 0) drawbox->h = inlink->h;
8989
90− av_log(inlink->dst, AV_LOG_INFO, "x:%d y:%d w:%d h:%d color:0x%02X%02X%02X%02X\n",
90+ av_log(inlink->dst, AV_LOG_VERBOSE, "x:%d y:%d w:%d h:%d color:0x%02X%02X%02X%02X\n",
9191 drawbox->w, drawbox->y, drawbox->w, drawbox->h,
9292 drawbox->yuv_color[Y], drawbox->yuv_color[U], drawbox->yuv_color[V], drawbox->yuv_color[A]);
9393
libavfilter/vf_fade.c+1−1
@@ -64,7 +64,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) · 63 unmodified lines
6464 }
6565 fade->stop_frame = fade->start_frame + nb_frames;
6666
67− av_log(ctx, AV_LOG_INFO,
67+ av_log(ctx, AV_LOG_VERBOSE,
6868 "type:%s start_frame:%d nb_frames:%d\n",
6969 in_out, fade->start_frame, nb_frames);
7070 return 0;
libavfilter/vf_fieldorder.c+1−1
@@ -58,7 +58,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) · 57 unmodified lines
5858 return AVERROR(EINVAL);
5959 }
6060
61− av_log(ctx, AV_LOG_INFO, "output field order: %s\n",
61+ av_log(ctx, AV_LOG_VERBOSE, "output field order: %s\n",
6262 fieldorder->dst_tff ? tff : bff);
6363
6464 return 0;
libavfilter/vf_frei0r.c+9−9
@@ -146,7 +146,7 @@ static int set_params(AVFilterContext *ctx, const char *params) · 145 unmodified lines
146146 return ret;
147147 }
148148
149− av_log(ctx, AV_LOG_INFO,
149+ av_log(ctx, AV_LOG_VERBOSE,
150150 "idx:%d name:'%s' type:%s explanation:'%s' ",
151151 i, info.name,
152152 info.type == F0R_PARAM_BOOL ? "bool" :
@@ -157,7 +157,7 @@ static int set_params(AVFilterContext *ctx, const char *params) · 4 unmodified lines
157157 info.explanation);
158158
159159 #ifdef DEBUG
160− av_log(ctx, AV_LOG_INFO, "value:");
160+ av_log(ctx, AV_LOG_DEBUG, "value:");
161161 switch (info.type) {
162162 void *v;
163163 double d;
@@ -168,31 +168,31 @@ static int set_params(AVFilterContext *ctx, const char *params) · 4 unmodified lines
168168 case F0R_PARAM_BOOL:
169169 v = &d;
170170 frei0r->get_param_value(frei0r->instance, v, i);
171− av_log(ctx, AV_LOG_INFO, "%s", d >= 0.5 && d <= 1.0 ? "y" : "n");
171+ av_log(ctx, AV_LOG_DEBUG, "%s", d >= 0.5 && d <= 1.0 ? "y" : "n");
172172 break;
173173 case F0R_PARAM_DOUBLE:
174174 v = &d;
175175 frei0r->get_param_value(frei0r->instance, v, i);
176− av_log(ctx, AV_LOG_INFO, "%f", d);
176+ av_log(ctx, AV_LOG_DEBUG, "%f", d);
177177 break;
178178 case F0R_PARAM_COLOR:
179179 v = &col;
180180 frei0r->get_param_value(frei0r->instance, v, i);
181− av_log(ctx, AV_LOG_INFO, "%f/%f/%f", col.r, col.g, col.b);
181+ av_log(ctx, AV_LOG_DEBUG, "%f/%f/%f", col.r, col.g, col.b);
182182 break;
183183 case F0R_PARAM_POSITION:
184184 v = &pos;
185185 frei0r->get_param_value(frei0r->instance, v, i);
186− av_log(ctx, AV_LOG_INFO, "%lf/%lf", pos.x, pos.y);
186+ av_log(ctx, AV_LOG_DEBUG, "%lf/%lf", pos.x, pos.y);
187187 break;
188188 default: /* F0R_PARAM_STRING */
189189 v = s;
190190 frei0r->get_param_value(frei0r->instance, v, i);
191− av_log(ctx, AV_LOG_INFO, "'%s'\n", s);
191+ av_log(ctx, AV_LOG_DEBUG, "'%s'\n", s);
192192 break;
193193 }
194194 #endif
195− av_log(ctx, AV_LOG_INFO, "\n");
195+ av_log(ctx, AV_LOG_VERBOSE, "\n");
196196 }
197197
198198 return 0;
@@ -266,7 +266,7 @@ static av_cold int frei0r_init(AVFilterContext *ctx, · 67 unmodified lines
266266 return AVERROR(EINVAL);
267267 }
268268
269− av_log(ctx, AV_LOG_INFO,
269+ av_log(ctx, AV_LOG_VERBOSE,
270270 "name:%s author:'%s' explanation:'%s' color_model:%s "
271271 "frei0r_version:%d version:%d.%d num_params:%d\n",
272272 pi->name, pi->author, pi->explanation,
libavfilter/vf_gradfun.c+1−1
@@ -142,7 +142,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) · 141 unmodified lines
142142 if (HAVE_SSE && cpu_flags & AV_CPU_FLAG_SSE2)
143143 gf->blur_line = ff_gradfun_blur_line_sse2;
144144
145− av_log(ctx, AV_LOG_INFO, "threshold:%.2f radius:%d\n", thresh, gf->radius);
145+ av_log(ctx, AV_LOG_VERBOSE, "threshold:%.2f radius:%d\n", thresh, gf->radius);
146146
147147 return 0;
148148 }
libavfilter/vf_hqdn3d.c+1−1
@@ -238,7 +238,7 @@ static int init(AVFilterContext *ctx, const char *args) · 237 unmodified lines
238238 }
239239 }
240240
241− av_log(ctx, AV_LOG_INFO, "ls:%lf cs:%lf lt:%lf ct:%lf\n",
241+ av_log(ctx, AV_LOG_VERBOSE, "ls:%lf cs:%lf lt:%lf ct:%lf\n",
242242 LumSpac, ChromSpac, LumTmp, ChromTmp);
243243 if (LumSpac < 0 || ChromSpac < 0 || isnan(ChromTmp)) {
244244 av_log(ctx, AV_LOG_ERROR,
libavfilter/vf_libopencv.c+3−3
@@ -121,7 +121,7 @@ static av_cold int smooth_init(AVFilterContext *ctx, const char *args) · 120 unmodified lines
121121 return AVERROR(EINVAL);
122122 }
123123
124− av_log(ctx, AV_LOG_INFO, "type:%s param1:%d param2:%d param3:%f param4:%f\n",
124+ av_log(ctx, AV_LOG_VERBOSE, "type:%s param1:%d param2:%d param3:%f param4:%f\n",
125125 type_str, smooth->param1, smooth->param2, smooth->param3, smooth->param4);
126126 return 0;
127127 }
@@ -239,7 +239,7 @@ static int parse_iplconvkernel(IplConvKernel **kernel, char *buf, void *log_ctx) · 111 unmodified lines
239239 if (!*kernel)
240240 return AVERROR(ENOMEM);
241241
242− av_log(log_ctx, AV_LOG_INFO, "Structuring element: w:%d h:%d x:%d y:%d shape:%s\n",
242+ av_log(log_ctx, AV_LOG_VERBOSE, "Structuring element: w:%d h:%d x:%d y:%d shape:%s\n",
243243 rows, cols, anchor_x, anchor_y, shape_str);
244244 return 0;
245245 }
@@ -269,7 +269,7 @@ static av_cold int dilate_init(AVFilterContext *ctx, const char *args) · 23 unmodified lines
269269 av_free(kernel_str);
270270
271271 sscanf(buf, ":%d", &dilate->nb_iterations);
272− av_log(ctx, AV_LOG_INFO, "iterations_nb:%d\n", dilate->nb_iterations);
272+ av_log(ctx, AV_LOG_VERBOSE, "iterations_nb:%d\n", dilate->nb_iterations);
273273 if (dilate->nb_iterations <= 0) {
274274 av_log(ctx, AV_LOG_ERROR, "Invalid non-positive value '%d' for nb_iterations\n",
275275 dilate->nb_iterations);
libavfilter/vf_overlay.c+2−2
@@ -151,7 +151,7 @@ static int config_input_overlay(AVFilterLink *inlink) · 150 unmodified lines
151151 goto fail;
152152 over->x = res;
153153
154− av_log(ctx, AV_LOG_INFO,
154+ av_log(ctx, AV_LOG_VERBOSE,
155155 "main w:%d h:%d fmt:%s overlay x:%d y:%d w:%d h:%d fmt:%s\n",
156156 ctx->inputs[MAIN]->w, ctx->inputs[MAIN]->h,
157157 av_pix_fmt_descriptors[ctx->inputs[MAIN]->format].name,
@@ -190,7 +190,7 @@ static int config_output(AVFilterLink *outlink) · 32 unmodified lines
190190 av_gcd((int64_t)tb1.num * tb2.den,
191191 (int64_t)tb2.num * tb1.den),
192192 (int64_t)tb1.den * tb2.den, INT_MAX);
193− av_log(ctx, AV_LOG_INFO,
193+ av_log(ctx, AV_LOG_VERBOSE,
194194 "main_tb:%d/%d overlay_tb:%d/%d -> tb:%d/%d exact:%d\n",
195195 tb1.num, tb1.den, tb2.num, tb2.den, tb->num, tb->den, exact);
196196 if (!exact)
libavfilter/vf_pad.c+1−1
@@ -220,7 +220,7 @@ static int config_input(AVFilterLink *inlink) · 219 unmodified lines
220220 ff_fill_line_with_color(pad->line, pad->line_step, pad->w, pad->color,
221221 inlink->format, rgba_color, &is_packed_rgba, NULL);
222222
223− av_log(ctx, AV_LOG_INFO, "w:%d h:%d -> w:%d h:%d x:%d y:%d color:0x%02X%02X%02X%02X[%s]\n",
223+ av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d -> w:%d h:%d x:%d y:%d color:0x%02X%02X%02X%02X[%s]\n",
224224 inlink->w, inlink->h, pad->w, pad->h, pad->x, pad->y,
225225 pad->color[0], pad->color[1], pad->color[2], pad->color[3],
226226 is_packed_rgba ? "rgba" : "yuva");
libavfilter/vf_scale.c+1−1
@@ -215,7 +215,7 @@ static int config_props(AVFilterLink *outlink) · 214 unmodified lines
215215 outlink->h = h;
216216
217217 /* TODO: make algorithm configurable */
218− av_log(ctx, AV_LOG_INFO, "w:%d h:%d fmt:%s -> w:%d h:%d fmt:%s flags:0x%0x\n",
218+ av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d fmt:%s -> w:%d h:%d fmt:%s flags:0x%0x\n",
219219 inlink ->w, inlink ->h, av_pix_fmt_descriptors[ inlink->format].name,
220220 outlink->w, outlink->h, av_pix_fmt_descriptors[outlink->format].name,
221221 scale->flags);
libavfilter/vf_setpts.c+1−1
@@ -94,7 +94,7 @@ static int config_input(AVFilterLink *inlink) · 93 unmodified lines
9494
9595 setpts->var_values[VAR_TB] = av_q2d(inlink->time_base);
9696
97− av_log(inlink->src, AV_LOG_INFO, "TB:%f\n", setpts->var_values[VAR_TB]);
97+ av_log(inlink->src, AV_LOG_VERBOSE, "TB:%f\n", setpts->var_values[VAR_TB]);
9898 return 0;
9999 }
100100
libavfilter/vf_settb.c+1−1
@@ -97,7 +97,7 @@ static int config_output_props(AVFilterLink *outlink) · 96 unmodified lines
9797 }
9898
9999 outlink->time_base = time_base;
100− av_log(outlink->src, AV_LOG_INFO, "tb:%d/%d -> tb:%d/%d\n",
100+ av_log(outlink->src, AV_LOG_VERBOSE, "tb:%d/%d -> tb:%d/%d\n",
101101 inlink ->time_base.num, inlink ->time_base.den,
102102 outlink->time_base.num, outlink->time_base.den);
103103
libavfilter/vf_transpose.c+1−1
@@ -110,7 +110,7 @@ static int config_props_output(AVFilterLink *outlink) · 109 unmodified lines
110110 } else
111111 outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
112112
113− av_log(ctx, AV_LOG_INFO, "w:%d h:%d dir:%d -> w:%d h:%d rotation:%s vflip:%d\n",
113+ av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d dir:%d -> w:%d h:%d rotation:%s vflip:%d\n",
114114 inlink->w, inlink->h, trans->dir, outlink->w, outlink->h,
115115 trans->dir == 1 || trans->dir == 3 ? "clockwise" : "counterclockwise",
116116 trans->dir == 0 || trans->dir == 3);
libavfilter/vf_unsharp.c+1−1
@@ -177,7 +177,7 @@ static void init_filter_param(AVFilterContext *ctx, FilterParam *fp, const char · 176 unmodified lines
177177
178178 effect = fp->amount == 0 ? "none" : fp->amount < 0 ? "blur" : "sharpen";
179179
180− av_log(ctx, AV_LOG_INFO, "effect:%s type:%s msize_x:%d msize_y:%d amount:%0.2f\n",
180+ av_log(ctx, AV_LOG_VERBOSE, "effect:%s type:%s msize_x:%d msize_y:%d amount:%0.2f\n",
181181 effect, effect_type, fp->msize_x, fp->msize_y, fp->amount / 65535.0);
182182
183183 for (z = 0; z < 2 * fp->steps_y; z++)
libavfilter/vf_yadif.c+1−1
@@ -414,7 +414,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) · 413 unmodified lines
414414 else if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX)
415415 yadif->filter_line = ff_yadif_filter_line_mmx;
416416
417− av_log(ctx, AV_LOG_INFO, "mode:%d parity:%d auto_enable:%d\n", yadif->mode, yadif->parity, yadif->auto_enable);
417+ av_log(ctx, AV_LOG_VERBOSE, "mode:%d parity:%d auto_enable:%d\n", yadif->mode, yadif->parity, yadif->auto_enable);
418418
419419 return 0;
420420 }
libavfilter/vsrc_color.c+1−1
@@ -127,7 +127,7 @@ static int color_config_props(AVFilterLink *inlink) · 126 unmodified lines
127127 ff_fill_line_with_color(color->line, color->line_step, color->w, color->color,
128128 inlink->format, rgba_color, &is_packed_rgba, NULL);
129129
130− av_log(ctx, AV_LOG_INFO, "w:%d h:%d r:%d/%d color:0x%02x%02x%02x%02x[%s]\n",
130+ av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d r:%d/%d color:0x%02x%02x%02x%02x[%s]\n",
131131 color->w, color->h, color->time_base.den, color->time_base.num,
132132 color->color[0], color->color[1], color->color[2], color->color[3],
133133 is_packed_rgba ? "rgba" : "yuva");
libavfilter/vsrc_movie.c+1−1
@@ -155,7 +155,7 @@ static int movie_init(AVFilterContext *ctx) · 154 unmodified lines
155155 movie->w = movie->codec_ctx->width;
156156 movie->h = movie->codec_ctx->height;
157157
158− av_log(ctx, AV_LOG_INFO, "seek_point:%"PRIi64" format_name:%s file_name:%s stream_index:%d\n",
158+ av_log(ctx, AV_LOG_VERBOSE, "seek_point:%"PRIi64" format_name:%s file_name:%s stream_index:%d\n",
159159 movie->seek_point, movie->format_name, movie->file_name,
160160 movie->stream_index);
161161
libavfilter/vsrc_nullsrc.c+1−1
@@ -100,7 +100,7 @@ static int config_props(AVFilterLink *outlink) · 99 unmodified lines
100100 outlink->h = priv->h;
101101 outlink->time_base = tb;
102102
103− av_log(outlink->src, AV_LOG_INFO, "w:%d h:%d tb:%d/%d\n", priv->w, priv->h,
103+ av_log(outlink->src, AV_LOG_VERBOSE, "w:%d h:%d tb:%d/%d\n", priv->w, priv->h,
104104 tb.num, tb.den);
105105
106106 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t