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

Generate array instead of specifying it

parent 11a4e38b
No related branches found
No related tags found
No related merge requests found
// macro code to check a 16-bit image for its actual value range bit depth and // macro code to check a 16-bit image for its actual value range bit depth and
// to test for saturation within that range // to test for saturation within that range
// define the value range bit depths to test for: // define the value range bit depths to test for (8 to 16):
possible_depths = newArray(8, 10, 11, 12, 14, 16); possible_depths = Array.getSequence(17);
possible_depths = Array.slice(possible_depths, 8, 17);
// code below expects array to be sorted, so make sure this is true: // code below expects array to be sorted, so make sure this is true:
Array.sort(possible_depths); Array.sort(possible_depths);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment