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

Function stbi__jpeg_info_raw

include/stb/stb_image.h:4056–4066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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