From 26baf5b9da4faaec6f5e39a8efba7e58dd6317ed Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 4 Jan 2015 23:11:27 +0100 Subject: vo_opengl: add ewa_lanczos upscaler (aka jinc) This is the polar (elliptic weighted average) version of lanczos. This introduces a general new form of polar filters. --- video/out/filter_kernels.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/out/filter_kernels.h') diff --git a/video/out/filter_kernels.h b/video/out/filter_kernels.h index f9a413b9f7..4b407f4479 100644 --- a/video/out/filter_kernels.h +++ b/video/out/filter_kernels.h @@ -28,6 +28,8 @@ struct filter_kernel { // The filter params can be changed at runtime. Only used by some filters. float params[2]; + // Whether or not the filter uses polar coordinates + bool polar; // The following values are set by mp_init_filter() at runtime. // Number of coefficients; equals the rounded up radius multiplied with 2. int size; @@ -41,5 +43,6 @@ bool mp_init_filter(struct filter_kernel *filter, const int *sizes, double scale); void mp_compute_weights(struct filter_kernel *filter, double f, float *out_w); void mp_compute_lut(struct filter_kernel *filter, int count, float *out_array); +void mp_compute_lut_polar(struct filter_kernel *filter, int count, float *out_array); #endif /* MPLAYER_FILTER_KERNELS_H */ -- cgit v1.2.3