-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi
could you please explain why do you have used that bold number in the formula below?
why we need to use them?
tks
int j = 0;
for (int i = 0; i < bufferSize; i += numComponents) {
float y0 = ### ((tempData[i + 2] & 0xFF) * 25
+ (tempData[i + 1] & 0xFF) * 129 + (tempData[i] & 0xFF) * 66);
int y = Math.round(y0 / 256.0f) + 16;
if (y > 255)
y = 255;
if (y > maxPixel) {
maxPixel = y;
}
this.data[j] = (byte) y;
j++;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels