You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followup to chromium bug:
https://code.google.com/p/chromium/issues/detail?id=450189
Chrome has an unoptimized ARGBAttentuate. It uses different math than libyuv.
The question was asked,
"Does ATTENUATE() c version match the following for all f and a in [0..255] ?"
unsigned char premult(unsigned char f, unsigned char a)
{
const unsigned prod = f * a + 128;
return (prod + (prod >> 8)) >> 8;
To test the differences in math, a unittest should be written.
Original issue reported on code.google.com by [email protected] on 11 Aug 2015 at 12:26
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 11 Aug 2015 at 12:26The text was updated successfully, but these errors were encountered: