diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-05-07 16:37:27 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-05-09 16:59:43 +0200 |
commit | 4db84bac1353247dc7585cb78859c8085d9c556e (patch) | |
tree | e52d9ce6acc785a574dbebef0aa5dc909266afd8 /libavfilter/vf_unsharp.c | |
parent | f0250cc4636619fc00406f520a02c36efc24c5e2 (diff) | |
download | ffmpeg-4db84bac1353247dc7585cb78859c8085d9c556e.tar.gz |
lavfi/opencl: replace SHIFTUP with FF_CEIL_RSHIFT.
Diffstat (limited to 'libavfilter/vf_unsharp.c')
-rw-r--r-- | libavfilter/vf_unsharp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c index e82a345061..fc0628e379 100644 --- a/libavfilter/vf_unsharp.c +++ b/libavfilter/vf_unsharp.c @@ -114,9 +114,9 @@ static int apply_unsharp_c(AVFilterContext *ctx, AVFrame *in, AVFrame *out) int i, plane_w[3], plane_h[3]; UnsharpFilterParam *fp[3]; plane_w[0] = inlink->w; - plane_w[1] = plane_w[2] = SHIFTUP(inlink->w, unsharp->hsub); + plane_w[1] = plane_w[2] = FF_CEIL_RSHIFT(inlink->w, unsharp->hsub); plane_h[0] = inlink->h; - plane_h[1] = plane_h[2] = SHIFTUP(inlink->h, unsharp->vsub); + plane_h[1] = plane_h[2] = FF_CEIL_RSHIFT(inlink->h, unsharp->vsub); fp[0] = &unsharp->luma; fp[1] = fp[2] = &unsharp->chroma; for (i = 0; i < 3; i++) { @@ -207,7 +207,7 @@ static int config_props(AVFilterLink *link) ret = init_filter_param(link->dst, &unsharp->luma, "luma", link->w); if (ret < 0) return ret; - ret = init_filter_param(link->dst, &unsharp->chroma, "chroma", SHIFTUP(link->w, unsharp->hsub)); + ret = init_filter_param(link->dst, &unsharp->chroma, "chroma", FF_CEIL_RSHIFT(link->w, unsharp->hsub)); if (ret < 0) return ret; |