Improved image dimension handling

Drivers now specify the size of the image they provide, and theres an API
so that you can get the size of an image before you capture it.
This commit is contained in:
Daniel Drake
2007-10-27 14:45:14 +01:00
parent 9960a7ff34
commit c2a83ec948
4 changed files with 26 additions and 6 deletions

View File

@@ -91,6 +91,8 @@ void fp_print_data_free(struct fp_print_data *data);
/* Imaging devices */
int fp_imgdev_capture(struct fp_img_dev *imgdev, int unconditional,
struct fp_img **image);
int fp_imgdev_get_img_width(struct fp_img_dev *imgdev);
int fp_imgdev_get_img_height(struct fp_img_dev *imgdev);
/* Image handling */
int fp_img_get_height(struct fp_img *img);