COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Go to the source code of this file.
Classes | |
struct | JQUANT_TBL |
struct | JHUFF_TBL |
struct | jpeg_component_info |
struct | jpeg_scan_info |
struct | jpeg_marker_struct |
struct | jpeg_common_struct |
struct | jpeg_compress_struct |
struct | jpeg_decompress_struct |
struct | jpeg_error_mgr |
struct | jpeg_progress_mgr |
struct | jpeg_destination_mgr |
struct | jpeg_source_mgr |
struct | jpeg_memory_mgr |
Macros | |
#define | JPEG_LIB_VERSION 62 /* Version 6b */ |
#define | DCTSIZE 8 /* The basic DCT block is 8x8 samples */ |
#define | DCTSIZE2 64 /* DCTSIZE squared; # of elements in a block */ |
#define | NUM_QUANT_TBLS 4 /* Quantization tables are numbered 0..3 */ |
#define | NUM_HUFF_TBLS 4 /* Huffman tables are numbered 0..3 */ |
#define | NUM_ARITH_TBLS 16 /* Arith-coding tables are numbered 0..15 */ |
#define | MAX_COMPS_IN_SCAN 4 /* JPEG limit on # of components in one scan */ |
#define | MAX_SAMP_FACTOR 4 /* JPEG limit on sampling factors */ |
#define | C_MAX_BLOCKS_IN_MCU 10 /* compressor's limit on blocks per MCU */ |
#define | D_MAX_BLOCKS_IN_MCU 10 /* decompressor's limit on blocks per MCU */ |
#define | JDCT_DEFAULT JDCT_ISLOW |
#define | JDCT_FASTEST JDCT_IFAST |
#define | jpeg_common_fields |
#define | JMSG_LENGTH_MAX 200 /* recommended size of format_message buffer */ |
#define | JMSG_STR_PARM_MAX 80 |
#define | JPOOL_PERMANENT 0 /* lasts until master record is destroyed */ |
#define | JPOOL_IMAGE 1 /* lasts until done with image/datastream */ |
#define | JPOOL_NUMPOOLS 2 |
#define | JPP(arglist) arglist |
#define | jpeg_create_compress(cinfo) |
#define | jpeg_create_decompress(cinfo) |
#define | JPEG_SUSPENDED 0 /* Suspended due to lack of input data */ |
#define | JPEG_HEADER_OK 1 /* Found valid image datastream */ |
#define | JPEG_HEADER_TABLES_ONLY 2 /* Found valid table-specs-only datastream */ |
#define | JPEG_REACHED_SOS 1 /* Reached start of new scan */ |
#define | JPEG_REACHED_EOI 2 /* Reached end of image */ |
#define | JPEG_ROW_COMPLETED 3 /* Completed one iMCU row */ |
#define | JPEG_SCAN_COMPLETED 4 /* Completed last iMCU row of a scan */ |
#define | JPEG_RST0 0xD0 /* RST0 marker code */ |
#define | JPEG_EOI 0xD9 /* EOI marker code */ |
#define | JPEG_APP0 0xE0 /* APP0 marker code */ |
#define | JPEG_COM 0xFE /* COM marker code */ |
Typedefs | |
typedef JSAMPLE * | JSAMPROW |
typedef JSAMPROW * | JSAMPARRAY |
typedef JSAMPARRAY * | JSAMPIMAGE |
typedef JCOEF | JBLOCK[64] |
typedef JBLOCK * | JBLOCKROW |
typedef JBLOCKROW * | JBLOCKARRAY |
typedef JBLOCKARRAY * | JBLOCKIMAGE |
typedef JCOEF * | JCOEFPTR |
typedef struct jpeg_marker_struct * | jpeg_saved_marker_ptr |
typedef struct jpeg_common_struct * | j_common_ptr |
typedef struct jpeg_compress_struct * | j_compress_ptr |
typedef struct jpeg_decompress_struct * | j_decompress_ptr |
typedef struct jvirt_sarray_control * | jvirt_sarray_ptr |
typedef struct jvirt_barray_control * | jvirt_barray_ptr |
typedef boolean(* | jpeg_marker_parser_method) () |
Enumerations | |
enum | J_COLOR_SPACE { JCS_UNKNOWN, JCS_GRAYSCALE, JCS_RGB, JCS_YCbCr, JCS_CMYK, JCS_YCCK } |
enum | J_DCT_METHOD { JDCT_ISLOW, JDCT_IFAST, JDCT_FLOAT } |
enum | J_DITHER_MODE { JDITHER_NONE, JDITHER_ORDERED, JDITHER_FS } |
#define JPEG_LIB_VERSION 62 /* Version 6b */ |
#define DCTSIZE 8 /* The basic DCT block is 8x8 samples */ |
#define NUM_QUANT_TBLS 4 /* Quantization tables are numbered 0..3 */ |
#define NUM_HUFF_TBLS 4 /* Huffman tables are numbered 0..3 */ |
#define NUM_ARITH_TBLS 16 /* Arith-coding tables are numbered 0..15 */ |
#define MAX_COMPS_IN_SCAN 4 /* JPEG limit on # of components in one scan */ |
#define MAX_SAMP_FACTOR 4 /* JPEG limit on sampling factors */ |
#define C_MAX_BLOCKS_IN_MCU 10 /* compressor's limit on blocks per MCU */ |
#define D_MAX_BLOCKS_IN_MCU 10 /* decompressor's limit on blocks per MCU */ |
#define JDCT_DEFAULT JDCT_ISLOW |
#define JDCT_FASTEST JDCT_IFAST |
#define jpeg_common_fields |
#define JMSG_LENGTH_MAX 200 /* recommended size of format_message buffer */ |
#define JMSG_STR_PARM_MAX 80 |
#define JPOOL_PERMANENT 0 /* lasts until master record is destroyed */ |
#define JPOOL_IMAGE 1 /* lasts until done with image/datastream */ |
#define JPOOL_NUMPOOLS 2 |
#define JPP | ( | arglist | ) | arglist |
#define jpeg_create_compress | ( | cinfo | ) |
#define jpeg_create_decompress | ( | cinfo | ) |
#define JPEG_SUSPENDED 0 /* Suspended due to lack of input data */ |
#define JPEG_HEADER_OK 1 /* Found valid image datastream */ |
#define JPEG_HEADER_TABLES_ONLY 2 /* Found valid table-specs-only datastream */ |
#define JPEG_REACHED_SOS 1 /* Reached start of new scan */ |
#define JPEG_REACHED_EOI 2 /* Reached end of image */ |
#define JPEG_ROW_COMPLETED 3 /* Completed one iMCU row */ |
#define JPEG_SCAN_COMPLETED 4 /* Completed last iMCU row of a scan */ |
#define JPEG_RST0 0xD0 /* RST0 marker code */ |
#define JPEG_EOI 0xD9 /* EOI marker code */ |
#define JPEG_APP0 0xE0 /* APP0 marker code */ |
#define JPEG_COM 0xFE /* COM marker code */ |
typedef JSAMPROW* JSAMPARRAY |
typedef JSAMPARRAY* JSAMPIMAGE |
typedef JCOEF JBLOCK[64] |
typedef JBLOCKROW* JBLOCKARRAY |
typedef JBLOCKARRAY* JBLOCKIMAGE |
typedef struct jpeg_marker_struct* jpeg_saved_marker_ptr |
typedef struct jpeg_common_struct* j_common_ptr |
typedef struct jpeg_compress_struct* j_compress_ptr |
typedef struct jpeg_decompress_struct* j_decompress_ptr |
typedef struct jvirt_sarray_control* jvirt_sarray_ptr |
typedef struct jvirt_barray_control* jvirt_barray_ptr |
typedef boolean(* jpeg_marker_parser_method) () |
enum J_COLOR_SPACE |
enum J_DCT_METHOD |
enum J_DITHER_MODE |
struct jpeg_error_mgr* jpeg_std_error | ( | struct jpeg_error_mgr * | err | ) |
void jpeg_CreateCompress | ( | j_compress_ptr | cinfo, |
int | version, | ||
size_t | structsize | ||
) |
void jpeg_CreateDecompress | ( | j_decompress_ptr | cinfo, |
int | version, | ||
size_t | structsize | ||
) |
void jpeg_destroy_compress | ( | j_compress_ptr | cinfo | ) |
void jpeg_destroy_decompress | ( | j_decompress_ptr | cinfo | ) |
void jpeg_stdio_dest | ( | j_compress_ptr | cinfo, |
FILE * | outfile | ||
) |
void jpeg_stdio_src | ( | j_decompress_ptr | cinfo, |
FILE * | infile | ||
) |
void jpeg_set_defaults | ( | j_compress_ptr | cinfo | ) |
void jpeg_set_colorspace | ( | j_compress_ptr | cinfo, |
J_COLOR_SPACE | colorspace | ||
) |
void jpeg_default_colorspace | ( | j_compress_ptr | cinfo | ) |
void jpeg_set_quality | ( | j_compress_ptr | cinfo, |
int | quality, | ||
boolean | force_baseline | ||
) |
void jpeg_set_linear_quality | ( | j_compress_ptr | cinfo, |
int | scale_factor, | ||
boolean | force_baseline | ||
) |
void jpeg_add_quant_table | ( | j_compress_ptr | cinfo, |
int | which_tbl, | ||
const unsigned int * | basic_table, | ||
int | scale_factor, | ||
boolean | force_baseline | ||
) |
int jpeg_quality_scaling | ( | int | quality | ) |
void jpeg_simple_progression | ( | j_compress_ptr | cinfo | ) |
void jpeg_suppress_tables | ( | j_compress_ptr | cinfo, |
boolean | suppress | ||
) |
JQUANT_TBL* jpeg_alloc_quant_table | ( | j_common_ptr | cinfo | ) |
JHUFF_TBL* jpeg_alloc_huff_table | ( | j_common_ptr | cinfo | ) |
void jpeg_start_compress | ( | j_compress_ptr | cinfo, |
boolean | write_all_tables | ||
) |
JDIMENSION jpeg_write_scanlines | ( | j_compress_ptr | cinfo, |
JSAMPARRAY | scanlines, | ||
JDIMENSION | num_lines | ||
) |
void jpeg_finish_compress | ( | j_compress_ptr | cinfo | ) |
JDIMENSION jpeg_write_raw_data | ( | j_compress_ptr | cinfo, |
JSAMPIMAGE | data, | ||
JDIMENSION | num_lines | ||
) |
void jpeg_write_marker | ( | j_compress_ptr | cinfo, |
int | marker, | ||
const JOCTET * | dataptr, | ||
unsigned int | datalen | ||
) |
void jpeg_write_m_header | ( | j_compress_ptr | cinfo, |
int | marker, | ||
unsigned int | datalen | ||
) |
void jpeg_write_m_byte | ( | j_compress_ptr | cinfo, |
int | val | ||
) |
void jpeg_write_tables | ( | j_compress_ptr | cinfo | ) |
int jpeg_read_header | ( | j_decompress_ptr | cinfo, |
boolean | require_image | ||
) |
boolean jpeg_start_decompress | ( | j_decompress_ptr | cinfo | ) |
JDIMENSION jpeg_read_scanlines | ( | j_decompress_ptr | cinfo, |
JSAMPARRAY | scanlines, | ||
JDIMENSION | max_lines | ||
) |
boolean jpeg_finish_decompress | ( | j_decompress_ptr | cinfo | ) |
JDIMENSION jpeg_read_raw_data | ( | j_decompress_ptr | cinfo, |
JSAMPIMAGE | data, | ||
JDIMENSION | max_lines | ||
) |
boolean jpeg_has_multiple_scans | ( | j_decompress_ptr | cinfo | ) |
boolean jpeg_start_output | ( | j_decompress_ptr | cinfo, |
int | scan_number | ||
) |
boolean jpeg_finish_output | ( | j_decompress_ptr | cinfo | ) |
boolean jpeg_input_complete | ( | j_decompress_ptr | cinfo | ) |
void jpeg_new_colormap | ( | j_decompress_ptr | cinfo | ) |
int jpeg_consume_input | ( | j_decompress_ptr | cinfo | ) |
void jpeg_calc_output_dimensions | ( | j_decompress_ptr | cinfo | ) |
void jpeg_save_markers | ( | j_decompress_ptr | cinfo, |
int | marker_code, | ||
unsigned int | length_limit | ||
) |
void jpeg_set_marker_processor | ( | j_decompress_ptr | cinfo, |
int | marker_code, | ||
jpeg_marker_parser_method | routine | ||
) |
jvirt_barray_ptr* jpeg_read_coefficients | ( | j_decompress_ptr | cinfo | ) |
void jpeg_write_coefficients | ( | j_compress_ptr | cinfo, |
jvirt_barray_ptr * | coef_arrays | ||
) |
void jpeg_copy_critical_parameters | ( | j_decompress_ptr | srcinfo, |
j_compress_ptr | dstinfo | ||
) |
void jpeg_abort_compress | ( | j_compress_ptr | cinfo | ) |
void jpeg_abort_decompress | ( | j_decompress_ptr | cinfo | ) |
void jpeg_abort | ( | j_common_ptr | cinfo | ) |
void jpeg_destroy | ( | j_common_ptr | cinfo | ) |
boolean jpeg_resync_to_restart | ( | j_decompress_ptr | cinfo, |
int | desired | ||
) |
int read_JPEG_file | ( | const char * | filename, |
vector< vector< uint8_t > > & | image_buffer | ||
) |
void write_JPEG_file | ( | const char * | filename, |
int | quality, | ||
J_COLOR_SPACE | in_color_space, | ||
int | image_width, | ||
int | image_height, | ||
JSAMPLE * | image_buffer | ||
) |