OpenJPEG
1.5.1
|
#include "opj_includes.h"
Functions | |
static void | jp2_free_pclr (opj_jp2_color_t *color) |
static void | free_color_data (opj_jp2_color_t *color) |
static void | jp2_apply_cdef (opj_image_t *image, opj_jp2_color_t *color) |
static opj_bool | jp2_read_cdef (opj_jp2_t *jp2, opj_cio_t *cio, opj_jp2_box_t *box, opj_jp2_color_t *color) |
opj_bool | jp2_read_jp2h (opj_jp2_t *jp2, opj_cio_t *cio, opj_jp2_color_t *color) |
Read the JP2H box - JP2 Header box (used in MJ2) More... | |
opj_image_t * | opj_jp2_decode (opj_jp2_t *jp2, opj_cio_t *cio, opj_codestream_info_t *cstr_info) |
Decode an image from a JPEG-2000 file stream. More... | |
void | jp2_write_jp2h (opj_jp2_t *jp2, opj_cio_t *cio) |
Write the JP2H box - JP2 Header box (used in MJ2) More... | |
opj_jp2_t * | jp2_create_decompress (opj_common_ptr cinfo) |
Creates a JP2 decompression structure. More... | |
void | jp2_destroy_decompress (opj_jp2_t *jp2) |
Destroy a JP2 decompressor handle. More... | |
void | jp2_setup_decoder (opj_jp2_t *jp2, opj_dparameters_t *parameters) |
Setup the decoder decoding parameters using user parameters. More... | |
opj_jp2_t * | jp2_create_compress (opj_common_ptr cinfo) |
Creates a JP2 compression structure. More... | |
void | jp2_destroy_compress (opj_jp2_t *jp2) |
Destroy a JP2 compressor handle. More... | |
void | jp2_setup_encoder (opj_jp2_t *jp2, opj_cparameters_t *parameters, opj_image_t *image) |
Setup the encoder parameters using the current image and using user parameters. More... | |
opj_bool | opj_jp2_encode (opj_jp2_t *jp2, opj_cio_t *cio, opj_image_t *image, opj_codestream_info_t *cstr_info) |
Encode an image into a JPEG-2000 file stream. More... | |
Local static functions | |
static opj_bool | jp2_read_boxhdr (opj_common_ptr cinfo, opj_cio_t *cio, opj_jp2_box_t *box) |
Read box headers. More... | |
static opj_bool | jp2_read_ihdr (opj_jp2_t *jp2, opj_cio_t *cio) |
Read the IHDR box - Image Header box. More... | |
static void | jp2_write_ihdr (opj_jp2_t *jp2, opj_cio_t *cio) |
static void | jp2_write_bpcc (opj_jp2_t *jp2, opj_cio_t *cio) |
static opj_bool | jp2_read_bpcc (opj_jp2_t *jp2, opj_cio_t *cio) |
static void | jp2_write_colr (opj_jp2_t *jp2, opj_cio_t *cio) |
static void | jp2_write_ftyp (opj_jp2_t *jp2, opj_cio_t *cio) |
Write the FTYP box - File type box. More... | |
static opj_bool | jp2_read_ftyp (opj_jp2_t *jp2, opj_cio_t *cio) |
Read the FTYP box - File type box. More... | |
static int | jp2_write_jp2c (opj_jp2_t *jp2, opj_cio_t *cio, opj_image_t *image, opj_codestream_info_t *cstr_info) |
static opj_bool | jp2_read_jp2c (opj_jp2_t *jp2, opj_cio_t *cio, unsigned int *j2k_codestream_length, unsigned int *j2k_codestream_offset) |
static void | jp2_write_jp (opj_cio_t *cio) |
static opj_bool | jp2_read_jp (opj_jp2_t *jp2, opj_cio_t *cio) |
Read the JP box - JPEG 2000 signature. More... | |
static opj_bool | jp2_read_struct (opj_jp2_t *jp2, opj_cio_t *cio, opj_jp2_color_t *color) |
Decode the structure of a JP2 file. More... | |
static void | jp2_apply_pclr (opj_jp2_color_t *color, opj_image_t *image, opj_common_ptr cinfo) |
Apply collected palette data. More... | |
static opj_bool | jp2_read_pclr (opj_jp2_t *jp2, opj_cio_t *cio, opj_jp2_box_t *box, opj_jp2_color_t *color) |
Collect palette data. More... | |
static opj_bool | jp2_read_cmap (opj_jp2_t *jp2, opj_cio_t *cio, opj_jp2_box_t *box, opj_jp2_color_t *color) |
Collect component mapping data. More... | |
static opj_bool | jp2_read_colr (opj_jp2_t *jp2, opj_cio_t *cio, opj_jp2_box_t *box, opj_jp2_color_t *color) |
Collect colour specification data. More... | |
static int | write_fidx (int offset_jp2c, int length_jp2c, int offset_idx, int length_idx, opj_cio_t *cio) |
Write file Index (superbox) More... | |
static void | write_iptr (int offset, int length, opj_cio_t *cio) |
Write index Finder box. More... | |
static void | write_prxy (int offset_jp2c, int length_jp2c, int offset_idx, int length_idx, opj_cio_t *cio) |
Write proxy box. More... | |
|
static |
References opj_jp2_color::icc_profile_buf, opj_jp2_cdef::info, opj_jp2_color::jp2_cdef, jp2_free_pclr(), opj_jp2_color::jp2_pclr, and opj_free.
Referenced by opj_jp2_decode().
|
static |
References opj_jp2_cdef_info::asoc, opj_jp2_cdef_info::cn, opj_image::color_space, opj_image::comps, opj_jp2_cdef::info, opj_jp2_color::jp2_cdef, opj_jp2_cdef::n, opj_free, and opj_jp2_cdef_info::typ.
Referenced by opj_jp2_decode().
|
static |
References opj_jp2_pclr::channel_sign, opj_jp2_pclr::channel_size, opj_jp2_pclr::cmap, opj_jp2_pclr::entries, opj_jp2_color::jp2_pclr, and opj_free.
Referenced by free_color_data(), jp2_apply_pclr(), and opj_jp2_decode().
|
static |
References opj_jp2_cdef_info::asoc, cio_read(), opj_jp2_cdef_info::cn, opj_jp2_cdef::info, opj_jp2_color::jp2_cdef, opj_jp2_cdef::n, OPJ_ARG_NOT_USED, OPJ_FALSE, opj_malloc, OPJ_TRUE, and opj_jp2_cdef_info::typ.
Referenced by jp2_read_jp2h().