[trunk] add definitions for 64 bits integer types, and define OPJ_OFF_T to map to...
[openjpeg.git] / libopenjpeg / image.h
index b56de4acb30fcfcd140f0e2093265a097c7ba243..a6cd9f58e33a909bf2edd7d845911d481e7c7d59 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005, Herv Drolon, FreeImage Team
+ * Copyright (c) 2005, Herve Drolon, FreeImage Team
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
 The functions in IMAGE.C have for goal to realize operations on images.
 */
 
+struct opj_image;
+struct opj_cp_v2;
+
 /** @defgroup IMAGE IMAGE - Implementation of operations on images */
 /*@{*/
 
 /**
-Create an empty image
-@todo this function should be removed
-@return returns an empty image if successful, returns NULL otherwise
-*/
-opj_image_t* opj_image_create0();
+ * Create an empty image
+ *
+ * @return returns an empty image if successful, returns NULL otherwise
+ */
+opj_image_t* opj_image_create0(void);
+
+
+
+/**
+ * Updates the components characteristics of the image from the coding parameters.
+ *
+ * @param p_image_header               the image header to update.
+ * @param p_cp                                 the coding parameters from which to update the image.
+ */
+void opj_image_comp_header_update(opj_image_t * p_image, const struct opj_cp_v2* p_cp);
+
+void opj_copy_image_header(const opj_image_t* p_image_src, opj_image_t* p_image_dest);
 
 /*@}*/