Re: [v2 PATCH 2/2] gdiplus: Implement GdipBitmapGetHistogram()
Nov. 2, 2016
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?
November 2016
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.
3430
Age (days ago)
3430
Last active (days ago)
1 comments
2 participants
participants (2)
-
Nikolay Sivov -
Vincent Povirk