/external/jpeg/ |
D | jdmaster.c | 44 use_merged_upsample (j_decompress_ptr cinfo) in use_merged_upsample() argument 48 if (cinfo->do_fancy_upsampling || cinfo->CCIR601_sampling) in use_merged_upsample() 53 if (cinfo->jpeg_color_space != JCS_YCbCr || in use_merged_upsample() 54 cinfo->num_components != 3 || in use_merged_upsample() 55 cinfo->out_color_components != 3 || in use_merged_upsample() 56 (cinfo->out_color_space != JCS_RGB_565 && in use_merged_upsample() 57 cinfo->out_color_space != JCS_RGB)) { in use_merged_upsample() 62 if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 || in use_merged_upsample() 63 cinfo->out_color_space != JCS_RGB || in use_merged_upsample() 64 cinfo->out_color_components != RGB_PIXELSIZE) in use_merged_upsample() [all …]
|
D | jdapistd.c | 23 LOCAL(boolean) output_pass_setup JPP((j_decompress_ptr cinfo)); 38 jpeg_start_decompress (j_decompress_ptr cinfo) in jpeg_start_decompress() argument 40 if (cinfo->global_state == DSTATE_READY) { in jpeg_start_decompress() 42 jinit_master_decompress(cinfo); in jpeg_start_decompress() 43 if (cinfo->buffered_image) { in jpeg_start_decompress() 45 cinfo->global_state = DSTATE_BUFIMAGE; in jpeg_start_decompress() 48 cinfo->global_state = DSTATE_PRELOAD; in jpeg_start_decompress() 50 if (cinfo->global_state == DSTATE_PRELOAD) { in jpeg_start_decompress() 52 if (cinfo->inputctl->has_multiple_scans) { in jpeg_start_decompress() 57 if (cinfo->progress != NULL) in jpeg_start_decompress() [all …]
|
D | jdapimin.c | 30 jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize) in jpeg_CreateDecompress() argument 35 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ in jpeg_CreateDecompress() 37 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); in jpeg_CreateDecompress() 39 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, in jpeg_CreateDecompress() 49 struct jpeg_error_mgr * err = cinfo->err; in jpeg_CreateDecompress() 50 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateDecompress() 51 MEMZERO(cinfo, SIZEOF(struct jpeg_decompress_struct)); in jpeg_CreateDecompress() 52 cinfo->err = err; in jpeg_CreateDecompress() 53 cinfo->client_data = client_data; in jpeg_CreateDecompress() 55 cinfo->is_decompressor = TRUE; in jpeg_CreateDecompress() [all …]
|
D | jdtrans.c | 19 LOCAL(void) transdecode_master_selection JPP((j_decompress_ptr cinfo)); 45 jpeg_read_coefficients (j_decompress_ptr cinfo) in jpeg_read_coefficients() argument 47 if (cinfo->global_state == DSTATE_READY) { in jpeg_read_coefficients() 49 transdecode_master_selection(cinfo); in jpeg_read_coefficients() 50 cinfo->global_state = DSTATE_RDCOEFS; in jpeg_read_coefficients() 52 if (cinfo->global_state == DSTATE_RDCOEFS) { in jpeg_read_coefficients() 57 if (cinfo->progress != NULL) in jpeg_read_coefficients() 58 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_read_coefficients() 60 retcode = (*cinfo->inputctl->consume_input) (cinfo); in jpeg_read_coefficients() 66 if (cinfo->progress != NULL && in jpeg_read_coefficients() [all …]
|
D | jcmarker.c | 108 emit_byte (j_compress_ptr cinfo, int val) in emit_byte() argument 111 struct jpeg_destination_mgr * dest = cinfo->dest; in emit_byte() 115 if (! (*dest->empty_output_buffer) (cinfo)) in emit_byte() 116 ERREXIT(cinfo, JERR_CANT_SUSPEND); in emit_byte() 122 emit_marker (j_compress_ptr cinfo, JPEG_MARKER mark) in emit_marker() argument 125 emit_byte(cinfo, 0xFF); in emit_marker() 126 emit_byte(cinfo, (int) mark); in emit_marker() 131 emit_2bytes (j_compress_ptr cinfo, int value) in emit_2bytes() argument 134 emit_byte(cinfo, (value >> 8) & 0xFF); in emit_2bytes() 135 emit_byte(cinfo, value & 0xFF); in emit_2bytes() [all …]
|
D | jcapimin.c | 30 jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize) in jpeg_CreateCompress() argument 35 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ in jpeg_CreateCompress() 37 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); in jpeg_CreateCompress() 39 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, in jpeg_CreateCompress() 49 struct jpeg_error_mgr * err = cinfo->err; in jpeg_CreateCompress() 50 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateCompress() 51 MEMZERO(cinfo, SIZEOF(struct jpeg_compress_struct)); in jpeg_CreateCompress() 52 cinfo->err = err; in jpeg_CreateCompress() 53 cinfo->client_data = client_data; in jpeg_CreateCompress() 55 cinfo->is_decompressor = FALSE; in jpeg_CreateCompress() [all …]
|
D | jcmaster.c | 46 initial_setup (j_compress_ptr cinfo) in initial_setup() argument 55 if (cinfo->image_height <= 0 || cinfo->image_width <= 0 in initial_setup() 56 || cinfo->num_components <= 0 || cinfo->input_components <= 0) in initial_setup() 57 ERREXIT(cinfo, JERR_EMPTY_IMAGE); in initial_setup() 60 if ((long) cinfo->image_height > (long) JPEG_MAX_DIMENSION || in initial_setup() 61 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) in initial_setup() 62 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); in initial_setup() 65 samplesperrow = (long) cinfo->image_width * (long) cinfo->input_components; in initial_setup() 68 ERREXIT(cinfo, JERR_WIDTH_OVERFLOW); in initial_setup() 71 if (cinfo->data_precision != BITS_IN_JSAMPLE) in initial_setup() [all …]
|
D | jdmarker.c | 119 #define INPUT_VARS(cinfo) \ argument 120 struct jpeg_source_mgr * datasrc = (cinfo)->src; \ 125 #define INPUT_SYNC(cinfo) \ argument 130 #define INPUT_RELOAD(cinfo) \ argument 138 #define MAKE_BYTE_AVAIL(cinfo,action) \ argument 140 if (! (*datasrc->fill_input_buffer) (cinfo)) \ 142 INPUT_RELOAD(cinfo); \ 148 #define INPUT_BYTE(cinfo,V,action) \ argument 149 MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \ 156 #define INPUT_2BYTES(cinfo,V,action) \ argument [all …]
|
D | jdinput.c | 31 METHODDEF(int) consume_markers JPP((j_decompress_ptr cinfo)); 32 METHODDEF(int) consume_markers_with_huffman_index JPP((j_decompress_ptr cinfo, 41 initial_setup (j_decompress_ptr cinfo) in initial_setup() argument 48 if ((long) cinfo->image_height > (long) JPEG_MAX_DIMENSION || in initial_setup() 49 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) in initial_setup() 50 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); in initial_setup() 53 if (cinfo->data_precision != BITS_IN_JSAMPLE) in initial_setup() 54 ERREXIT1(cinfo, JERR_BAD_PRECISION, cinfo->data_precision); in initial_setup() 57 if (cinfo->num_components > MAX_COMPONENTS) in initial_setup() 58 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in initial_setup() [all …]
|
D | jcapistd.c | 38 jpeg_start_compress (j_compress_ptr cinfo, boolean write_all_tables) in jpeg_start_compress() argument 40 if (cinfo->global_state != CSTATE_START) in jpeg_start_compress() 41 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_start_compress() 44 jpeg_suppress_tables(cinfo, FALSE); /* mark all tables to be written */ in jpeg_start_compress() 47 (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo); in jpeg_start_compress() 48 (*cinfo->dest->init_destination) (cinfo); in jpeg_start_compress() 50 jinit_compress_master(cinfo); in jpeg_start_compress() 52 (*cinfo->master->prepare_for_pass) (cinfo); in jpeg_start_compress() 56 cinfo->next_scanline = 0; in jpeg_start_compress() 57 cinfo->global_state = (cinfo->raw_data_in ? CSTATE_RAW_OK : CSTATE_SCANNING); in jpeg_start_compress() [all …]
|
D | jcparam.c | 23 jpeg_add_quant_table (j_compress_ptr cinfo, int which_tbl, in jpeg_add_quant_table() argument 37 if (cinfo->global_state != CSTATE_START) in jpeg_add_quant_table() 38 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_add_quant_table() 41 ERREXIT1(cinfo, JERR_DQT_INDEX, which_tbl); in jpeg_add_quant_table() 43 qtblptr = & cinfo->quant_tbl_ptrs[which_tbl]; in jpeg_add_quant_table() 46 *qtblptr = jpeg_alloc_quant_table((j_common_ptr) cinfo); in jpeg_add_quant_table() 64 jpeg_set_linear_quality (j_compress_ptr cinfo, int scale_factor, in jpeg_set_linear_quality() argument 98 jpeg_add_quant_table(cinfo, 0, std_luminance_quant_tbl, in jpeg_set_linear_quality() 100 jpeg_add_quant_table(cinfo, 1, std_chrominance_quant_tbl, in jpeg_set_linear_quality() 132 jpeg_set_quality (j_compress_ptr cinfo, int quality, boolean force_baseline) in jpeg_set_quality() argument [all …]
|
D | jdcoefct.c | 66 JPP((j_decompress_ptr cinfo, JSAMPIMAGE output_buf)); 69 JPP((j_decompress_ptr cinfo, JSAMPIMAGE output_buf)); 72 LOCAL(boolean) smoothing_ok JPP((j_decompress_ptr cinfo)); 74 JPP((j_decompress_ptr cinfo, JSAMPIMAGE output_buf)); 79 start_iMCU_row (j_decompress_ptr cinfo) in start_iMCU_row() argument 82 my_coef_ptr coef = (my_coef_ptr) cinfo->coef; in start_iMCU_row() 88 if (cinfo->comps_in_scan > 1) { in start_iMCU_row() 91 if (cinfo->input_iMCU_row < (cinfo->total_iMCU_rows-1)) in start_iMCU_row() 92 coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->v_samp_factor; in start_iMCU_row() 94 coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->last_row_height; in start_iMCU_row() [all …]
|
D | jerror.h | 205 #define ERREXIT(cinfo,code) \ argument 206 ((cinfo)->err->msg_code = (code), \ 207 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 208 #define ERREXIT1(cinfo,code,p1) \ argument 209 ((cinfo)->err->msg_code = (code), \ 210 (cinfo)->err->msg_parm.i[0] = (p1), \ 211 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 212 #define ERREXIT2(cinfo,code,p1,p2) \ argument 213 ((cinfo)->err->msg_code = (code), \ 214 (cinfo)->err->msg_parm.i[0] = (p1), \ [all …]
|
/external/pdfium/core/src/fxcodec/libjpeg/ |
D | fpdfapi_jdmaster.c | 45 use_merged_upsample (j_decompress_ptr cinfo) in use_merged_upsample() argument 49 if (cinfo->do_fancy_upsampling || cinfo->CCIR601_sampling) in use_merged_upsample() 52 if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 || in use_merged_upsample() 53 cinfo->out_color_space != JCS_RGB || in use_merged_upsample() 54 cinfo->out_color_components != RGB_PIXELSIZE) in use_merged_upsample() 57 if (cinfo->comp_info[0].h_samp_factor != 2 || in use_merged_upsample() 58 cinfo->comp_info[1].h_samp_factor != 1 || in use_merged_upsample() 59 cinfo->comp_info[2].h_samp_factor != 1 || in use_merged_upsample() 60 cinfo->comp_info[0].v_samp_factor > 2 || in use_merged_upsample() 61 cinfo->comp_info[1].v_samp_factor != 1 || in use_merged_upsample() [all …]
|
D | fpdfapi_jdapimin.c | 31 jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize) in jpeg_CreateDecompress() argument 36 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ in jpeg_CreateDecompress() 38 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); in jpeg_CreateDecompress() 40 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, in jpeg_CreateDecompress() 50 struct jpeg_error_mgr * err = cinfo->err; in jpeg_CreateDecompress() 51 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateDecompress() 52 MEMZERO(cinfo, SIZEOF(struct jpeg_decompress_struct)); in jpeg_CreateDecompress() 53 cinfo->err = err; in jpeg_CreateDecompress() 54 cinfo->client_data = client_data; in jpeg_CreateDecompress() 56 cinfo->is_decompressor = TRUE; in jpeg_CreateDecompress() [all …]
|
D | fpdfapi_jdapistd.c | 24 LOCAL(boolean) output_pass_setup JPP((j_decompress_ptr cinfo)); 39 jpeg_start_decompress (j_decompress_ptr cinfo) in jpeg_start_decompress() argument 41 if (cinfo->global_state == DSTATE_READY) { in jpeg_start_decompress() 43 jinit_master_decompress(cinfo); in jpeg_start_decompress() 44 if (cinfo->buffered_image) { in jpeg_start_decompress() 46 cinfo->global_state = DSTATE_BUFIMAGE; in jpeg_start_decompress() 49 cinfo->global_state = DSTATE_PRELOAD; in jpeg_start_decompress() 51 if (cinfo->global_state == DSTATE_PRELOAD) { in jpeg_start_decompress() 53 if (cinfo->inputctl->has_multiple_scans) { in jpeg_start_decompress() 58 if (cinfo->progress != NULL) in jpeg_start_decompress() [all …]
|
D | fpdfapi_jcmarker.c | 109 emit_byte (j_compress_ptr cinfo, int val) in emit_byte() argument 112 struct jpeg_destination_mgr * dest = cinfo->dest; in emit_byte() 116 if (! (*dest->empty_output_buffer) (cinfo)) in emit_byte() 117 ERREXIT(cinfo, JERR_CANT_SUSPEND); in emit_byte() 123 emit_marker (j_compress_ptr cinfo, JPEG_MARKER mark) in emit_marker() argument 126 emit_byte(cinfo, 0xFF); in emit_marker() 127 emit_byte(cinfo, (int) mark); in emit_marker() 132 emit_2bytes (j_compress_ptr cinfo, int value) in emit_2bytes() argument 135 emit_byte(cinfo, (value >> 8) & 0xFF); in emit_2bytes() 136 emit_byte(cinfo, value & 0xFF); in emit_2bytes() [all …]
|
D | fpdfapi_jcapimin.c | 31 jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize) in jpeg_CreateCompress() argument 36 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ in jpeg_CreateCompress() 38 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); in jpeg_CreateCompress() 40 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, in jpeg_CreateCompress() 50 struct jpeg_error_mgr * err = cinfo->err; in jpeg_CreateCompress() 51 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateCompress() 52 MEMZERO(cinfo, SIZEOF(struct jpeg_compress_struct)); in jpeg_CreateCompress() 53 cinfo->err = err; in jpeg_CreateCompress() 54 cinfo->client_data = client_data; in jpeg_CreateCompress() 56 cinfo->is_decompressor = FALSE; in jpeg_CreateCompress() [all …]
|
D | fpdfapi_jcmaster.c | 47 initial_setup (j_compress_ptr cinfo) in initial_setup() argument 56 if (cinfo->image_height <= 0 || cinfo->image_width <= 0 in initial_setup() 57 || cinfo->num_components <= 0 || cinfo->input_components <= 0) in initial_setup() 58 ERREXIT(cinfo, JERR_EMPTY_IMAGE); in initial_setup() 61 if ((long) cinfo->image_height > (long) JPEG_MAX_DIMENSION || in initial_setup() 62 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) in initial_setup() 63 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); in initial_setup() 66 samplesperrow = (long) cinfo->image_width * (long) cinfo->input_components; in initial_setup() 69 ERREXIT(cinfo, JERR_WIDTH_OVERFLOW); in initial_setup() 72 if (cinfo->data_precision != BITS_IN_JSAMPLE) in initial_setup() [all …]
|
D | fpdfapi_jdmarker.c | 120 #define INPUT_VARS(cinfo) \ argument 121 struct jpeg_source_mgr * datasrc = (cinfo)->src; \ 126 #define INPUT_SYNC(cinfo) \ argument 131 #define INPUT_RELOAD(cinfo) \ argument 139 #define MAKE_BYTE_AVAIL(cinfo,action) \ argument 141 if (! (*datasrc->fill_input_buffer) (cinfo)) \ 143 INPUT_RELOAD(cinfo); \ 149 #define INPUT_BYTE(cinfo,V,action) \ argument 150 MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \ 157 #define INPUT_2BYTES(cinfo,V,action) \ argument [all …]
|
D | fpdfapi_jcapistd.c | 39 jpeg_start_compress (j_compress_ptr cinfo, boolean write_all_tables) in jpeg_start_compress() argument 41 if (cinfo->global_state != CSTATE_START) in jpeg_start_compress() 42 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_start_compress() 45 jpeg_suppress_tables(cinfo, FALSE); /* mark all tables to be written */ in jpeg_start_compress() 48 (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo); in jpeg_start_compress() 49 (*cinfo->dest->init_destination) (cinfo); in jpeg_start_compress() 51 jinit_compress_master(cinfo); in jpeg_start_compress() 53 (*cinfo->master->prepare_for_pass) (cinfo); in jpeg_start_compress() 57 cinfo->next_scanline = 0; in jpeg_start_compress() 58 cinfo->global_state = (cinfo->raw_data_in ? CSTATE_RAW_OK : CSTATE_SCANNING); in jpeg_start_compress() [all …]
|
D | fpdfapi_jdinput.c | 32 METHODDEF(int) consume_markers JPP((j_decompress_ptr cinfo)); 40 initial_setup (j_decompress_ptr cinfo) in initial_setup() argument 47 if ((long) cinfo->image_height > (long) JPEG_MAX_DIMENSION || in initial_setup() 48 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) in initial_setup() 49 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); in initial_setup() 52 if (cinfo->data_precision != BITS_IN_JSAMPLE) in initial_setup() 53 ERREXIT1(cinfo, JERR_BAD_PRECISION, cinfo->data_precision); in initial_setup() 56 if (cinfo->num_components > MAX_COMPONENTS) in initial_setup() 57 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in initial_setup() 61 cinfo->max_h_samp_factor = 1; in initial_setup() [all …]
|
D | fpdfapi_jdtrans.c | 20 LOCAL(void) transdecode_master_selection JPP((j_decompress_ptr cinfo)); 46 jpeg_read_coefficients (j_decompress_ptr cinfo) in jpeg_read_coefficients() argument 48 if (cinfo->global_state == DSTATE_READY) { in jpeg_read_coefficients() 50 transdecode_master_selection(cinfo); in jpeg_read_coefficients() 51 cinfo->global_state = DSTATE_RDCOEFS; in jpeg_read_coefficients() 53 if (cinfo->global_state == DSTATE_RDCOEFS) { in jpeg_read_coefficients() 58 if (cinfo->progress != NULL) in jpeg_read_coefficients() 59 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_read_coefficients() 61 retcode = (*cinfo->inputctl->consume_input) (cinfo); in jpeg_read_coefficients() 67 if (cinfo->progress != NULL && in jpeg_read_coefficients() [all …]
|
D | fpdfapi_jcparam.c | 24 jpeg_add_quant_table (j_compress_ptr cinfo, int which_tbl, in jpeg_add_quant_table() argument 38 if (cinfo->global_state != CSTATE_START) in jpeg_add_quant_table() 39 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_add_quant_table() 42 ERREXIT1(cinfo, JERR_DQT_INDEX, which_tbl); in jpeg_add_quant_table() 44 qtblptr = & cinfo->quant_tbl_ptrs[which_tbl]; in jpeg_add_quant_table() 47 *qtblptr = jpeg_alloc_quant_table((j_common_ptr) cinfo); in jpeg_add_quant_table() 65 jpeg_set_linear_quality (j_compress_ptr cinfo, int scale_factor, in jpeg_set_linear_quality() argument 99 jpeg_add_quant_table(cinfo, 0, std_luminance_quant_tbl, in jpeg_set_linear_quality() 101 jpeg_add_quant_table(cinfo, 1, std_chrominance_quant_tbl, in jpeg_set_linear_quality() 133 jpeg_set_quality (j_compress_ptr cinfo, int quality, boolean force_baseline) in jpeg_set_quality() argument [all …]
|
D | jerror.h | 205 #define ERREXIT(cinfo,code) \ argument 206 ((cinfo)->err->msg_code = (code), \ 207 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 208 #define ERREXIT1(cinfo,code,p1) \ argument 209 ((cinfo)->err->msg_code = (code), \ 210 (cinfo)->err->msg_parm.i[0] = (p1), \ 211 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 212 #define ERREXIT2(cinfo,code,p1,p2) \ argument 213 ((cinfo)->err->msg_code = (code), \ 214 (cinfo)->err->msg_parm.i[0] = (p1), \ [all …]
|