History

Rename ff_dprintf_picref() to ff_dprintf_ref().

The function is going to be used to represent also audio data. Originally committed as revision 24846 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit b5fbb311 parent 801ab982 files · +14 −14Browse files

Unified · Split

2 files
  1. libavfilter/avfilter.c +13 −13
  2. libavfilter/internal.h +1 −1
libavfilter/avfilter.c+13−13
@@ -191,21 +191,21 @@ int avfilter_config_links(AVFilterContext *filter) · 190 unmodified lines
191 return 0;191 return 0;
192}192}
193 193
194void ff_dprintf_picref(void *ctx, AVFilterBufferRef *picref, int end)194void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end)
195{195{
196 dprintf(ctx,196 dprintf(ctx,
197 "picref[%p data:%p linesize[%d, %d, %d, %d] pts:%"PRId64" pos:%"PRId64,197 "ref[%p data:%p linesize[%d, %d, %d, %d] pts:%"PRId64" pos:%"PRId64,
198 picref,198 ref,
199 picref->data[0],199 ref->data[0],
200 picref->linesize[0], picref->linesize[1], picref->linesize[2], picref->linesize[3],200 ref->linesize[0], ref->linesize[1], ref->linesize[2], ref->linesize[3],
201 picref->pts, picref->pos);201 ref->pts, ref->pos);
202 202
203 if (picref->video) {203 if (ref->video) {
204 dprintf(ctx, " a:%d/%d s:%dx%d i:%c",204 dprintf(ctx, " a:%d/%d s:%dx%d i:%c",
205 picref->video->pixel_aspect.num, picref->video->pixel_aspect.den,205 ref->video->pixel_aspect.num, ref->video->pixel_aspect.den,
206 picref->video->w, picref->video->h,206 ref->video->w, ref->video->h,
207 !picref->video->interlaced ? 'P' : /* Progressive */207 !ref->video->interlaced ? 'P' : /* Progressive */
208 picref->video->top_field_first ? 'T' : 'B'); /* Top / Bottom */208 ref->video->top_field_first ? 'T' : 'B'); /* Top / Bottom */
209 }209 }
210 dprintf(ctx, "]%s", end ? "\n" : "");210 dprintf(ctx, "]%s", end ? "\n" : "");
211}211}
@@ -236,7 +236,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int · 24 unmodified lines
236 if (ret)236 if (ret)
237 ret->type = AVMEDIA_TYPE_VIDEO;237 ret->type = AVMEDIA_TYPE_VIDEO;
238 238
239 FF_DPRINTF_START(NULL, get_video_buffer); ff_dprintf_link(NULL, link, 0); dprintf(NULL, " returning "); ff_dprintf_picref(NULL, ret, 1);239 FF_DPRINTF_START(NULL, get_video_buffer); ff_dprintf_link(NULL, link, 0); dprintf(NULL, " returning "); ff_dprintf_ref(NULL, ret, 1);
240 240
241 return ret;241 return ret;
242}242}
@@ -295,7 +295,7 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref) · 52 unmodified lines
295 void (*start_frame)(AVFilterLink *, AVFilterBufferRef *);295 void (*start_frame)(AVFilterLink *, AVFilterBufferRef *);
296 AVFilterPad *dst = &link_dpad(link);296 AVFilterPad *dst = &link_dpad(link);
297 297
298 FF_DPRINTF_START(NULL, start_frame); ff_dprintf_link(NULL, link, 0); dprintf(NULL, " "); ff_dprintf_picref(NULL, picref, 1);298 FF_DPRINTF_START(NULL, start_frame); ff_dprintf_link(NULL, link, 0); dprintf(NULL, " "); ff_dprintf_ref(NULL, picref, 1);
299 299
300 if (!(start_frame = dst->start_frame))300 if (!(start_frame = dst->start_frame))
301 start_frame = avfilter_default_start_frame;301 start_frame = avfilter_default_start_frame;
libavfilter/internal.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
26 26
27#include "avfilter.h"27#include "avfilter.h"
28 28
29void ff_dprintf_picref(void *ctx, AVFilterBufferRef *picref, int end);29void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end);
30 30
31void ff_dprintf_link(void *ctx, AVFilterLink *link, int end);31void ff_dprintf_link(void *ctx, AVFilterLink *link, int end);
32 32

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