| 4026 | } |
| 4027 | |
| 4028 | static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) |
| 4029 | { |
| 4030 | unsigned char* result; |
| 4031 | stbi__jpeg* j = (stbi__jpeg*) stbi__malloc(sizeof(stbi__jpeg)); |
| 4032 | if (!j) return stbi__errpuc("outofmem", "Out of memory"); |
| 4033 | memset(j, 0, sizeof(stbi__jpeg)); |
| 4034 | STBI_NOTUSED(ri); |
| 4035 | j->s = s; |
| 4036 | stbi__setup_jpeg(j); |
| 4037 | result = load_jpeg_image(j, x,y,comp,req_comp); |
| 4038 | STBI_FREE(j); |
| 4039 | return result; |
| 4040 | } |
| 4041 | |
| 4042 | static int stbi__jpeg_test(stbi__context *s) |
| 4043 | { |
no test coverage detected