Skip to content
Snippets Groups Projects
Commit 11a4e38b authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Minor output changes

parent 35d7b623
Branches
Tags
No related merge requests found
...@@ -14,8 +14,8 @@ saturated = false; ...@@ -14,8 +14,8 @@ saturated = false;
actual_depth = 16; actual_depth = 16;
// traverse the possible depths array backwards: // traverse the possible depths array backwards:
for (i = lengthOf(possible_depths) - 1; i > 0; i--) { for (i = lengthOf(possible_depths) - 1; i > 0; i--) {
print("checking bit-depth " + possible_depths[i]);
sat = pow(2, possible_depths[i]) - 1; sat = pow(2, possible_depths[i]) - 1;
print("checking for " + possible_depths[i] + " bit value range (0-" + sat + ")");
if (max == sat) { if (max == sat) {
saturated = true; saturated = true;
...@@ -23,7 +23,7 @@ for (i = lengthOf(possible_depths) - 1; i > 0; i--) { ...@@ -23,7 +23,7 @@ for (i = lengthOf(possible_depths) - 1; i > 0; i--) {
print("saturated " + actual_depth + "-bit image detected!"); print("saturated " + actual_depth + "-bit image detected!");
} else { } else {
next_lower = pow(2, possible_depths[i-1]); next_lower = pow(2, possible_depths[i-1]);
print("checking against next lower range limit: " + next_lower); // print("checking against next lower range limit: " + next_lower);
if (max < sat && max >= next_lower) { if (max < sat && max >= next_lower) {
actual_depth = possible_depths[i]; actual_depth = possible_depths[i];
print("non-saturated " + actual_depth + "-bit image detected!"); print("non-saturated " + actual_depth + "-bit image detected!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment