Lines Matching refs:height
215 if((x >= 0) && (y >= 0) && (x < pimage->width) && (y < pimage->height))
229 if((x >= 0) && (y >= 0) && (x < pimage->width) && (y < pimage->height))
234 image_get_jpeg_resolution(const char * path, int * width, int * height)
271 *height = 0;
273 *height = SWAP16(h);
382 image_new(int32_t width, int32_t height)
391 vimage->width = width; vimage->height = height;
393 //printf("width:%d, height:%d, size of pix: %d\n", width, height, sizeof(pix));
395 //printf("try to alloc %d bytes\n", (width * height * sizeof(pix)));
397 if((vimage->buf = (pix *)malloc(width * height * sizeof(pix))) == NULL)
485 maxbuf = vimage->width * vimage->height;
555 image_upsize(image * pdest, image * psrc, int32_t width, int32_t height)
565 for(vy = 0; vy < height; vy++)
570 ry = ((vy * psrc->height) / height);
579 height_scale = (float)psrc->height / (float)height;
581 for(vy = 0;vy < height; vy++)
618 image_downsize(image * pdest, image * psrc, int32_t width, int32_t height)
631 for(vy = 0; vy < height; vy++)
637 ry = ((vy * psrc->height) / height);
680 height_scale = (float)psrc->height / (float)height;
695 for(vy = 0;vy < height; vy++)
762 image_resize(image * src_image, int32_t width, int32_t height)
766 dst_image = image_new(width, height);
769 if( (src_image->width < width) || (src_image->height < height) )
770 image_upsize(dst_image, src_image, width, height);
772 image_downsize(dst_image, src_image, width, height);
793 cinfo.image_height = pimage->height;