[][src]Crate openjpeg2_sys

Re-exports

pub use self::RSIZ_CAPABILITIES as OPJ_RSIZ_CAPABILITIES;
pub use self::CINEMA_MODE as OPJ_CINEMA_MODE;
pub use self::PROG_ORDER as OPJ_PROG_ORDER;
pub use self::COLOR_SPACE as OPJ_COLOR_SPACE;
pub use self::CODEC_FORMAT as OPJ_CODEC_FORMAT;

Structs

_G_fpos64_t
_G_fpos_t
_IO_FILE
_IO_FILE_plus
_IO_jump_t
_IO_marker
__fsid_t
__mbstate_t
__va_list_tag
opj_codestream_index

Index structure of the codestream (FIXME should be expand and enhance)

opj_codestream_info

Index structure of the codestream

opj_codestream_info_v2

Information structure about the codestream (FIXME should be expand and enhance)

opj_cparameters

Compression parameters

opj_dparameters

Decompression parameters

opj_image

Defines image data and characteristics

opj_image_comp

Defines a single image component

opj_image_comptparm

Component parameters structure used by the opj_image_create function

opj_jp2_metadata

Info structure of the JP2 file EXPERIMENTAL FOR THE MOMENT

opj_jp2_index

Index structure of the JP2 file EXPERIMENTAL FOR THE MOMENT

opj_marker_info

Marker structure

opj_packet_info

Index structure : Information concerning a packet inside tile

opj_poc

Progression order changes

opj_tccp_info

Tile-component coding parameters information

opj_tile_index

Index structure about a tile

opj_tile_info

Index structure : information regarding tiles

opj_tile_v2_info

Tile coding parameters information

opj_tp_index

Index structure about a tile part

opj_tp_info

Index structure : Information concerning tile-parts

Constants

BUFSIZ
CINEMA_MODE_OPJ_CINEMA2K_24

Not Digital Cinema

CINEMA_MODE_OPJ_CINEMA2K_48

2K Digital Cinema at 24 fps

CINEMA_MODE_OPJ_CINEMA4K_24

2K Digital Cinema at 48 fps

CINEMA_MODE_OPJ_OFF
CODEC_FORMAT_OPJ_CODEC_J2K

< JPEG-2000 codestream : read/write

CODEC_FORMAT_OPJ_CODEC_JP2

< JP2 file format : read/write

CODEC_FORMAT_OPJ_CODEC_JPP

< JPP-stream (JPEG 2000, JPIP) : to be coded

CODEC_FORMAT_OPJ_CODEC_JPT

< JPT-stream (JPEG 2000, JPIP) : read only

CODEC_FORMAT_OPJ_CODEC_JPX

< JPX file format (JPEG 2000 Part-2) : to be coded

CODEC_FORMAT_OPJ_CODEC_UNKNOWN

< place-holder

COLOR_SPACE_OPJ_CLRSPC_CMYK

< CMYK

COLOR_SPACE_OPJ_CLRSPC_EYCC

< e-YCC

COLOR_SPACE_OPJ_CLRSPC_GRAY

< grayscale

COLOR_SPACE_OPJ_CLRSPC_SRGB

< sRGB

COLOR_SPACE_OPJ_CLRSPC_SYCC

< YUV

COLOR_SPACE_OPJ_CLRSPC_UNKNOWN

< not supported by the library

COLOR_SPACE_OPJ_CLRSPC_UNSPECIFIED

< not specified in the codestream

