Lines Matching defs:max
34 unsigned max = (1<<shift) - 1;
70 u = s[x]*alpha + target_table[((x^y)>>5)&1][plane]*(max-alpha) + off;
71 d[x] = av_clip((u + (u >> shift)) >> shift, 0, max);
80 u = av_bswap16(s[x])*alpha + target_table[((x^y)>>5)&1][plane]*(max-alpha) + off;
81 d[x] = av_clip((u + (u >> shift)) >> shift, 0, max);
106 unsigned u = s[x]*a[x] + target_table[((x^y)>>5)&1][plane]*(max-a[x]) + off;
107 d[x] = av_clip((u + (u >> shift)) >> shift, 0, max);
112 unsigned u = av_bswap16(s[x])*aswap + target_table[((x^y)>>5)&1][plane]*(max-aswap) + off;
113 d[x] = av_clip((u + (u >> shift)) >> shift, 0, max);
141 unsigned u = s[x_index + plane]*a[x_index] + target_table[((x^y)>>5)&1][plane]*(max-a[x_index]) + off;
142 d[plane_count*x + plane] = av_clip((u + (u >> shift)) >> shift, 0, max);
150 unsigned u = av_bswap16(s[x_index + plane])*aswap + target_table[((x^y)>>5)&1][plane]*(max-aswap) + off;
151 d[plane_count*x + plane] = av_clip((u + (u >> shift)) >> shift, 0, max);