We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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++;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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++;
The text was updated successfully, but these errors were encountered: