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

Function stbi__jpeg_load

include/stb/stb_image.h:4028–4040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4026}
4027
4028static 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
4042static int stbi__jpeg_test(stbi__context *s)
4043{

Callers 1

stbi__load_mainFunction · 0.85

Calls 3

stbi__mallocFunction · 0.85
stbi__setup_jpegFunction · 0.85
load_jpeg_imageFunction · 0.85

Tested by

no test coverage detected