… | |
… | |
3401 | } |
3401 | } |
3402 | |
3402 | |
3403 | if (rgb24_color[index] == color) |
3403 | if (rgb24_color[index] == color) |
3404 | return index + minTermCOLOR24; |
3404 | return index + minTermCOLOR24; |
3405 | |
3405 | |
|
|
3406 | // like (rgb24_seqno[idx] > rgb24_seqno[index]) |
|
|
3407 | // but also handles wrap around values good enough |
3406 | if (IN_RANGE_INC (rgb24_seqno[idx], rgb24_seqno[index], 0x7fff)) |
3408 | if ((uint16_t) (rgb24_seqno[idx] - rgb24_seqno[index]) < 0x7fff) |
3407 | idx = index; |
3409 | idx = index; |
3408 | } |
3410 | } |
3409 | } |
3411 | } |
3410 | } |
3412 | } |
3411 | |
3413 | |