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

Function stbi__gif_info_raw

include/stb/stb_image.h:6639–6652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6637}
6638
6639static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)
6640{
6641 stbi__gif* g = (stbi__gif*) stbi__malloc(sizeof(stbi__gif));
6642 if (!g) return stbi__err("outofmem", "Out of memory");
6643 if (!stbi__gif_header(s, g, comp, 1)) {
6644 STBI_FREE(g);
6645 stbi__rewind( s );
6646 return 0;
6647 }
6648 if (x) *x = g->w;
6649 if (y) *y = g->h;
6650 STBI_FREE(g);
6651 return 1;
6652}
6653
6654static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)
6655{

Callers 1

stbi__gif_infoFunction · 0.85

Calls 4

stbi__mallocFunction · 0.85
stbi__errFunction · 0.85
stbi__gif_headerFunction · 0.85
stbi__rewindFunction · 0.85

Tested by

no test coverage detected