mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-13 13:49:53 +08:00
yuvconstants.c: fix double->float conv warnings
under Visual Studio: ...\util\yuvconstants.c(57,14): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data ...\util\yuvconstants.c(58,14): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data Change-Id: I3c49e670d9e4217ef3ed0acd31a9a86fc54c4694 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4513826 Commit-Queue: Frank Barchard <fbarchard@chromium.org> Reviewed-by: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
parent
8b4aa7cef9
commit
b2ea744591
@ -54,8 +54,8 @@ int main(int argc, const char* argv[]) {
|
|||||||
printf(" 9 BT.2020 KR = 0.2627; KB = 0.0593\n");
|
printf(" 9 BT.2020 KR = 0.2627; KB = 0.0593\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
float kr = atof(argv[1]);
|
float kr = (float)atof(argv[1]);
|
||||||
float kb = atof(argv[2]);
|
float kb = (float)atof(argv[2]);
|
||||||
float kg = 1 - kr - kb;
|
float kg = 1 - kr - kb;
|
||||||
|
|
||||||
float vr = 2 * (1 - kr);
|
float vr = 2 * (1 - kr);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user