summaryrefslogtreecommitdiff
path: root/plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-01-03 14:34:48 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-01-03 14:34:48 +0000
commiteb680766d56e815086397361b286fd8055fb5377 (patch)
tree7994cdb0d9077f645ba7fd06bdd2cde32cf599d4 /plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp
parentec61686c3d96f49eb7f40a4208690a0781d63e29 (diff)
FreeImage updated to 3.15.4
removed not used formats git-svn-id: http://svn.miranda-ng.org/main/trunk@2926 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp')
-rw-r--r--plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp b/plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp
index 6eb9aeaf48..f907c41d55 100644
--- a/plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp
+++ b/plugins/AdvaImg/src/FreeImage/NNQuantizer.cpp
@@ -60,7 +60,7 @@ NNQuantizer::NNQuantizer(int PaletteSize)
freq = (int *)malloc(netsize * sizeof(int));
radpower = (int *)malloc(initrad * sizeof(int));
- if ( !network || !bias || !freq || !radpower ) {
+ if( !network || !bias || !freq || !radpower ) {
if(network) free(network);
if(bias) free(bias);
if(freq) free(freq);
@@ -455,7 +455,7 @@ FIBITMAP* NNQuantizer::Quantize(FIBITMAP *dib, int ReserveSize, RGBQUAD *Reserve
// 3) Initialize the network and apply the learning algorithm
- if ( netsize > ReserveSize ) {
+ if( netsize > ReserveSize ) {
netsize -= ReserveSize;
initnet();
learn(sampling);