PandA-2024.02
|
Go to the source code of this file.
Macros | |
#define | M_SOI 0xd8 /* Start of Image */ |
#define | M_SOF0 0xc0 /* Baseline DCT ( Huffman ) */ |
#define | M_SOS 0xda /* Start of Scan ( Head of Compressed Data ) */ |
#define | M_DHT 0xc4 /* Huffman Table */ |
#define | M_DQT 0xdb /* Quantization Table */ |
#define | M_EOI 0xd9 /* End of Image */ |
#define | READ_MARKERS_REP 10 |
#define | GET_SOF_REP 3 |
#define | GET_SOS_REP 3 |
#define | GET_DHT_REP 4 |
#define | GET_DQT_REP 2 |
Functions | |
int | read_byte (void) |
short | read_word (void) |
int | first_marker (void) |
int | next_marker (void) |
void | get_sof () |
void | get_sos () |
void | get_dht () |
void | get_dqt () |
void | read_markers (unsigned char *buf) |
#define M_DHT 0xc4 /* Huffman Table */ |
Definition at line 56 of file marker.c.
Referenced by read_markers().
#define M_DQT 0xdb /* Quantization Table */ |
Definition at line 57 of file marker.c.
Referenced by read_markers().
#define M_EOI 0xd9 /* End of Image */ |
Definition at line 58 of file marker.c.
Referenced by read_markers().
#define M_SOF0 0xc0 /* Baseline DCT ( Huffman ) */ |
Definition at line 54 of file marker.c.
Referenced by read_markers().
#define M_SOI 0xd8 /* Start of Image */ |
Definition at line 53 of file marker.c.
Referenced by first_marker(), and read_markers().
#define M_SOS 0xda /* Start of Scan ( Head of Compressed Data ) */ |
Definition at line 55 of file marker.c.
Referenced by read_markers().
int first_marker | ( | void | ) |
Definition at line 187 of file marker.c.
References c1, c2, EXIT, M_SOI, main_result, and read_byte().
void get_dht | ( | ) |
Definition at line 427 of file marker.c.
References i_get_dht, index, main_result, out_count_get_dht, out_index_get_dht, out_length_get_dht, p_jinfo_ac_xhuff_tbl_bits, p_jinfo_ac_xhuff_tbl_huffval, p_jinfo_dc_xhuff_tbl_bits, p_jinfo_dc_xhuff_tbl_huffval, read_byte(), and read_word().
void get_dqt | ( | ) |
Definition at line 498 of file marker.c.
References DCTSIZE2, i_get_dqt, izigzag_index, main_result, out_length_get_dqt, out_num_get_dht, out_prec_get_dht, p_jinfo_quant_tbl_quantval, read_byte(), and read_word().
void get_sof | ( | ) |
Definition at line 232 of file marker.c.
References main_result, out_data_precision_get_sof, out_h_samp_factor_get_sof, out_id_get_sof, out_index_get_sof, out_length_get_sof, out_p_jinfo_image_height_get_sof, out_p_jinfo_image_width_get_sof, out_p_jinfo_num_components_get_sof, out_quant_tbl_no_get_sof, out_v_samp_factor_get_sof, p_jinfo_comps_info_h_samp_factor, p_jinfo_comps_info_id, p_jinfo_comps_info_index, p_jinfo_comps_info_quant_tbl_no, p_jinfo_comps_info_v_samp_factor, p_jinfo_data_precision, p_jinfo_image_height, p_jinfo_image_width, p_jinfo_num_components, p_jinfo_smp_fact, read_byte(), read_word(), SF1_1_1, and SF4_1_1.
void get_sos | ( | ) |
Definition at line 342 of file marker.c.
References EXIT, i_get_sos, main_result, out_ac_tbl_no_get_sos, out_comp_id_get_sos, out_dc_tbl_no_get_sos, out_length_get_sos, out_num_comp_get_sos, p_jinfo_comps_info_ac_tbl_no, p_jinfo_comps_info_dc_tbl_no, p_jinfo_comps_info_id, p_jinfo_jpeg_data, p_jinfo_num_components, read_byte(), read_word(), and ReadBuf.
int next_marker | ( | void | ) |
Definition at line 205 of file marker.c.
References read_byte().
void read_markers | ( | unsigned char * | buf | ) |
Definition at line 555 of file marker.c.
References first_marker(), get_dht(), get_dqt(), get_sof(), get_sos(), i_marker, M_DHT, M_DQT, M_EOI, M_SOF0, M_SOI, M_SOS, main_result, next_marker(), out_unread_marker, and ReadBuf.
const int izigzag_index[64] |
const int out_ac_tbl_no_get_sos[GET_SOS_REP] = { 0, 1, 1 } |
const int out_comp_id_get_sos[GET_SOS_REP] = { 1, 2, 3 } |
const int out_count_get_dht[GET_DHT_REP] = { 12, 162, 12, 162 } |
const int out_dc_tbl_no_get_sos[GET_SOS_REP] = { 0, 1, 1 } |
const int out_h_samp_factor_get_sof[GET_SOF_REP] = { 2, 1, 1 } |
const int out_id_get_sof[GET_SOF_REP] = { 1, 2, 3 } |
const int out_index_get_dht[GET_DHT_REP] = { 0x0, 0x10, 0x1, 0x11 } |
const int out_index_get_sof[GET_SOF_REP] = { 0, 1, 2 } |
const int out_length_get_dht[GET_DHT_REP] = { 29, 179, 29, 179 } |
const int out_length_get_dqt[GET_DQT_REP] = { 65, 65 } |
const int out_num_get_dht[GET_DQT_REP] = { 0, 1 } |
const int out_prec_get_dht[GET_DQT_REP] = { 0, 0 } |
const int out_quant_tbl_no_get_sof[GET_SOF_REP] = { 0, 1, 1 } |
const int out_unread_marker[READ_MARKERS_REP] |
const int out_v_samp_factor_get_sof[GET_SOF_REP] = { 2, 1, 1 } |
|
static |
Definition at line 162 of file marker.c.
Referenced by get_sos(), read_byte(), read_markers(), and read_word().