jp2.c File Reference

#include "opj_includes.h"
#include <assert.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).
static opj_bool opj_jp2_check_color (opj_image_t *image, opj_jp2_color_t *color, opj_common_ptr cinfo)
opj_image_topj_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.
void jp2_write_jp2h (opj_jp2_t *jp2, opj_cio_t *cio)
 Write the JP2H box - JP2 Header box (used in MJ2).
opj_jp2_tjp2_create_decompress (opj_common_ptr cinfo)
 Creates a JP2 decompression structure.
void jp2_destroy_decompress (opj_jp2_t *jp2)
 Destroy a JP2 decompressor handle.
void jp2_setup_decoder (opj_jp2_t *jp2, opj_dparameters_t *parameters)
 Setup the decoder decoding parameters using user parameters.
opj_jp2_tjp2_create_compress (opj_common_ptr cinfo)
 Creates a JP2 compression structure.
void jp2_destroy_compress (opj_jp2_t *jp2)
 Destroy a JP2 compressor handle.
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.
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.
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.
static opj_bool jp2_read_ihdr (opj_jp2_t *jp2, opj_cio_t *cio)
 Read the IHDR box - Image Header box.
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.
static opj_bool jp2_read_ftyp (opj_jp2_t *jp2, opj_cio_t *cio)
 Read the FTYP box - File type box.
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.
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.
static void jp2_apply_pclr (opj_jp2_color_t *color, opj_image_t *image, opj_common_ptr cinfo)
 Apply collected palette data.
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.
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.
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.
static int write_fidx (int offset_jp2c, int length_jp2c, int offset_idx, int length_idx, opj_cio_t *cio)
 Write file Index (superbox).
static void write_iptr (int offset, int length, opj_cio_t *cio)
 Write index Finder box.
static void write_prxy (int offset_jp2c, int length_jp2c, int offset_idx, int length_idx, opj_cio_t *cio)
 Write proxy box.

Function Documentation

static void free_color_data ( opj_jp2_color_t color  )  [static]

static void jp2_apply_cdef ( opj_image_t image,
opj_jp2_color_t color 
) [static]

static void jp2_free_pclr ( opj_jp2_color_t color  )  [static]

static opj_bool jp2_read_cdef ( opj_jp2_t jp2,
opj_cio_t cio,
opj_jp2_box_t box,
opj_jp2_color_t color 
) [static]

static opj_bool opj_jp2_check_color ( opj_image_t image,
opj_jp2_color_t color,
opj_common_ptr  cinfo 
) [static]


Generated on Mon Dec 19 12:34:13 2016 for OpenJPEG by  doxygen 1.5.6