summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/image.c
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2015-07-30 23:26:31 +0200
committermayeut <mayeut@users.noreply.github.com>2015-07-30 23:26:31 +0200
commit0df90afdf743c85fe943041f5716ca072b4678d1 (patch)
treed5266de25db98be3894abbfb7a6a00656166f3b4 /src/lib/openjp2/image.c
parent75a33de3bceb5a83888526911e48aed88bed1dbf (diff)
Remove printf/fprintf to stdout/stderr throughout openjp2 lib
Update uclouvain/openjpeg#246
Diffstat (limited to 'src/lib/openjp2/image.c')
-rw-r--r--src/lib/openjp2/image.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/openjp2/image.c b/src/lib/openjp2/image.c
index 3646e998..23462f05 100644
--- a/src/lib/openjp2/image.c
+++ b/src/lib/openjp2/image.c
@@ -47,7 +47,8 @@ opj_image_t* OPJ_CALLCONV opj_image_create(OPJ_UINT32 numcmpts, opj_image_cmptpa
/* allocate memory for the per-component information */
image->comps = (opj_image_comp_t*)opj_calloc(1,image->numcomps * sizeof(opj_image_comp_t));
if(!image->comps) {
- fprintf(stderr,"Unable to allocate memory for image.\n");
+ /* TODO replace with event manager, breaks API */
+ /* fprintf(stderr,"Unable to allocate memory for image.\n"); */
opj_image_destroy(image);
return NULL;
}
@@ -65,7 +66,8 @@ opj_image_t* OPJ_CALLCONV opj_image_create(OPJ_UINT32 numcmpts, opj_image_cmptpa
comp->sgnd = cmptparms[compno].sgnd;
comp->data = (OPJ_INT32*) opj_calloc(comp->w * comp->h, sizeof(OPJ_INT32));
if(!comp->data) {
- fprintf(stderr,"Unable to allocate memory for image.\n");
+ /* TODO replace with event manager, breaks API */
+ /* fprintf(stderr,"Unable to allocate memory for image.\n"); */
opj_image_destroy(image);
return NULL;
}