EOF
FILENAME_MAX
FOPEN_MAX
INT8_MIN
INT8_MAX
INT16_MIN
INT16_MAX
INT32_MIN
INT32_MAX
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MIN
INT_FAST8_MAX
INT_FAST16_MIN
INT_FAST16_MAX
INT_FAST32_MIN
INT_FAST32_MAX
INT_LEAST8_MIN
INT_LEAST8_MAX
INT_LEAST16_MIN
INT_LEAST16_MAX
INT_LEAST32_MIN
INT_LEAST32_MAX
JPWL_EXPECTED_COMPONENTS
JPWL_MAXIMUM_EPB_ROOM
JPWL_MAXIMUM_HAMMING
JPWL_MAXIMUM_TILES
JPWL_MAX_NO_MARKERS
JPWL_MAX_NO_PACKSPECS
JPWL_MAX_NO_TILESPECS
JPWL_PRIVATEINDEX_NAME
L_ctermid
L_tmpnam
OPJ_CINEMA_24_CS
OPJ_CINEMA_24_COMP
OPJ_CINEMA_48_CS
OPJ_CINEMA_48_COMP
OPJ_DPARAMETERS_DUMP_FLAG
OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG
OPJ_EXTENSION_MCT
OPJ_EXTENSION_NONE
OPJ_FALSE
OPJ_HAVE_STDINT_H
OPJ_IMG_INFO
OPJ_J2K_MAXRLVLS
OPJ_J2K_MAXBANDS
OPJ_J2K_DEFAULT_NB_SEGS
OPJ_J2K_STREAM_CHUNK_SIZE
OPJ_J2K_DEFAULT_HEADER_SIZE
OPJ_J2K_MCC_DEFAULT_NB_RECORDS
OPJ_J2K_MCT_DEFAULT_NB_RECORDS
OPJ_J2K_MH_INFO
OPJ_J2K_TH_INFO
OPJ_J2K_TCH_INFO
OPJ_J2K_MH_IND
OPJ_J2K_TH_IND
OPJ_JP2_INFO
OPJ_JP2_IND
OPJ_PATH_LEN
OPJ_PROFILE_0
OPJ_PROFILE_1
OPJ_PROFILE_BC_MULTI
OPJ_PROFILE_BC_MULTI_R
OPJ_PROFILE_BC_SINGLE
OPJ_PROFILE_CINEMA_2K
OPJ_PROFILE_CINEMA_4K
OPJ_PROFILE_CINEMA_LTS
OPJ_PROFILE_CINEMA_S2K
OPJ_PROFILE_CINEMA_S4K
OPJ_PROFILE_IMF_2K
OPJ_PROFILE_IMF_2K_R
OPJ_PROFILE_IMF_4K
OPJ_PROFILE_IMF_4K_R
OPJ_PROFILE_IMF_8K
OPJ_PROFILE_IMF_8K_R
OPJ_PROFILE_NONE
OPJ_PROFILE_PART2
OPJ_STREAM_READ
OPJ_STREAM_WRITE
OPJ_TRUE
OPJ_VERSION_BUILD
OPJ_VERSION_MAJOR
OPJ_VERSION_MINOR
PROG_ORDER_OPJ_CPRL

< component-precinct-resolution-layer order

PROG_ORDER_OPJ_LRCP

< layer-resolution-component-precinct order

PROG_ORDER_OPJ_PCRL

< precinct-component-resolution-layer order

PROG_ORDER_OPJ_PROG_UNKNOWN

< place-holder

PROG_ORDER_OPJ_RLCP

< resolution-layer-component-precinct order

PROG_ORDER_OPJ_RPCL

< resolution-precinct-component-layer order

PTRDIFF_MAX
PTRDIFF_MIN
P_tmpdir
RSIZ_CAPABILITIES_OPJ_CINEMA2K

Standard JPEG2000 profile

RSIZ_CAPABILITIES_OPJ_CINEMA4K

Profile name for a 2K image

RSIZ_CAPABILITIES_OPJ_MCT

Profile name for a 4K image

