OLD | NEW |
1 /* | 1 /* |
2 * filter layer | 2 * filter layer |
3 * copyright (c) 2007 Bobby Bingham | 3 * copyright (c) 2007 Bobby Bingham |
4 * | 4 * |
5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
6 * | 6 * |
7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 link->init_state = AVLINK_INIT; | 164 link->init_state = AVLINK_INIT; |
165 } | 165 } |
166 } | 166 } |
167 | 167 |
168 return 0; | 168 return 0; |
169 } | 169 } |
170 | 170 |
171 static void dprintf_picref(void *ctx, AVFilterPicRef *picref, int end) | 171 static void dprintf_picref(void *ctx, AVFilterPicRef *picref, int end) |
172 { | 172 { |
173 dprintf(ctx, | 173 dprintf(ctx, |
174 "picref[%p data[%p, %p, %p, %p] linesize[%d, %d, %d, %d] pts:%"PRId6
4" s:%dx%d]%s", | 174 "picref[%p data[%p, %p, %p, %p] linesize[%d, %d, %d, %d] pts:%"PRId6
4" a:%d/%d s:%dx%d]%s", |
175 picref, | 175 picref, |
176 picref->data [0], picref->data [1], picref->data [2], picre
f->data [3], | 176 picref->data [0], picref->data [1], picref->data [2], picre
f->data [3], |
177 picref->linesize[0], picref->linesize[1], picref->linesize[2], picre
f->linesize[3], | 177 picref->linesize[0], picref->linesize[1], picref->linesize[2], picre
f->linesize[3], |
178 picref->pts, picref->w, picref->h, | 178 picref->pts, picref->pixel_aspect.num, picref->pixel_aspect.den, pic
ref->w, picref->h, |
179 end ? "\n" : ""); | 179 end ? "\n" : ""); |
180 } | 180 } |
181 | 181 |
182 static void dprintf_link(void *ctx, AVFilterLink *link, int end) | 182 static void dprintf_link(void *ctx, AVFilterLink *link, int end) |
183 { | 183 { |
184 dprintf(ctx, | 184 dprintf(ctx, |
185 "link[%p s:%dx%d fmt:%-16s %-16s->%-16s]%s", | 185 "link[%p s:%dx%d fmt:%-16s %-16s->%-16s]%s", |
186 link, link->w, link->h, | 186 link, link->w, link->h, |
187 av_pix_fmt_descriptors[link->format].name, | 187 av_pix_fmt_descriptors[link->format].name, |
188 link->src ? link->src->filter->name : "", | 188 link->src ? link->src->filter->name : "", |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 447 |
448 int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
) | 448 int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
) |
449 { | 449 { |
450 int ret=0; | 450 int ret=0; |
451 | 451 |
452 if(filter->filter->init) | 452 if(filter->filter->init) |
453 ret = filter->filter->init(filter, args, opaque); | 453 ret = filter->filter->init(filter, args, opaque); |
454 return ret; | 454 return ret; |
455 } | 455 } |
456 | 456 |
OLD | NEW |