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

Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all

Unified · Split

libavfilter/avfilter.c+13−13
@@ -191,21 +191,21 @@ int avfilter_config_links(AVFilterContext *filter) · 190 unmodified lines
191191 return 0;
192192 }
193193
194−void ff_dprintf_picref(void *ctx, AVFilterBufferRef *picref, int end)
194+void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end)
195195 {
196196 dprintf(ctx,
197− "picref[%p data:%p linesize[%d, %d, %d, %d] pts:%"PRId64" pos:%"PRId64,
198− picref,
199− picref->data[0],
200− picref->linesize[0], picref->linesize[1], picref->linesize[2], picref->linesize[3],
201− picref->pts, picref->pos);
197+ "ref[%p data:%p linesize[%d, %d, %d, %d] pts:%"PRId64" pos:%"PRId64,
198+ ref,
199+ ref->data[0],
200+ ref->linesize[0], ref->linesize[1], ref->linesize[2], ref->linesize[3],
201+ ref->pts, ref->pos);
202202
203− if (picref->video) {
203+ if (ref->video) {
204204 dprintf(ctx, " a:%d/%d s:%dx%d i:%c",
205− picref->video->pixel_aspect.num, picref->video->pixel_aspect.den,
206− picref->video->w, picref->video->h,
207− !picref->video->interlaced ? 'P' : /* Progressive */
208− picref->video->top_field_first ? 'T' : 'B'); /* Top / Bottom */
205+ ref->video->pixel_aspect.num, ref->video->pixel_aspect.den,
206+ ref->video->w, ref->video->h,
207+ !ref->video->interlaced ? 'P' : /* Progressive */
208+ ref->video->top_field_first ? 'T' : 'B'); /* Top / Bottom */
209209 }
210210 dprintf(ctx, "]%s", end ? "\n" : "");
211211 }
@@ -236,7 +236,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int · 24 unmodified lines
236236 if (ret)
237237 ret->type = AVMEDIA_TYPE_VIDEO;
238238
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);
240240
241241 return ret;
242242 }
@@ -295,7 +295,7 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref) · 52 unmodified lines
295295 void (*start_frame)(AVFilterLink *, AVFilterBufferRef *);
296296 AVFilterPad *dst = &link_dpad(link);
297297
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);
299299
300300 if (!(start_frame = dst->start_frame))
301301 start_frame = avfilter_default_start_frame;

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