diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-10-26 10:04:55 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-10-26 10:04:55 +0000 |
| commit | cdea5c8eefde8a7837a9245ac3f9a3dc8b18aa27 (patch) | |
| tree | 223729a0124961faf779c85ace9be28dad5ee38b /src/lib/openjp2/openjpeg.h | |
| parent | bcc386e3bbedee9ccf1b6a231f55fdcf8f584e89 (diff) | |
[trunk] remove some warnings from -Wall -Wextra -pedantic
Diffstat (limited to 'src/lib/openjp2/openjpeg.h')
| -rw-r--r-- | src/lib/openjp2/openjpeg.h | 56 |
1 files changed, 1 insertions, 55 deletions
diff --git a/src/lib/openjp2/openjpeg.h b/src/lib/openjp2/openjpeg.h index 581f4bfc..121ca463 100644 --- a/src/lib/openjp2/openjpeg.h +++ b/src/lib/openjp2/openjpeg.h @@ -560,29 +560,7 @@ typedef void * opj_codec_t; /** The stream was opened for writing. */ #define OPJ_STREAM_WRITE 0x0002 -/** -Byte input-output stream (CIO) -DEPRECATED -*/ -typedef struct opj_cio { - /** codec context */ - opj_common_ptr cinfo; - - /** open mode (read/write) either OPJ_STREAM_READ or OPJ_STREAM_WRITE */ - int openmode; - /** pointer to the start of the buffer */ - unsigned char *buffer; - /** buffer size in bytes */ - /* FIXME: MM length is 'int' ?? */ - int length; - - /** pointer to the start of the stream */ - unsigned char *start; - /** pointer to the end of the stream */ - unsigned char *end; - /** pointer to the current position */ - unsigned char *bp; -} opj_cio_t; + /* @@ -1069,39 +1047,7 @@ OPJ_API opj_image_t* OPJ_CALLCONV opj_image_tile_create(OPJ_UINT32 numcmpts, opj ========================================================== stream functions definitions ========================================================== -*/ -/* CIO functions are DEPRECATED see following stream functions */ -/** -Open and allocate a memory stream for read / write. -On reading, the user must provide a buffer containing encoded data. The buffer will be -wrapped by the returned CIO handle. -On writing, buffer parameters must be set to 0: a buffer will be allocated by the library -to contain encoded data. -@param cinfo Codec context info -@param buffer Reading: buffer address. Writing: NULL -@param length Reading: buffer length. Writing: 0 -@return Returns a CIO handle if successful, returns NULL otherwise -*/ -opj_cio_t* opj_cio_open(opj_common_ptr cinfo, unsigned char *buffer, int length); - -/** -Close and free a CIO handle -@param cio CIO handle to free -*/ -void opj_cio_close(opj_cio_t *cio); -/** -Get position in byte stream -@param cio CIO handle -@return Returns the position in bytes -*/ -OPJ_OFF_T cio_tell(opj_cio_t *cio); -/** -Set position in byte stream -@param cio CIO handle -@param pos Position, in number of bytes, from the beginning of the stream -*/ -void cio_seek(opj_cio_t *cio, int pos); /* <----------- */ /* V2 framework */ |
