| 4362 | } |
| 4363 | |
| 4364 | static void* stbi__jpeg_load( |
| 4365 | stbi__context* s, int* x, int* y, int* comp, int req_comp, |
| 4366 | stbi__result_info* ri) { |
| 4367 | unsigned char* result; |
| 4368 | stbi__jpeg* j = (stbi__jpeg*)stbi__malloc(sizeof(stbi__jpeg)); |
| 4369 | if (!j) |
| 4370 | return stbi__errpuc("outofmem", "Out of memory"); |
| 4371 | STBI_NOTUSED(ri); |
| 4372 | j->s = s; |
| 4373 | stbi__setup_jpeg(j); |
| 4374 | result = load_jpeg_image(j, x, y, comp, req_comp); |
| 4375 | STBI_FREE(j); |
| 4376 | return result; |
| 4377 | } |
| 4378 | |
| 4379 | static int stbi__jpeg_test(stbi__context* s) { |
| 4380 | int r; |
no test coverage detected