[][src]Crate openjpeg_sys

Structs

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_index

Index structure of the JP2 file EXPERIMENTAL FOR THE MOMENT

opj_jp2_metadata

Info 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

Enums

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

OPJ_CINEMA_MODE

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

OPJ_CODEC_FORMAT

Supported codec

OPJ_COLOR_SPACE

Supported image color spaces

OPJ_PROG_ORDER

Progression order

OPJ_RSIZ_CAPABILITIES

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

PROG_ORDER

Progression order

RSIZ_CAPABILITIES

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

Functions

opj_codec_set_threads

Allocates worker threads for the compressor/decompressor.

opj_create_compress

Creates a J2K/JP2 compression structure

opj_create_decompress

Creates a J2K/JP2 decompression structure

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

opj_end_compress

End to compress the current image.

opj_end_decompress

Read after the codestream if necessary

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_index

Get the JP2 file index from the codec FIXME

opj_get_jp2_metadata

Get the JP2 file information 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

opj_set_default_decoder_parameters

Set decoding parameters to default values

opj_set_default_encoder_parameters

Set encoding parameters to default values, that means :

opj_set_error_handler

Set the error handler use by openjpeg.

opj_set_info_handler

Set the info handler use by openjpeg.

opj_set_warning_handler

Set the warning handler use by openjpeg.

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.

opj_start_compress

Start to compress the current image.

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)

opj_stream_create_file_stream

Create a stream from a file identified with its filename with a specific buffer size

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.

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.

opj_stream_set_skip_function

Sets the given function to be used as a skip function.

opj_stream_set_user_data

Sets the given data to be used as a user data for the stream.

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.

opj_version
opj_write_tile

Writes a tile with the given data.

Type Definitions

OPJ_BOOL
OPJ_BYTE
OPJ_CHAR
OPJ_FLOAT32
OPJ_INT32
OPJ_OFF_T
OPJ_SIZE_T
OPJ_UINT16
OPJ_UINT32
OPJ_UINT64
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_index_t
opj_jp2_metadata_t
opj_marker_info_t
opj_msg_callback

Callback function prototype for events

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