RSIZ_CAPABILITIES_OPJ_STD_RSIZ
SEEK_CUR
SEEK_END
SEEK_SET
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
TMP_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_G_CONFIG_H
_BITS_LIBIO_H
_BITS_STDINT_INTN_H
_BITS_STDINT_UINTN_H
_BITS_STDIO_LIM_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_G_BUFSIZ
_G_HAVE_MMAP
_G_HAVE_MREMAP
_G_IO_IO_FILE_VERSION
_IOFBF
_IOLBF
_IONBF
_IOS_APPEND
_IOS_ATEND
_IOS_BIN
_IOS_INPUT
_IOS_NOCREATE
_IOS_NOREPLACE
_IOS_OUTPUT
_IOS_TRUNC
_IO_BAD_SEEN
_IO_BOOLALPHA
_IO_BUFSIZ
_IO_CURRENTLY_PUTTING
_IO_DEC
_IO_DELETE_DONT_CLOSE
_IO_DONT_CLOSE
_IO_EOF_SEEN
_IO_ERR_SEEN
_IO_FIXED
_IO_FLAGS2_MMAP
_IO_FLAGS2_NOTCANCEL
_IO_FLAGS2_USER_WBUF
_IO_HEX
_IO_INTERNAL
_IO_IN_BACKUP
_IO_IS_APPENDING
_IO_IS_FILEBUF
_IO_LEFT
_IO_LINE_BUF
_IO_LINKED
_IO_MAGIC
_IO_MAGIC_MASK
_IO_NO_READS
_IO_NO_WRITES
_IO_OCT
_IO_RIGHT
_IO_SCIENTIFIC
_IO_SHOWBASE
_IO_SHOWPOINT
_IO_SHOWPOS
_IO_SKIPWS
_IO_STDIO
_IO_TIED_PUT_GET
_IO_UNBUFFERED
_IO_UNIFIED_JUMPTABLES
_IO_UNITBUF
_IO_UPPERCASE
_IO_USER_BUF
_IO_USER_LOCK
_OLD_STDIO_MAGIC
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_STDIO_H
_SYS_CDEFS_H
__FD_SETSIZE
__FILE_defined
__GLIBC_MINOR__
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNUC_VA_LIST
__GNU_LIBRARY__
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STDC_IEC_559__
__STDC_IEC_559_COMPLEX__
__STDC_ISO_10646__
__STDC_NO_THREADS__
__SYSCALL_WORDSIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
____FILE_defined
____mbstate_t_defined
__codecvt_result___codecvt_error
__codecvt_result___codecvt_noconv
__codecvt_result___codecvt_ok
__codecvt_result___codecvt_partial
__glibc_c99_flexarr_available

Statics

_IO_2_1_stdin_
_IO_2_1_stdout_
_IO_2_1_stderr_
stderr
stdin
stdout
sys_errlist
sys_nerr

Functions

_IO_feof
_IO_ferror
_IO_flockfile
_IO_free_backup_area
_IO_ftrylockfile
_IO_funlockfile
_IO_getc
_IO_padn
_IO_peekc_locked
_IO_putc
_IO_seekoff
_IO_seekpos
_IO_sgetn
_IO_vfprintf
_IO_vfscanf
__getdelim
__overflow
__uflow
__underflow
clearerr
clearerr_unlocked
ctermid
dprintf
fclose
fdopen
feof
feof_unlocked
ferror
ferror_unlocked
fflush
fflush_unlocked
fgetc
fgetc_unlocked
fgetpos
fgets
fileno
fileno_unlocked
flockfile
fmemopen
fopen
fprintf
fputc
fputc_unlocked
fputs
fread
fread_unlocked
freopen
fscanf
fscanf1
fseek
fseeko
fsetpos
ftell
ftello
ftrylockfile
funlockfile
fwrite
fwrite_unlocked
getc
getc_unlocked
getchar
getchar_unlocked
getdelim
getline
getw
open_memstream
opj_codec_set_threads

Allocates worker threads for the compressor/decompressor.

opj_create_compress

Creates a J2K/JP2 compression structure @param format Coder to select @return Returns a handle to a compressor if successful, returns NULL otherwise

