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

Function stbi__jpeg_info_raw

Source/Utils/stb_image.h:4055–4065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4053}
4054
4055static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)
4056{
4057 if (!stbi__decode_jpeg_header(j, STBI__SCAN_header)) {
4058 stbi__rewind( j->s );
4059 return 0;
4060 }
4061 if (x) *x = j->s->img_x;
4062 if (y) *y = j->s->img_y;
4063 if (comp) *comp = j->s->img_n >= 3 ? 3 : 1;
4064 return 1;
4065}
4066
4067static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)
4068{

Callers 1

stbi__jpeg_infoFunction · 0.85

Calls 2

stbi__decode_jpeg_headerFunction · 0.85
stbi__rewindFunction · 0.85

Tested by

no test coverage detected