diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-12 11:22:31 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-28 10:09:03 +0400 |
commit | e6d17ba4268800964b60d71c227c25f028b03889 (patch) | |
tree | 1c84820e91541febaa87f3c4aaacbfce53803cb1 /libavfilter | |
parent | de7b58da3e4b1e204550efa56a10acaf3f768bc8 (diff) |
vf_unsharp: adopt a more natural order of params in apply_unsharp()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_unsharp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c index 9be6715641..6386888a39 100644 --- a/libavfilter/vf_unsharp.c +++ b/libavfilter/vf_unsharp.c @@ -63,8 +63,8 @@ typedef struct { FilterParam chroma; ///< chroma parameters (width, height, amount) } UnsharpContext; -static void apply_unsharp(uint8_t *dst, const uint8_t *src, - int dst_stride, int src_stride, +static void apply_unsharp( uint8_t *dst, int dst_stride, + const uint8_t *src, int src_stride, int width, int height, FilterParam *fp) { uint32_t **sc = fp->sc; @@ -208,9 +208,9 @@ static void end_frame(AVFilterLink *link) AVFilterBufferRef *in = link->cur_buf; AVFilterBufferRef *out = link->dst->outputs[0]->out_buf; - apply_unsharp(out->data[0], in->data[0], out->linesize[0], in->linesize[0], link->w, link->h, &unsharp->luma); - apply_unsharp(out->data[1], in->data[1], out->linesize[1], in->linesize[1], CHROMA_WIDTH(link), CHROMA_HEIGHT(link), &unsharp->chroma); - apply_unsharp(out->data[2], in->data[2], out->linesize[2], in->linesize[2], CHROMA_WIDTH(link), CHROMA_HEIGHT(link), &unsharp->chroma); + apply_unsharp(out->data[0], out->linesize[0], in->data[0], in->linesize[0], link->w, link->h, &unsharp->luma); + apply_unsharp(out->data[1], out->linesize[1], in->data[1], in->linesize[1], CHROMA_WIDTH(link), CHROMA_HEIGHT(link), &unsharp->chroma); + apply_unsharp(out->data[2], out->linesize[2], in->data[2], in->linesize[2], CHROMA_WIDTH(link), CHROMA_HEIGHT(link), &unsharp->chroma); avfilter_unref_buffer(in); avfilter_draw_slice(link->dst->outputs[0], 0, link->h, 1); |