Lines Matching defs:vimage
404 image_s *vimage;
406 if((vimage = (image_s *)malloc(sizeof(image_s))) == NULL)
411 vimage->width = width; vimage->height = height;
413 if((vimage->buf = (pix *)malloc(width * height * sizeof(pix))) == NULL)
416 free(vimage);
419 return(vimage);
425 image_s *vimage;
463 vimage = (rotate & (ROTATE_90|ROTATE_270)) ? image_new(h, w) : image_new(w, h);
464 if(!vimage)
477 if( vimage )
479 free(vimage->buf);
480 free(vimage);
489 image_free(vimage);
494 maxbuf = vimage->width * vimage->height;
503 image_free(vimage);
522 vimage->buf[ofs] = COL(ptr[x + x + x], ptr[x + x + x + 1], ptr[x + x + x + 2]);
539 image_free(vimage);
558 vimage->buf[ofs] =
573 return vimage;