#include "jinclude.h"
#include "jpeglib.h"
Go to the source code of this file.
#define APP0_DATA_LEN 14 |
#define APP14_DATA_LEN 12 |
#define APPN_DATA_LEN 14 |
#define INPUT_2BYTES | ( | cinfo, | |||
V, | |||||
action | ) |
Value:
MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \ bytes_in_buffer--; \ V = ((unsigned int) GETJOCTET(*next_input_byte++)) << 8; \ MAKE_BYTE_AVAIL(cinfo,action); \ bytes_in_buffer--; \ V += GETJOCTET(*next_input_byte++); )
Definition at line 157 of file jdmarker.c.
Referenced by get_dac(), get_dht(), get_dqt(), get_dri(), get_interesting_appn(), get_sof(), get_sos(), save_marker(), and skip_variable().
#define INPUT_BYTE | ( | cinfo, | |||
V, | |||||
action | ) |
Value:
MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \ bytes_in_buffer--; \ V = GETJOCTET(*next_input_byte++); )
Definition at line 149 of file jdmarker.c.
Referenced by first_marker(), get_dac(), get_dht(), get_dqt(), get_interesting_appn(), get_sof(), get_sos(), and next_marker().
#define INPUT_RELOAD | ( | cinfo | ) |
Value:
( next_input_byte = datasrc->next_input_byte, \ bytes_in_buffer = datasrc->bytes_in_buffer )
Definition at line 131 of file jdmarker.c.
#define INPUT_SYNC | ( | cinfo | ) |
Value:
( datasrc->next_input_byte = next_input_byte, \ datasrc->bytes_in_buffer = bytes_in_buffer )
Definition at line 126 of file jdmarker.c.
Referenced by first_marker(), get_dac(), get_dht(), get_dqt(), get_dri(), get_sof(), get_sos(), next_marker(), save_marker(), and skip_variable().
#define INPUT_VARS | ( | cinfo | ) |
Value:
struct jpeg_source_mgr * datasrc = (cinfo)->src; \ const JOCTET * next_input_byte = datasrc->next_input_byte; \ size_t bytes_in_buffer = datasrc->bytes_in_buffer
Definition at line 120 of file jdmarker.c.
Referenced by first_marker(), get_dac(), get_dht(), get_dqt(), get_dri(), get_interesting_appn(), get_sof(), get_sos(), next_marker(), save_marker(), and skip_variable().
#define JPEG_INTERNALS |
Definition at line 16 of file jdmarker.c.
#define MAKE_BYTE_AVAIL | ( | cinfo, | |||
action | ) |
Value:
if (bytes_in_buffer == 0) { \ if (! (*datasrc->fill_input_buffer) (cinfo)) \ { action; } \ INPUT_RELOAD(cinfo); \ }
Definition at line 139 of file jdmarker.c.
Referenced by save_marker().
typedef my_marker_reader* my_marker_ptr |
Definition at line 108 of file jdmarker.c.
enum JPEG_MARKER |
Definition at line 21 of file jdmarker.c.
examine_app0 | ( | j_decompress_ptr | cinfo, | |
JOCTET FAR * | data, | |||
unsigned int | datalen, | |||
INT32 | remaining | |||
) |
Definition at line 621 of file jdmarker.c.
References APP0_DATA_LEN, GETJOCTET, JTRC_APP0, JTRC_JFIF_BADTHUMBNAILSIZE, JTRC_JFIF_EXTENSION, JTRC_THUMB_JPEG, JTRC_THUMB_PALETTE, JTRC_THUMB_RGB, TRACEMS1, TRACEMS2, TRACEMS5, TRUE, WARNMS2, and x58.
Referenced by get_interesting_appn(), and save_marker().
examine_app14 | ( | j_decompress_ptr | cinfo, | |
JOCTET FAR * | data, | |||
unsigned int | datalen, | |||
INT32 | remaining | |||
) |
Definition at line 697 of file jdmarker.c.
References APP14_DATA_LEN, GETJOCTET, JTRC_ADOBE, JTRC_APP14, TRACEMS1, TRACEMS4, transform, TRUE, version, and x41.
Referenced by get_interesting_appn(), and save_marker().
first_marker | ( | j_decompress_ptr | cinfo | ) |
Definition at line 958 of file jdmarker.c.
References c, ERREXIT2, FALSE, INPUT_BYTE, INPUT_SYNC, INPUT_VARS, M_SOI, and TRUE.
Referenced by read_markers().
get_dac | ( | j_decompress_ptr | cinfo | ) |
Definition at line 378 of file jdmarker.c.
References ERREXIT, ERREXIT1, FALSE, INPUT_2BYTES, INPUT_BYTE, INPUT_SYNC, INPUT_VARS, length, NUM_ARITH_TBLS, TRACEMS2, TRUE, and val.
get_dht | ( | j_decompress_ptr | cinfo | ) |
Definition at line 424 of file jdmarker.c.
References bits, ERREXIT, ERREXIT1, FALSE, i, INPUT_2BYTES, INPUT_BYTE, INPUT_SYNC, INPUT_VARS, jpeg_alloc_huff_table(), length, MEMCOPY, NULL, NUM_HUFF_TBLS, SIZEOF, TRACEMS1, TRACEMS8, TRUE, and x10.
get_dqt | ( | j_decompress_ptr | cinfo | ) |
Definition at line 495 of file jdmarker.c.
References DCTSIZE2, ERREXIT, ERREXIT1, FALSE, i, INPUT_2BYTES, INPUT_BYTE, INPUT_SYNC, INPUT_VARS, jpeg_alloc_quant_table(), jpeg_natural_order, jpeg_natural_order2, jpeg_natural_order3, jpeg_natural_order4, jpeg_natural_order5, jpeg_natural_order6, jpeg_natural_order7, length, n, NULL, NUM_QUANT_TBLS, JQUANT_TBL::quantval, TRACEMS2, TRACEMS8, and TRUE.
get_dri | ( | j_decompress_ptr | cinfo | ) |
Definition at line 585 of file jdmarker.c.
References ERREXIT, FALSE, INPUT_2BYTES, INPUT_SYNC, INPUT_VARS, length, TRACEMS1, and TRUE.
get_interesting_appn | ( | j_decompress_ptr | cinfo | ) |
Definition at line 728 of file jdmarker.c.
References APPN_DATA_LEN, b, ERREXIT1, examine_app0(), examine_app14(), FALSE, FAR, i, INPUT_2BYTES, INPUT_BYTE, INPUT_VARS, int, length, M_APP0, and M_APP14.
Referenced by jinit_marker_reader(), and jpeg_save_markers().
get_sof | ( | j_decompress_ptr | cinfo, | |
boolean | is_baseline, | |||
boolean | is_prog, | |||
boolean | is_arith | |||
) |
Definition at line 238 of file jdmarker.c.
References c, jpeg_component_info::component_id, jpeg_component_info::component_index, compptr, ERREXIT, FALSE, jpeg_component_info::h_samp_factor, INPUT_2BYTES, INPUT_BYTE, INPUT_SYNC, INPUT_VARS, JERR_EMPTY_IMAGE, JPOOL_IMAGE, length, NULL, jpeg_component_info::quant_tbl_no, SIZEOF, TRACEMS4, TRUE, and jpeg_component_info::v_samp_factor.
get_soi | ( | j_decompress_ptr | cinfo | ) |
Definition at line 198 of file jdmarker.c.
References ERREXIT, FALSE, i, JCS_UNKNOWN, NUM_ARITH_TBLS, TRACEMS, and TRUE.
get_sos | ( | j_decompress_ptr | cinfo | ) |
Definition at line 304 of file jdmarker.c.
References jpeg_component_info::ac_tbl_no, c, jpeg_component_info::component_id, compptr, jpeg_component_info::dc_tbl_no, ERREXIT, ERREXIT1, FALSE, i, INPUT_2BYTES, INPUT_BYTE, INPUT_SYNC, INPUT_VARS, length, MAX_COMPS_IN_SCAN, n, TRACEMS1, TRACEMS3, TRACEMS4, and TRUE.
jinit_marker_reader | ( | j_decompress_ptr | cinfo | ) |
Definition at line 1308 of file jdmarker.c.
References get_interesting_appn(), i, JPOOL_PERMANENT, marker, read_markers(), read_restart_marker(), reset_marker_reader(), SIZEOF, and skip_variable().
Referenced by jpeg_CreateDecompress().
jpeg_resync_to_restart | ( | j_decompress_ptr | cinfo, | |
int | desired | |||
) |
Definition at line 1238 of file jdmarker.c.
References FALSE, JWRN_MUST_RESYNC, M_RST0, M_RST7, M_SOF0, marker, next_marker(), TRACEMS2, TRUE, and WARNMS2.
Referenced by jpeg_mem_src(), and jpeg_stdio_src().
jpeg_save_markers | ( | j_decompress_ptr | cinfo, | |
int | marker_code, | |||
unsigned int | length_limit | |||
) |
Definition at line 1346 of file jdmarker.c.
References APP0_DATA_LEN, APP14_DATA_LEN, ERREXIT1, get_interesting_appn(), int, M_APP14, M_APP15, M_COM, marker, save_marker(), SIZEOF, and skip_variable().
Referenced by jcopy_markers_setup().
jpeg_set_marker_processor | ( | j_decompress_ptr | cinfo, | |
int | marker_code, | |||
jpeg_marker_parser_method | routine | |||
) |
next_marker | ( | j_decompress_ptr | cinfo | ) |
Definition at line 911 of file jdmarker.c.
References c, FALSE, INPUT_BYTE, INPUT_SYNC, INPUT_VARS, JWRN_EXTRANEOUS_DATA, TRUE, and WARNMS2.
Referenced by jpeg_resync_to_restart(), read_markers(), and read_restart_marker().
read_markers | ( | j_decompress_ptr | cinfo | ) |
Definition at line 994 of file jdmarker.c.
References first_marker(), if(), JPEG_SUSPENDED, and next_marker().
Referenced by jinit_marker_reader().
read_restart_marker | ( | j_decompress_ptr | cinfo | ) |
Definition at line 1159 of file jdmarker.c.
References FALSE, M_RST0, next_marker(), TRACEMS1, and TRUE.
Referenced by jinit_marker_reader().
reset_marker_reader | ( | j_decompress_ptr | cinfo | ) |
Definition at line 1288 of file jdmarker.c.
References FALSE, marker, and NULL.
Referenced by jinit_marker_reader().
save_marker | ( | j_decompress_ptr | cinfo | ) |
Definition at line 776 of file jdmarker.c.
References data, examine_app0(), examine_app14(), FALSE, FAR, INPUT_2BYTES, INPUT_SYNC, INPUT_VARS, int, JPOOL_IMAGE, length, M_APP0, M_APP14, M_COM, MAKE_BYTE_AVAIL, marker, jpeg_marker_struct::next, NULL, SIZEOF, TRACEMS2, and TRUE.
Referenced by jpeg_save_markers().
skip_variable | ( | j_decompress_ptr | cinfo | ) |
Definition at line 882 of file jdmarker.c.
References FALSE, INPUT_2BYTES, INPUT_SYNC, INPUT_VARS, length, TRACEMS2, and TRUE.
Referenced by jinit_marker_reader(), and jpeg_save_markers().