avfilter/vf_unsharp: add support for alpha formats

This commit is contained in:
Paul B Mahol
2022-03-01 12:33:56 +01:00
parent e1974622e1
commit 84f5583078
3 changed files with 41 additions and 9 deletions

View File

@@ -44,14 +44,17 @@ typedef struct UnsharpFilterParam {
typedef struct UnsharpContext {
const AVClass *class;
int lmsize_x, lmsize_y, cmsize_x, cmsize_y;
int amsize_x, amsize_y;
float lamount, camount;
float aamount;
UnsharpFilterParam luma; ///< luma parameters (width, height, amount)
UnsharpFilterParam chroma; ///< chroma parameters (width, height, amount)
UnsharpFilterParam alpha; ///< alpha parameters (width, height, amount)
int hsub, vsub;
int nb_planes;
int bitdepth;
int bps;
int nb_threads;
int opencl;
int (* apply_unsharp)(AVFilterContext *ctx, AVFrame *in, AVFrame *out);
int (* unsharp_slice)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
} UnsharpContext;