| 6637 | } |
| 6638 | |
| 6639 | static 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 | |
| 6654 | static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code) |
| 6655 | { |
no test coverage detected