diff options
author | Niklas Haas <git@nand.wakku.to> | 2015-01-17 17:28:47 +0100 |
---|---|---|
committer | Niklas Haas <git@nand.wakku.to> | 2015-01-22 19:29:23 +0100 |
commit | f5e48f023524630d0334b1fbc2f2dc44bbc2819b (patch) | |
tree | f282841538e9ba421152c7a5b3750bbb730ebf4b /video/out/filter_kernels.h | |
parent | 571fe8f729827c628a2fa25c0b7b468a1a4559ae (diff) | |
download | mpv-f5e48f023524630d0334b1fbc2f2dc44bbc2819b.tar.bz2 mpv-f5e48f023524630d0334b1fbc2f2dc44bbc2819b.tar.xz |
vo_opengl: clean up ewa_lanczos code
This fixes compatibility with GLES 2.0 and makes the code a bit neater
in general. It also properly forces indirect scaling for subsampled
video regardless of the lscale setting.
Diffstat (limited to 'video/out/filter_kernels.h')
-rw-r--r-- | video/out/filter_kernels.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/filter_kernels.h b/video/out/filter_kernels.h index c1d68e0c5b..3b12fcfe57 100644 --- a/video/out/filter_kernels.h +++ b/video/out/filter_kernels.h @@ -31,9 +31,8 @@ struct filter_kernel { // Whether or not the filter uses polar coordinates bool polar; // The following values are set by mp_init_filter() at runtime. - int size; // Number of coefficients; equals the rounded up radius multiplied with 2. - int num_coefficients; + int size; double inv_scale; }; @@ -44,6 +43,5 @@ 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 */ |