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

Function stbi__compute_y

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

Source from the content-addressed store, hash-verified

1780// only failure mode is malloc failing
1781
1782static stbi_uc stbi__compute_y(int r, int g, int b) {
1783 return (stbi_uc)(((r * 77) + (g * 150) + (29 * b)) >> 8);
1784}
1785#endif
1786
1787#if defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && \

Callers 2

stbi__convert_formatFunction · 0.85
load_jpeg_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected