| 4065 | } |
| 4066 | |
| 4067 | static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp) |
| 4068 | { |
| 4069 | int result; |
| 4070 | stbi__jpeg* j = (stbi__jpeg*) (stbi__malloc(sizeof(stbi__jpeg))); |
| 4071 | if (!j) return stbi__err("outofmem", "Out of memory"); |
| 4072 | memset(j, 0, sizeof(stbi__jpeg)); |
| 4073 | j->s = s; |
| 4074 | result = stbi__jpeg_info_raw(j, x, y, comp); |
| 4075 | STBI_FREE(j); |
| 4076 | return result; |
| 4077 | } |
| 4078 | #endif |
| 4079 | |
| 4080 | // public domain zlib decode v0.2 Sean Barrett 2006-11-18 |
no test coverage detected