MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi__compute_y

Function stbi__compute_y

include/stb/stb_image.h:1746–1749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1744// only failure mode is malloc failing
1745
1746static stbi_uc stbi__compute_y(int r, int g, int b)
1747{
1748 return (stbi_uc) (((r*77) + (g*150) + (29*b)) >> 8);
1749}
1750#endif
1751
1752#if defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM)

Callers 2

stbi__convert_formatFunction · 0.85
load_jpeg_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected