Re: [v2 PATCH 2/2] gdiplus: Implement GdipBitmapGetHistogram()
2 Nov
2016
2 Nov
'16
6:08 p.m.
+static void set_histogram_point_gray(ARGB color, UINT *ch0, UINT *ch1, UINT *ch2, UINT *ch3) +{ + ch0[(76 * ((color >> 16) & 0xff) + 150 * ((color >> 8) & 0xff) + 28 * (color & 0xff)) / 0xff]++; +}
Shouldn't the multipliers add up to 255 here?
2 Nov
2 Nov
6:17 p.m.
New subject: [v2 PATCH 2/2] gdiplus: Implement GdipBitmapGetHistogram()
On 02.11.2016 21:08, Vincent Povirk wrote:
+static void set_histogram_point_gray(ARGB color, UINT *ch0, UINT *ch1, UINT *ch2, UINT *ch3) +{ + ch0[(76 * ((color >> 16) & 0xff) + 150 * ((color >> 8) & 0xff) + 28 * (color & 0xff)) / 0xff]++; +}
Shouldn't the multipliers add up to 255 here?
Good point, blue is missing one.
3330
Age (days ago)
3330
Last active (days ago)
1 comments
2 participants
participants (2)
-
Nikolay Sivov -
Vincent Povirk