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

Function stbi__free_jpeg_components

include/stb/stb_image.h:3242–3262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3240}
3241
3242static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)
3243{
3244 int i;
3245 for (i=0; i < ncomp; ++i) {
3246 if (z->img_comp[i].raw_data) {
3247 STBI_FREE(z->img_comp[i].raw_data);
3248 z->img_comp[i].raw_data = NULL;
3249 z->img_comp[i].data = NULL;
3250 }
3251 if (z->img_comp[i].raw_coeff) {
3252 STBI_FREE(z->img_comp[i].raw_coeff);
3253 z->img_comp[i].raw_coeff = 0;
3254 z->img_comp[i].coeff = 0;
3255 }
3256 if (z->img_comp[i].linebuf) {
3257 STBI_FREE(z->img_comp[i].linebuf);
3258 z->img_comp[i].linebuf = NULL;
3259 }
3260 }
3261 return why;
3262}
3263
3264static int stbi__process_frame_header(stbi__jpeg *z, int scan)
3265{

Callers 2

stbi__cleanup_jpegFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected