remove unused interpolate_pixel_unaligned_2() drawing helper

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-03-20 02:32:07 +00:00
parent bd782acc64
commit 67fe1095be

View file

@ -3207,16 +3207,6 @@ inline quint32 eff_ialpha_4(quint32 a, const qargb8555 *dummy)
return 0x20202020 - eff_alpha_4(a, dummy); return 0x20202020 - eff_alpha_4(a, dummy);
} }
template <class DST, class SRC>
inline void interpolate_pixel_unaligned_2(DST *dest, const SRC *src,
quint16 alpha)
{
const quint16 a = eff_alpha_2(alpha, dest);
const quint16 ia = eff_ialpha_2(alpha, dest);
dest[0] = DST(src[0]).byte_mul(a >> 8) + dest[0].byte_mul(ia >> 8);
dest[1] = DST(src[1]).byte_mul(a & 0xff) + dest[1].byte_mul(ia & 0xff);
}
template <class DST, class SRC> template <class DST, class SRC>
inline void interpolate_pixel_2(DST *dest, const SRC *src, quint16 alpha) inline void interpolate_pixel_2(DST *dest, const SRC *src, quint16 alpha)
{ {