Lines Matching refs:unsharp
26 * libmpcodecs/unsharp.c.
48 #include "unsharp.h"
108 UnsharpContext *unsharp = ctx->priv;
112 plane_w[1] = plane_w[2] = FF_CEIL_RSHIFT(inlink->w, unsharp->hsub);
114 plane_h[1] = plane_h[2] = FF_CEIL_RSHIFT(inlink->h, unsharp->vsub);
115 fp[0] = &unsharp->luma;
116 fp[1] = fp[2] = &unsharp->chroma;
138 UnsharpContext *unsharp = ctx->priv;
141 set_filter_param(&unsharp->luma, unsharp->lmsize_x, unsharp->lmsize_y, unsharp->lamount);
142 set_filter_param(&unsharp->chroma, unsharp->cmsize_x, unsharp->cmsize_y, unsharp->camount);
144 unsharp->apply_unsharp = apply_unsharp_c;
145 if (!CONFIG_OPENCL && unsharp->opencl) {
149 if (CONFIG_OPENCL && unsharp->opencl) {
150 unsharp->apply_unsharp = ff_opencl_apply_unsharp;
196 UnsharpContext *unsharp = link->dst->priv;
200 unsharp->hsub = desc->log2_chroma_w;
201 unsharp->vsub = desc->log2_chroma_h;
203 ret = init_filter_param(link->dst, &unsharp->luma, "luma", link->w);
206 ret = init_filter_param(link->dst, &unsharp->chroma, "chroma", FF_CEIL_RSHIFT(link->w, unsharp->hsub));
223 UnsharpContext *unsharp = ctx->priv;
225 if (CONFIG_OPENCL && unsharp->opencl) {
229 free_filter_param(&unsharp->luma);
230 free_filter_param(&unsharp->chroma);
235 UnsharpContext *unsharp = link->dst->priv;
246 if (CONFIG_OPENCL && unsharp->opencl) {
252 ret = unsharp->apply_unsharp(link->dst, in, out);
282 AVFILTER_DEFINE_CLASS(unsharp);
303 .name = "unsharp",