opj_create_decompress

Creates a J2K/JP2 decompression structure @param format Decoder to select

opj_decode

Decode an image from a JPEG-2000 codestream

opj_decode_tile_data

Reads a tile data. This function is compulsory and allows one to decode tile data. opj_read_tile_header should be called before. The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile.

opj_destroy_codec

Destroy a decompressor handle

opj_destroy_cstr_index
opj_destroy_cstr_info

Destroy Codestream information after compression or decompression @param cstr_info Codestream information structure

opj_dump_codec

Dump the codec information into the output stream

opj_encode

Encode an image into a JPEG-2000 codestream @param p_codec compressor handle @param p_stream Output buffer stream

opj_end_compress

End to compress the current image. @param p_codec Compressor handle @param p_stream Input stgream

opj_end_decompress

Read after the codestream if necessary @param p_codec the JPEG2000 codec to read. @param p_stream the JPEG2000 stream.

opj_get_cstr_index

Get the codestream index from the codec

opj_get_cstr_info

Get the codestream information from the codec

opj_get_decoded_tile

Get the decoded tile from the codec

opj_get_jp2_metadata

Get the JP2 file information from the codec FIXME

opj_get_jp2_index

Get the JP2 file index from the codec FIXME

opj_get_num_cpus

Return the number of virtual CPUs

opj_has_thread_support

Returns if the library is built with thread support. OPJ_TRUE if mutex, condition, thread, thread pool are available.

opj_image_create

Create an image

opj_image_data_alloc

Allocator for opj_image_t->comps[].data To be paired with opj_image_data_free.

opj_image_data_free

Destructor for opj_image_t->comps[].data To be paired with opj_image_data_alloc.

opj_image_destroy

Deallocate any resources associated with an image

opj_image_tile_create

Creates an image without allocating memory for the image (used in the new version of the library).

opj_read_header

Decodes an image header.

opj_read_tile_header

Reads a tile header. This function is compulsory and allows one to know the size of the tile that will be decoded. The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile.

opj_set_MCT

Sets the MCT matrix to use.

opj_set_decode_area

Sets the given area to be decoded. This function should be called right after opj_read_header and before any tile header reading.

opj_set_decoded_components

Restrict the number of components to decode.

opj_set_decoded_resolution_factor

Set the resolution factor of the decoded image @param p_codec the jpeg2000 codec. @param res_factor resolution factor to set

opj_set_default_decoder_parameters

Set decoding parameters to default values @param parameters Decompression parameters

opj_set_default_encoder_parameters

Set encoding parameters to default values, that means :

opj_set_error_handler

Set the error handler use by openjpeg. @param p_codec the codec previously initialise @param p_callback the callback function which will be used @param p_user_data client object where will be returned the message

opj_set_info_handler

Set the info handler use by openjpeg. @param p_codec the codec previously initialise @param p_callback the callback function which will be used @param p_user_data client object where will be returned the message

opj_set_warning_handler

Set the warning handler use by openjpeg. @param p_codec the codec previously initialise @param p_callback the callback function which will be used @param p_user_data client object where will be returned the message

opj_setup_decoder

Setup the decoder with decompression parameters provided by the user and with the message handler provided by the user.

opj_setup_encoder

Setup the encoder parameters using the current image and using user parameters. @param p_codec Compressor handle @param parameters Compression parameters @param image Input filled image

opj_start_compress

Start to compress the current image. @param p_codec Compressor handle @param p_image Input filled image @param p_stream Input stgream

opj_stream_create

Creates an abstract stream. This function does nothing except allocating memory and initializing the abstract stream.

opj_stream_create_default_file_stream

Create a stream from a file identified with its filename with default parameters (helper function) @param fname the filename of the file to stream @param p_is_read_stream whether the stream is a read stream (true) or not (false)

opj_stream_create_file_stream

