MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbi__compute_y_16

Function stbi__compute_y_16

lite/example/cpp_example/mge/cv/stb_image.h:1883–1885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1881// nothing
1882#else
1883static stbi__uint16 stbi__compute_y_16(int r, int g, int b) {
1884 return (stbi__uint16)(((r * 77) + (g * 150) + (29 * b)) >> 8);
1885}
1886#endif
1887
1888#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD)

Callers 1

stbi__convert_format16Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected