Lines Matching refs:max16
356 uint16_t min16, max16; in refine_colors() local
382 max16 = (match5[r][0] << 11) | (match6[g][0] << 5) | match5[b][0]; in refine_colors()
425 max16 = av_clip_uintp2((at1_r * yy - at2_r * xy) * fr + 0.5f, 5) << 11; in refine_colors()
426 max16 |= av_clip_uintp2((at1_g * yy - at2_g * xy) * fg + 0.5f, 6) << 5; in refine_colors()
427 max16 |= av_clip_uintp2((at1_b * yy - at2_b * xy) * fb + 0.5f, 5) << 0; in refine_colors()
435 *pmax16 = max16; in refine_colors()
436 return oldMin != min16 || oldMax != max16; in refine_colors()
456 uint16_t max16, min16; in compress_color() local
465 max16 = (match5[r][0] << 11) | (match6[g][0] << 5) | match5[b][0]; in compress_color()
471 optimize_colors(block, stride, &max16, &min16); in compress_color()
472 if (max16 != min16) in compress_color()
473 mask = match_colors(block, stride, max16, min16); in compress_color()
478 refine = refine_colors(block, stride, &max16, &min16, mask); in compress_color()
480 if (max16 != min16) in compress_color()
481 mask = match_colors(block, stride, max16, min16); in compress_color()
488 if (max16 < min16) { in compress_color()
489 FFSWAP(uint16_t, min16, max16); in compress_color()
493 AV_WL16(dst + 0, max16); in compress_color()