Size was never used. Also removes the ply_image_get_size function.
Clean-up in preparation for merging with pixel-buffer.
FILE *fp;
ply_image_layout_t layout;
- size_t size;
long width;
long height;
image->filename = strdup (filename);
image->fp = NULL;
image->layout.address = NULL;
- image->size = -1;
image->width = -1;
image->height = -1;
return image->layout.as_pixels;
}
-ssize_t
-ply_image_get_size (ply_image_t *image)
-{
- assert (image != NULL);
-
- return image->size;
-}
-
long
ply_image_get_width (ply_image_t *image)
{
void ply_image_free (ply_image_t *image);
bool ply_image_load (ply_image_t *image);
uint32_t *ply_image_get_data (ply_image_t *image);
-ssize_t ply_image_get_size (ply_image_t *image);
long ply_image_get_width (ply_image_t *image);
long ply_image_get_height (ply_image_t *image);
ply_image_t *ply_image_resize (ply_image_t *image, long width, long height);