diff options
author | S.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu> | 2010-08-07 01:15:27 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-07 01:15:27 +0000 |
commit | 7fce481a69053dd24dbf9f1cb0f5b51df2ec925c (patch) | |
tree | 0f61baf91fc505244098f2aa23e8aea4f0b08704 /libavfilter/avfilter.c | |
parent | ecc8dada379261b8ad3788336cdc9d15de55b64b (diff) | |
download | ffmpeg-7fce481a69053dd24dbf9f1cb0f5b51df2ec925c.tar.gz |
Rename functions and fields:
avfilter_(un)ref_pic -> avfilter_(un)ref_buffer
avfilter_copy_picref_props -> avfilter_copy_buffer_ref_props
AVFilterBufferRef.pic -> AVFilterBufferRef.buffer
They have been renamed to allow sharing with audio.
Patch by S.N. Hemanth Meenakshisundaram $smeenaks$ucsd$edu$.
Originally committed as revision 24731 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index bef0dd69ed..02c6106fa8 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -45,19 +45,19 @@ const char *avfilter_license(void) #define link_dpad(link) link->dst-> input_pads[link->dstpad] #define link_spad(link) link->src->output_pads[link->srcpad] -AVFilterBufferRef *avfilter_ref_pic(AVFilterBufferRef *ref, int pmask) +AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask) { AVFilterBufferRef *ret = av_malloc(sizeof(AVFilterBufferRef)); *ret = *ref; ret->perms &= pmask; - ret->pic->refcount ++; + ret->buf->refcount ++; return ret; } -void avfilter_unref_pic(AVFilterBufferRef *ref) +void avfilter_unref_buffer(AVFilterBufferRef *ref) { - if(!(--ref->pic->refcount)) - ref->pic->free(ref->pic); + if(!(--ref->buf->refcount)) + ref->buf->free(ref->buf); av_free(ref); } @@ -264,7 +264,7 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref) link->cur_pic = avfilter_default_get_video_buffer(link, dst->min_perms, link->w, link->h); link->srcpic = picref; - avfilter_copy_picref_props(link->cur_pic, link->srcpic); + avfilter_copy_buffer_ref_props(link->cur_pic, link->srcpic); } else link->cur_pic = picref; @@ -284,7 +284,7 @@ void avfilter_end_frame(AVFilterLink *link) /* unreference the source picture if we're feeding the destination filter * a copied version dues to permission issues */ if(link->srcpic) { - avfilter_unref_pic(link->srcpic); + avfilter_unref_buffer(link->srcpic); link->srcpic = NULL; } |