MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__compute_y_16

Function stbi__compute_y_16

Source/Utils/stb_image.h:1802–1805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1800// nothing
1801#else
1802static stbi__uint16 stbi__compute_y_16(int r, int g, int b)
1803{
1804 return (stbi__uint16) (((r*77) + (g*150) + (29*b)) >> 8);
1805}
1806#endif
1807
1808#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