mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
lavfi/vf_ssim360: Fix compilation with MSVC
Don't use "static const" for compile time float constants, but use defines. This fixes the following error: src/libavfilter/vf_ssim360.c(549): error C2099: initializer is not a constant Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
ed519a3690
commit
c0cf2c4786
@ -72,11 +72,11 @@
|
||||
|
||||
#define DEFAULT_EXPANSION_COEF 1.01f
|
||||
|
||||
static const float BARREL_THETA_RANGE = DEFAULT_EXPANSION_COEF * 2.0f * M_PI_F;
|
||||
static const float BARREL_PHI_RANGE = DEFAULT_EXPANSION_COEF * M_PI_2_F;
|
||||
#define BARREL_THETA_RANGE (DEFAULT_EXPANSION_COEF * 2.0f * M_PI_F)
|
||||
#define BARREL_PHI_RANGE (DEFAULT_EXPANSION_COEF * M_PI_2_F)
|
||||
|
||||
// Use fixed-point with 16 bit precision for fast bilinear math
|
||||
static const int FIXED_POINT_PRECISION = 16;
|
||||
#define FIXED_POINT_PRECISION 16
|
||||
|
||||
// Use 1MB per channel for the histogram to get 5-digit precise SSIM value
|
||||
#define SSIM360_HIST_SIZE 131072
|
||||
|
Loading…
Reference in New Issue
Block a user