Home | History | Annotate | Download | only in stbi

Lines Matching defs:MALLOC

438 #include <sys/malloc.h>
447 #define MALLOC(size) malloc((size), M_TEMP, M_WAITOK)
452 #define MALLOC(size) malloc((size))
972 // assume data buffer is malloced, so malloc a new one and free that one
973 // only failure mode is malloc failing
988 good = MALLOC(req_comp * x * y);
1040 float *output = MALLOC(x * y * comp * sizeof(float));
1058 stbi_uc *output = MALLOC(x * y * comp);
1735 z->img_comp[i].raw_data = MALLOC(z->img_comp[i].w2 * z->img_comp[i].h2+15);
1998 z->img_comp[k].linebuf = MALLOC(z->s.img_x + 3);
2016 output = MALLOC(n * z->s.img_x * z->s.img_y + 1);
2089 jpeg *j = MALLOC(sizeof(*j));
2150 j = MALLOC(sizeof(*j));
2163 j = MALLOC(sizeof(*j));
2180 // - all output is written to a single output buffer (can malloc/realloc)
2542 a = MALLOC(sizeof(*a));
2544 p = MALLOC(initial_size);
2570 a = MALLOC(sizeof(*a));
2572 p = MALLOC(initial_size);
2592 a = MALLOC(sizeof(*a));
2610 a = MALLOC(sizeof(*a));
2612 p = MALLOC(16384);
2631 a = MALLOC(sizeof(*a));
2716 a->out = MALLOC(x * y * out_n);
2810 final = MALLOC(a->s.img_x * a->s.img_y * out_n);
2870 p = MALLOC(pixel_count * pal_img_n);
3378 out = MALLOC(target * s->img_x * s->img_y);
3670 tga_data = MALLOC( tga_width * tga_height * req_comp );
3680 tga_palette = MALLOC( tga_palette_len * tga_palette_bits / 8 );
3944 out = MALLOC(4 * w*h);
4254 result = MALLOC(x*y*4);
4411 g = MALLOC(sizeof(*g));
4557 g->out = MALLOC(4 * g->w * g->h);
4564 g->out = MALLOC(4 * g->w * g->h);
4686 pg = MALLOC(sizeof(*pg));
4871 hdr_data = MALLOC(height * width * req_comp * sizeof(float));
4910 if (scanline == NULL) scanline = MALLOC(width * 4);
5060 0.97 jpeg errors on too large a file; also catch another malloc failure