MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__free_jpeg_components

Function stbi__free_jpeg_components

Source/Utils/stb_image.h:3241–3261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

stbi__cleanup_jpegFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected