Fix order of kaiser parameters.
This commit is contained in:
parent
fa6ebda53f
commit
6fb57d3478
@ -252,7 +252,7 @@ float SincFilter::evaluate(float x) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
KaiserFilter::KaiserFilter(float w) : Filter(w) { setParameters(4.0f, 1.0f); }
|
KaiserFilter::KaiserFilter(float w) : Filter(w) { setParameters(/*alpha=*/4.0f, /*stretch=*/1.0f); }
|
||||||
|
|
||||||
float KaiserFilter::evaluate(float x) const
|
float KaiserFilter::evaluate(float x) const
|
||||||
{
|
{
|
||||||
|
@ -308,7 +308,7 @@ bool Compressor::Private::compress(const InputOptions::Private & inputOptions, c
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (inputOptions.mipmapFilter == MipmapFilter_Kaiser) {
|
if (inputOptions.mipmapFilter == MipmapFilter_Kaiser) {
|
||||||
float params[2] = { inputOptions.kaiserStretch, inputOptions.kaiserAlpha };
|
float params[2] = { inputOptions.kaiserAlpha, inputOptions.kaiserStretch };
|
||||||
img.buildNextMipmap(MipmapFilter_Kaiser, inputOptions.kaiserWidth, params);
|
img.buildNextMipmap(MipmapFilter_Kaiser, inputOptions.kaiserWidth, params);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user