Searched refs:premul (Results 1 – 1 of 1) sorted by relevance
1342 const auto& premul = [](int a, int v) { return (unsigned char)(v * a / 255.0 + 0.5); }; in load_png_image() local1344 row_ptr[i + 0] = premul(row_ptr[i + 3], row_ptr[i + 0]); in load_png_image()1345 row_ptr[i + 1] = premul(row_ptr[i + 3], row_ptr[i + 1]); in load_png_image()1346 row_ptr[i + 2] = premul(row_ptr[i + 3], row_ptr[i + 2]); in load_png_image()