… | |
… | |
3386 | { |
3386 | { |
3387 | int r = idx_r + dxyz[n][0]; |
3387 | int r = idx_r + dxyz[n][0]; |
3388 | int g = idx_r + dxyz[n][1]; |
3388 | int g = idx_r + dxyz[n][1]; |
3389 | int b = idx_r + dxyz[n][2]; |
3389 | int b = idx_r + dxyz[n][2]; |
3390 | |
3390 | |
3391 | if (!IN_RANGE_EXC (r, 0, Red_levels)) |
3391 | if (!IN_RANGE_EXC (r, 0, Red_levels )) continue; |
3392 | continue; |
|
|
3393 | |
|
|
3394 | if (!IN_RANGE_EXC (g, 0, Green_levels)) |
3392 | if (!IN_RANGE_EXC (g, 0, Green_levels)) continue; |
3395 | continue; |
|
|
3396 | |
|
|
3397 | if (!IN_RANGE_EXC (b, 0, Blue_levels)) |
3393 | if (!IN_RANGE_EXC (b, 0, Blue_levels )) continue; |
3398 | continue; |
|
|
3399 | |
3394 | |
3400 | unsigned int index = colorcube_index (r, g, b); |
3395 | unsigned int index = colorcube_index (r, g, b); |
3401 | |
3396 | |
3402 | // minor issue: could update index 0 few more times |
3397 | // minor issue: could update index 0 few more times |
3403 | if ((rgb24_seqno[index] | rgb24_color[index]) == 0) |
3398 | if ((rgb24_seqno[index] | rgb24_color[index]) == 0) |