diff options
| author | Parvatha Elangovan <p.elangovan@intopix.com> | 2007-03-07 16:04:33 +0000 |
|---|---|---|
| committer | Parvatha Elangovan <p.elangovan@intopix.com> | 2007-03-07 16:04:33 +0000 |
| commit | 78003a016a30c4d64779e09bb7135861db4c1b89 (patch) | |
| tree | ed7ad986672431915940fd7ebf62648a52198327 /libopenjpeg/cio.c | |
| parent | 9e5d0b1a40da3ffa70c2d3851ebdea790adaaba1 (diff) | |
Added option for Digital cinema profile compliant codestream. This can be chosen by "-cinema2K" or "-cinema4K" for a 2K and 4K compliance respectively. The feature for tileparts has not been implemented in this version. Modification in image_to_j2k.c
Added the Digital Cinema profiles (CINEMA2K and CINEMA4K) to the list of profiles recognized in the codestream SIZ marker segment. Modification in openjpeg.h,j2k.c
Added feature for constant quality within bitrate defined in Digital cinema standards. Modification in tcd.c
Modified the method of generation of buffer length. Modification in cio.c
Diffstat (limited to 'libopenjpeg/cio.c')
| -rw-r--r-- | libopenjpeg/cio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/cio.c b/libopenjpeg/cio.c index eadf71b2..6082e9be 100644 --- a/libopenjpeg/cio.c +++ b/libopenjpeg/cio.c @@ -58,7 +58,7 @@ opj_cio_t* OPJ_CALLCONV opj_cio_open(opj_common_ptr cinfo, unsigned char *buffer opj_free(cio); return NULL; } - cio->length = cp->tdx * cp->tdy * cp->tw * cp->th * 4; + cio->length = (int) (1.3 * cp->img_size); cio->buffer = (unsigned char *)opj_malloc(cio->length); if(!cio->buffer) { opj_free(cio); |
