diff options
author | Niklas Haas <git@nand.wakku.to> | 2015-01-04 23:11:27 +0100 |
---|---|---|
committer | Niklas Haas <git@nand.wakku.to> | 2015-01-15 21:20:27 +0100 |
commit | 26baf5b9da4faaec6f5e39a8efba7e58dd6317ed (patch) | |
tree | 79a848880bfe8e1b0ec2dea6f6f07791f2bf0069 /video/out/filter_kernels.h | |
parent | 93e0d6f3b3dfa6557f48118214aba994c4fbf397 (diff) | |
download | mpv-26baf5b9da4faaec6f5e39a8efba7e58dd6317ed.tar.bz2 mpv-26baf5b9da4faaec6f5e39a8efba7e58dd6317ed.tar.xz |
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.
Diffstat (limited to 'video/out/filter_kernels.h')
-rw-r--r-- | video/out/filter_kernels.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |