Skip to content

Commit

Permalink
fix ksharindam/photoquick#7 : v4.3.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Jan 3, 2021
1 parent 732f091 commit 24200c4
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 17 deletions.
1 change: 1 addition & 0 deletions src/colors/grayscale-local/color2gray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Color to grayscale conversion, uses envelopes formed with the STRESS approach
*/
#include <QImage>
#include <cmath>
#include <ctime>

inline float srgb_to_linear(float value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/colors/grayscale-local/grayscale-local.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/colors/invert/invert.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/colors/kuwahara/kuwahara.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/colors/quant/quant.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/colors/stretch-histogram/stretch-histogram.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/colors/tone-mapping/tone-mapping.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/colors/unalpha/unalpha.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/threshold/bimodal-threshold/bimodal-threshold.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/threshold/dither/dither.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/threshold/threshold-bg-scale/threshold-bg-scale.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
3 changes: 2 additions & 1 deletion src/threshold/threshold-bg-scale/threshold_bg_scale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ void thresholdBgScale(QImage &img, int thresh, int scaledW)
g -= qGreen(line[x]);
b = qBlue(lineScaled[x]);
b -= qBlue(line[x]);
a = qAlpha(line[x]);
r = (r > thresh) ? 0 : 255;
g = (g > thresh) ? 0 : 255;
b = (b > thresh) ? 0 : 255;
line[x] = qRgba(r, g, b, qAlpha(line[x]));
line[x] = qRgba(r, g, b, a);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/tools/histogram-viewer/histogram-viewer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
2 changes: 1 addition & 1 deletion src/transform/pixart-scaler/pixart-scaler.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug
6 changes: 3 additions & 3 deletions src/transform/pixart-scaler/xbr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ int rgb2yuv(uint32_t x)
int g = GREEN(x);
int rg = RED(x) - GREEN(x);
int bg = BLUE(x) - GREEN(x);
uint y = (uint)(( 299*rg + 1000*g + 114*bg)/1000);
uint u = (uint)((-169*rg + 500*bg)/1000) + 128;
uint v = (uint)(( 500*rg - 81*bg)/1000) + 128;
int y = (int)(( 299*rg + 1000*g + 114*bg)/1000);
int u = (int)((-169*rg + 500*bg)/1000) + 128;
int v = (int)(( 500*rg - 81*bg)/1000) + 128;
return (y << 16) + (u << 8) + v;
}

Expand Down
2 changes: 1 addition & 1 deletion src/transform/ris-scaler/ris-scaler.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ unix {
target.path = /usr/local/share/photoquick/plugins
}

CONFIG -= debug_and_release
CONFIG -= debug_and_release debug

0 comments on commit 24200c4

Please sign in to comment.