Merge pull request #5483 from Beep6581/whitespace

Whitespace cleanup
This commit is contained in:
Beep6581 2019-10-07 08:21:59 +02:00 committed by GitHub
commit 710f6c089d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 2085 additions and 2097 deletions

View File

@ -98,16 +98,6 @@ set(RTENGINESOURCEFILES
ipwavelet.cc ipwavelet.cc
jdatasrc.cc jdatasrc.cc
jpeg_ijg/jpeg_memsrc.cc jpeg_ijg/jpeg_memsrc.cc
klt/convolve.cc
klt/error.cc
klt/klt_util.cc
klt/klt.cc
klt/pnmio.cc
klt/pyramid.cc
klt/selectGoodFeatures.cc
klt/storeFeatures.cc
klt/trackFeatures.cc
klt/writeFeatures.cc
labimage.cc labimage.cc
lcp.cc lcp.cc
lj92.c lj92.c

View File

@ -1075,7 +1075,6 @@ public:
//very small differences between the 2 //very small differences between the 2
return x <= 0.003040 ? x * 12.92310 : 1.055 * exp(log(x) / sRGBGammaCurve) - 0.055;//continuous return x <= 0.003040 ? x * 12.92310 : 1.055 * exp(log(x) / sRGBGammaCurve) - 0.055;//continuous
// return x <= 0.003041 ? x * 12.92310 : 1.055011 * exp(log(x) / sRGBGammaCurve) - 0.055011;//continuous // return x <= 0.003041 ? x * 12.92310 : 1.055011 * exp(log(x) / sRGBGammaCurve) - 0.055011;//continuous
} }
@ -1092,7 +1091,6 @@ public:
//very small differences between the 4 //very small differences between the 4
return x <= 0.039286 ? x / 12.92310 : exp(log((x + 0.055) / 1.055) * sRGBGammaCurve);//continuous return x <= 0.039286 ? x / 12.92310 : exp(log((x + 0.055) / 1.055) * sRGBGammaCurve);//continuous
// return x <= 0.039293 ? x / 12.92310 : exp(log((x + 0.055011) / 1.055011) * sRGBGammaCurve);//continuous // return x <= 0.039293 ? x / 12.92310 : exp(log((x + 0.055011) / 1.055011) * sRGBGammaCurve);//continuous
} }

View File

@ -907,24 +907,24 @@ static INLINE vfloat vabsf(vfloat f) { return (vfloat)vandnotm((vmask)vcast_vf_f
static INLINE vfloat vnegf(vfloat f) { return (vfloat)vxorm((vmask)f, (vmask)vcast_vf_f(-0.0f)); } static INLINE vfloat vnegf(vfloat f) { return (vfloat)vxorm((vmask)f, (vmask)vcast_vf_f(-0.0f)); }
#ifdef __SSE4_1__ #ifdef __SSE4_1__
// only one instruction when using SSE4.1 // only one instruction when using SSE4.1
static INLINE vfloat vself(vmask mask, vfloat x, vfloat y) { static INLINE vfloat vself(vmask mask, vfloat x, vfloat y) {
return _mm_blendv_ps(y,x,(vfloat)mask); return _mm_blendv_ps(y,x,(vfloat)mask);
} }
static INLINE vint vselc(vmask mask, vint x, vint y) { static INLINE vint vselc(vmask mask, vint x, vint y) {
return _mm_blendv_epi8(y,x,mask); return _mm_blendv_epi8(y,x,mask);
} }
#else #else
// three instructions when using SSE2 // three instructions when using SSE2
static INLINE vfloat vself(vmask mask, vfloat x, vfloat y) { static INLINE vfloat vself(vmask mask, vfloat x, vfloat y) {
return (vfloat)vorm(vandm(mask, (vmask)x), vandnotm(mask, (vmask)y)); return (vfloat)vorm(vandm(mask, (vmask)x), vandnotm(mask, (vmask)y));
} }
static INLINE vint vselc(vmask mask, vint x, vint y) { static INLINE vint vselc(vmask mask, vint x, vint y) {
return vorm(vandm(mask, (vmask)x), vandnotm(mask, (vmask)y)); return vorm(vandm(mask, (vmask)x), vandnotm(mask, (vmask)y));
} }
#endif #endif
static INLINE vfloat vselfzero(vmask mask, vfloat x) { static INLINE vfloat vselfzero(vmask mask, vfloat x) {

View File

@ -141,7 +141,7 @@ namespace RTProfilerBuilder {
return value; return value;
} }
#region * Main and Helpers #region * Main and Helpers
static string ToBool(bool condition) { return condition ? "true" : "false"; } static string ToBool(bool condition) { return condition ? "true" : "false"; }
static string ToFloat(float f) { return f.ToString(CultureInfo.InvariantCulture); } static string ToFloat(float f) { return f.ToString(CultureInfo.InvariantCulture); }
@ -152,7 +152,7 @@ namespace RTProfilerBuilder {
int exitCode = 0; int exitCode = 0;
try { try {
#region Parse input parameters #region Parse input parameters
int argNo = 0; int argNo = 0;
// Name of raw/JPG to process // Name of raw/JPG to process
@ -178,7 +178,7 @@ namespace RTProfilerBuilder {
string cameraMake = args[argNo++]; string cameraMake = args[argNo++];
string cameraModel = args[argNo++]; string cameraModel = args[argNo++];
string camera = cameraMake + " " + cameraModel; string camera = cameraMake + " " + cameraModel;
#endregion #endregion
// Read default file as basis // Read default file as basis
string[] lines = File.ReadAllLines(defaultProfileFilePath); string[] lines = File.ReadAllLines(defaultProfileFilePath);
@ -249,10 +249,10 @@ namespace RTProfilerBuilder {
return nv; return nv;
} }
#endregion #endregion
} }
#region DistortionCorrectProf #region DistortionCorrectProf
/// <summary>Holds a distortion correction profile for one lens. Uses sample points (focal length vs. dist. correction) as input.</summary> /// <summary>Holds a distortion correction profile for one lens. Uses sample points (focal length vs. dist. correction) as input.</summary>
class DistortionCorrectProf { class DistortionCorrectProf {
double[] adFocLen, adCorrect; double[] adFocLen, adCorrect;
@ -289,5 +289,5 @@ namespace RTProfilerBuilder {
return ""; // should never happen return ""; // should never happen
} }
} }
#endregion #endregion
} }

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>RawTherapee-bin</string> <string>RawTherapee-bin</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>com.rawtherapee.rawtherapee</string> <string>com.rawtherapee.rawtherapee</string>
</dict> </dict>
</plist> </plist>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>English</string> <string>English</string>
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
@ -163,5 +163,5 @@
</dict> </dict>
</dict> </dict>
</array> </array>
</dict> </dict>
</plist> </plist>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>application-identifier</key> <key>application-identifier</key>
<string>com.rawtherapee.rawtherapee</string> <string>com.rawtherapee.rawtherapee</string>
<key>com.apple.security.temporary-exception.files.absolute-path.read-write</key> <key>com.apple.security.temporary-exception.files.absolute-path.read-write</key>
@ -16,5 +16,5 @@
<true/> <true/>
<key>com.apple.security.files.downloads.read-write</key> <key>com.apple.security.files.downloads.read-write</key>
<true/> <true/>
</dict> </dict>
</plist> </plist>