+ [FOD] Added support for Visual Studio 2005
* [FOD] Robustified MJ2 codecs
* [Parvatha] Solved problems with codec reading from image file directory when filename had more than one "." in name
+* [Callum Lerwick] Minor cleanup patch, that gets rid of a bunch of "old style declaration" warnings from Intel's compiler
August 20, 2007
+ [FOD] Added support for the TGA file format in the codec
==========================================================
*/
-opj_bio_t* bio_create() {
+opj_bio_t* bio_create(void) {
opj_bio_t *bio = (opj_bio_t*)opj_malloc(sizeof(opj_bio_t));
return bio;
}
Create a new BIO handle
@return Returns a new BIO handle if successful, returns NULL otherwise
*/
-opj_bio_t* bio_create();
+opj_bio_t* bio_create(void);
/**
Destroy a previously created BIO handle
@param bio BIO handle to destroy
#include "opj_includes.h"
-opj_image_t* opj_image_create0() {
+opj_image_t* opj_image_create0(void) {
opj_image_t *image = (opj_image_t*)opj_malloc(sizeof(opj_image_t));
return image;
}
@todo this function should be removed
@return returns an empty image if successful, returns NULL otherwise
*/
-opj_image_t* opj_image_create0();
+opj_image_t* opj_image_create0(void);
/*@}*/
#endif /* WIN32 */
#include "opj_includes.h"
-double opj_clock() {
+double opj_clock(void) {
#ifdef WIN32
/* WIN32: use QueryPerformance (very accurate) */
LARGE_INTEGER freq , t ;
Difference in successive opj_clock() calls tells you the elapsed time
@return Returns time in seconds
*/
-double opj_clock();
+double opj_clock(void);
/**
Allocate a memory block with elements initialized to 0
==========================================================
*/
-opj_mqc_t* mqc_create() {
+opj_mqc_t* mqc_create(void) {
opj_mqc_t *mqc = (opj_mqc_t*)opj_malloc(sizeof(opj_mqc_t));
return mqc;
}
Create a new MQC handle
@return Returns a new MQC handle if successful, returns NULL otherwise
*/
-opj_mqc_t* mqc_create();
+opj_mqc_t* mqc_create(void);
/**
Destroy a previously created MQC handle
@param mqc MQC handle to destroy
/* ---------------------------------------------------------------------- */
-const char* OPJ_CALLCONV opj_version() {
+const char* OPJ_CALLCONV opj_version(void) {
return OPENJPEG_VERSION;
}
==========================================================
*/
-OPJ_API const char * OPJ_CALLCONV opj_version();
+OPJ_API const char * OPJ_CALLCONV opj_version(void);
/*
==========================================================
==========================================================
*/
-opj_raw_t* raw_create() {
+opj_raw_t* raw_create(void) {
opj_raw_t *raw = (opj_raw_t*)opj_malloc(sizeof(opj_raw_t));
return raw;
}
Create a new RAW handle
@return Returns a new RAW handle if successful, returns NULL otherwise
*/
-opj_raw_t* raw_create();
+opj_raw_t* raw_create(void);
/**
Destroy a previously created RAW handle
@param raw RAW handle to destroy