X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=images%2Fobject.h;h=4f03166d485c508348bc247fe18e8fa01b648b0e;hb=1481eca416a467e9952dbc5e4852afe66eaf1256;hp=9da98eec5cb33514271296e9d0dcbfd32a1acbad;hpb=fa7aa6d9457616ce28f97c83eaa616d0ff276870;p=libucw.git diff --git a/images/object.h b/images/object.h index 9da98eec..4f03166d 100644 --- a/images/object.h +++ b/images/object.h @@ -3,14 +3,22 @@ #include +#ifdef CONFIG_UCW_CLEAN_ABI +#define get_image_obj_info ucw_get_image_obj_info +#define get_image_obj_signature ucw_get_image_obj_signature +#define get_image_obj_thumb ucw_get_image_obj_thumb +#define put_image_obj_signature ucw_put_image_obj_signature +#define read_image_obj_thumb ucw_read_image_obj_thumb +#endif + struct image_obj_info { - uns cols; - uns rows; - uns colors; + uint cols; + uint rows; + uint colors; enum image_format thumb_format; - uns thumb_cols; - uns thumb_rows; - uns thumb_size; + uint thumb_cols; + uint thumb_rows; + uint thumb_size; byte *thumb_data; }; @@ -18,10 +26,10 @@ struct odes; struct mempool; struct image_signature; -uns get_image_obj_info(struct image_obj_info *ioi, struct odes *o); -uns get_image_obj_thumb(struct image_obj_info *ioi, struct odes *o, struct mempool *pool); +uint get_image_obj_info(struct image_obj_info *ioi, struct odes *o); +uint get_image_obj_thumb(struct image_obj_info *ioi, struct odes *o, struct mempool *pool); struct image *read_image_obj_thumb(struct image_obj_info *ioi, struct fastbuf *fb, struct image_io *io, struct mempool *pool); void put_image_obj_signature(struct odes *o, struct image_signature *sig); -uns get_image_obj_signature(struct image_signature *sig, struct odes *o); +uint get_image_obj_signature(struct image_signature *sig, struct odes *o); #endif