Create a stream from a file identified with its filename with a specific buffer size @param fname the filename of the file to stream @param p_buffer_size size of the chunk used to stream @param p_is_read_stream whether the stream is a read stream (true) or not (false)

opj_stream_default_create

Creates an abstract stream. This function does nothing except allocating memory and initializing the abstract stream.

opj_stream_destroy

Destroys a stream created by opj_create_stream. This function does NOT close the abstract stream. If needed the user must close its own implementation of the stream.

opj_stream_set_read_function

Sets the given function to be used as a read function. @param p_stream the stream to modify @param p_function the function to use a read function.

opj_stream_set_seek_function

Sets the given function to be used as a seek function, the stream is then seekable, using SEEK_SET behavior. @param p_stream the stream to modify @param p_function the function to use a skip function.

opj_stream_set_skip_function

Sets the given function to be used as a skip function. @param p_stream the stream to modify @param p_function the function to use a skip function.

opj_stream_set_user_data

Sets the given data to be used as a user data for the stream. @param p_stream the stream to modify @param p_data the data to set. @param p_function the function to free p_data when opj_stream_destroy() is called.

opj_stream_set_user_data_length

Sets the length of the user data for the stream.

opj_stream_set_write_function

Sets the given function to be used as a write function. @param p_stream the stream to modify @param p_function the function to use a write function.

opj_version
opj_write_tile

Writes a tile with the given data.

pclose
perror
popen
printf
putc
putc_unlocked
putchar
putchar_unlocked
puts
putw
remove
rename
renameat
rewind
scanf
scanf1
setbuf
setbuffer
setlinebuf
setvbuf
snprintf
sprintf
sscanf
sscanf1
tempnam
tmpfile
tmpnam
tmpnam_r
ungetc
vdprintf
vfprintf
vfscanf
vfscanf1
vprintf
vscanf
vscanf1
vsnprintf
vsprintf
vsscanf
vsscanf1

Type Definitions

CINEMA_MODE

DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead Digital cinema operation mode

CODEC_FORMAT

Supported codec

COLOR_SPACE

Supported image color spaces

FILE
OPJ_BOOL
OPJ_BYTE
OPJ_CHAR
OPJ_FLOAT32
OPJ_FLOAT64
OPJ_INT8
OPJ_INT16
OPJ_INT32
OPJ_INT64
OPJ_OFF_T
OPJ_SIZE_T
OPJ_UINT8
OPJ_UINT16
OPJ_UINT32
OPJ_UINT64
PROG_ORDER

Progression order

RSIZ_CAPABILITIES

DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead Rsiz Capabilities

_IO_lock_t
__FILE
__blkcnt64_t
__blkcnt_t
__blksize_t
__builtin_va_list
__caddr_t
__clock_t
__clockid_t
__codecvt_result
__daddr_t
__dev_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__gnuc_va_list
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__intmax_t
__intptr_t
__io_close_fn
__io_read_fn
__io_seek_fn
__io_write_fn
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uintmax_t
__useconds_t
fpos_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
off_t
opj_codec_t

JPEG2000 codec V2.

opj_codestream_index_t
opj_codestream_info_t
opj_codestream_info_v2_t
opj_cparameters_t
opj_dparameters_t
opj_image_cmptparm_t
opj_image_comp_t
opj_image_t
opj_jp2_metadata_t
opj_jp2_index_t
opj_marker_info_t
opj_msg_callback

Callback function prototype for events @param msg Event message @param client_data Client object where will be return the event message

opj_packet_info_t
opj_poc_t
opj_stream_free_user_data_fn
opj_stream_read_fn
opj_stream_seek_fn
opj_stream_skip_fn
opj_stream_t
opj_stream_write_fn
opj_tccp_info_t
opj_tile_index_t
opj_tile_info_t
opj_tile_info_v2_t
opj_tp_index_t
opj_tp_info_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
va_list

Unions

__mbstate_t__bindgen_ty_1