Home
last modified time | relevance | path

Searched refs:cinfo (Results 1 – 25 of 225) sorted by relevance

123456789

/external/libjpeg-turbo/
Djdmaster.c33 use_merged_upsample (j_decompress_ptr cinfo) in use_merged_upsample() argument
37 if (cinfo->do_fancy_upsampling || cinfo->CCIR601_sampling) in use_merged_upsample()
40 if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 || in use_merged_upsample()
41 (cinfo->out_color_space != JCS_RGB && in use_merged_upsample()
42 cinfo->out_color_space != JCS_RGB565 && in use_merged_upsample()
43 cinfo->out_color_space != JCS_EXT_RGB && in use_merged_upsample()
44 cinfo->out_color_space != JCS_EXT_RGBX && in use_merged_upsample()
45 cinfo->out_color_space != JCS_EXT_BGR && in use_merged_upsample()
46 cinfo->out_color_space != JCS_EXT_BGRX && in use_merged_upsample()
47 cinfo->out_color_space != JCS_EXT_XBGR && in use_merged_upsample()
[all …]
Djdapistd.c26 LOCAL(boolean) output_pass_setup (j_decompress_ptr cinfo);
41 jpeg_start_decompress (j_decompress_ptr cinfo) in jpeg_start_decompress() argument
43 if (cinfo->global_state == DSTATE_READY) { in jpeg_start_decompress()
45 jinit_master_decompress(cinfo); in jpeg_start_decompress()
46 if (cinfo->buffered_image) { in jpeg_start_decompress()
48 cinfo->global_state = DSTATE_BUFIMAGE; in jpeg_start_decompress()
51 cinfo->global_state = DSTATE_PRELOAD; in jpeg_start_decompress()
53 if (cinfo->global_state == DSTATE_PRELOAD) { in jpeg_start_decompress()
55 if (cinfo->inputctl->has_multiple_scans) { in jpeg_start_decompress()
60 if (cinfo->progress != NULL) in jpeg_start_decompress()
[all …]
Djdapimin.c34 jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize) in jpeg_CreateDecompress() argument
39 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ in jpeg_CreateDecompress()
41 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); in jpeg_CreateDecompress()
43 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, in jpeg_CreateDecompress()
53 struct jpeg_error_mgr * err = cinfo->err; in jpeg_CreateDecompress()
54 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateDecompress()
55 MEMZERO(cinfo, sizeof(struct jpeg_decompress_struct)); in jpeg_CreateDecompress()
56 cinfo->err = err; in jpeg_CreateDecompress()
57 cinfo->client_data = client_data; in jpeg_CreateDecompress()
59 cinfo->is_decompressor = TRUE; in jpeg_CreateDecompress()
[all …]
Djcmarker.c112 emit_byte (j_compress_ptr cinfo, int val) in emit_byte() argument
115 struct jpeg_destination_mgr * dest = cinfo->dest; in emit_byte()
119 if (! (*dest->empty_output_buffer) (cinfo)) in emit_byte()
120 ERREXIT(cinfo, JERR_CANT_SUSPEND); in emit_byte()
126 emit_marker (j_compress_ptr cinfo, JPEG_MARKER mark) in emit_marker() argument
129 emit_byte(cinfo, 0xFF); in emit_marker()
130 emit_byte(cinfo, (int) mark); in emit_marker()
135 emit_2bytes (j_compress_ptr cinfo, int value) in emit_2bytes() argument
138 emit_byte(cinfo, (value >> 8) & 0xFF); in emit_2bytes()
139 emit_byte(cinfo, value & 0xFF); in emit_2bytes()
[all …]
Djcapimin.c33 jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize) in jpeg_CreateCompress() argument
38 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ in jpeg_CreateCompress()
40 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); in jpeg_CreateCompress()
42 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, in jpeg_CreateCompress()
52 struct jpeg_error_mgr * err = cinfo->err; in jpeg_CreateCompress()
53 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateCompress()
54 MEMZERO(cinfo, sizeof(struct jpeg_compress_struct)); in jpeg_CreateCompress()
55 cinfo->err = err; in jpeg_CreateCompress()
56 cinfo->client_data = client_data; in jpeg_CreateCompress()
58 cinfo->is_decompressor = FALSE; in jpeg_CreateCompress()
[all …]
Djcmaster.c57 jpeg_calc_jpeg_dimensions (j_compress_ptr cinfo) in jpeg_calc_jpeg_dimensions() argument
61 cinfo->jpeg_width = cinfo->image_width; in jpeg_calc_jpeg_dimensions()
62 cinfo->jpeg_height = cinfo->image_height; in jpeg_calc_jpeg_dimensions()
63 cinfo->min_DCT_h_scaled_size = DCTSIZE; in jpeg_calc_jpeg_dimensions()
64 cinfo->min_DCT_v_scaled_size = DCTSIZE; in jpeg_calc_jpeg_dimensions()
70 initial_setup (j_compress_ptr cinfo, boolean transcode_only) in initial_setup() argument
82 jpeg_calc_jpeg_dimensions(cinfo); in initial_setup()
86 if (cinfo->_jpeg_height <= 0 || cinfo->_jpeg_width <= 0 in initial_setup()
87 || cinfo->num_components <= 0 || cinfo->input_components <= 0) in initial_setup()
88 ERREXIT(cinfo, JERR_EMPTY_IMAGE); in initial_setup()
[all …]
Djdmarker.c121 #define INPUT_VARS(cinfo) \ argument
122 struct jpeg_source_mgr * datasrc = (cinfo)->src; \
127 #define INPUT_SYNC(cinfo) \ argument
132 #define INPUT_RELOAD(cinfo) \ argument
140 #define MAKE_BYTE_AVAIL(cinfo,action) \ argument
142 if (! (*datasrc->fill_input_buffer) (cinfo)) \
144 INPUT_RELOAD(cinfo); \
150 #define INPUT_BYTE(cinfo,V,action) \ argument
151 MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \
158 #define INPUT_2BYTES(cinfo,V,action) \ argument
[all …]
Djdinput.c36 METHODDEF(int) consume_markers (j_decompress_ptr cinfo);
44 initial_setup (j_decompress_ptr cinfo) in initial_setup() argument
51 if ((long) cinfo->image_height > (long) JPEG_MAX_DIMENSION || in initial_setup()
52 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) in initial_setup()
53 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); in initial_setup()
56 if (cinfo->data_precision != BITS_IN_JSAMPLE) in initial_setup()
57 ERREXIT1(cinfo, JERR_BAD_PRECISION, cinfo->data_precision); in initial_setup()
60 if (cinfo->num_components > MAX_COMPONENTS) in initial_setup()
61 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in initial_setup()
65 cinfo->max_h_samp_factor = 1; in initial_setup()
[all …]
Djcapistd.c38 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 …]
/external/opencv3/3rdparty/libjpeg/
Djdinput.c32 METHODDEF(int) consume_markers JPP((j_decompress_ptr cinfo));
47 jpeg_core_output_dimensions (j_decompress_ptr cinfo) in jpeg_core_output_dimensions() argument
57 if (cinfo->scale_num * cinfo->block_size <= cinfo->scale_denom) { in jpeg_core_output_dimensions()
59 cinfo->output_width = (JDIMENSION) in jpeg_core_output_dimensions()
60 jdiv_round_up((long) cinfo->image_width, (long) cinfo->block_size); in jpeg_core_output_dimensions()
61 cinfo->output_height = (JDIMENSION) in jpeg_core_output_dimensions()
62 jdiv_round_up((long) cinfo->image_height, (long) cinfo->block_size); in jpeg_core_output_dimensions()
63 cinfo->min_DCT_h_scaled_size = 1; in jpeg_core_output_dimensions()
64 cinfo->min_DCT_v_scaled_size = 1; in jpeg_core_output_dimensions()
65 } else if (cinfo->scale_num * cinfo->block_size <= cinfo->scale_denom * 2) { in jpeg_core_output_dimensions()
[all …]
Djcmaster.c53 jpeg_calc_jpeg_dimensions (j_compress_ptr cinfo) in jpeg_calc_jpeg_dimensions() argument
64 if (((long) cinfo->image_width >> 24) || ((long) cinfo->image_height >> 24)) in jpeg_calc_jpeg_dimensions()
65 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); in jpeg_calc_jpeg_dimensions()
68 if (cinfo->scale_num >= cinfo->scale_denom * cinfo->block_size) { in jpeg_calc_jpeg_dimensions()
70 cinfo->jpeg_width = cinfo->image_width * cinfo->block_size; in jpeg_calc_jpeg_dimensions()
71 cinfo->jpeg_height = cinfo->image_height * cinfo->block_size; in jpeg_calc_jpeg_dimensions()
72 cinfo->min_DCT_h_scaled_size = 1; in jpeg_calc_jpeg_dimensions()
73 cinfo->min_DCT_v_scaled_size = 1; in jpeg_calc_jpeg_dimensions()
74 } else if (cinfo->scale_num * 2 >= cinfo->scale_denom * cinfo->block_size) { in jpeg_calc_jpeg_dimensions()
76 cinfo->jpeg_width = (JDIMENSION) in jpeg_calc_jpeg_dimensions()
[all …]
Djcmarker.c110 emit_byte (j_compress_ptr cinfo, int val) in emit_byte() argument
113 struct jpeg_destination_mgr * dest = cinfo->dest; in emit_byte()
117 if (! (*dest->empty_output_buffer) (cinfo)) in emit_byte()
118 ERREXIT(cinfo, JERR_CANT_SUSPEND); in emit_byte()
124 emit_marker (j_compress_ptr cinfo, JPEG_MARKER mark) in emit_marker() argument
127 emit_byte(cinfo, 0xFF); in emit_marker()
128 emit_byte(cinfo, (int) mark); in emit_marker()
133 emit_2bytes (j_compress_ptr cinfo, int value) in emit_2bytes() argument
136 emit_byte(cinfo, (value >> 8) & 0xFF); in emit_2bytes()
137 emit_byte(cinfo, value & 0xFF); in emit_2bytes()
[all …]
Djdmaster.c45 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 …]
Djdapistd.c23 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 …]
Djdapimin.c31 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 …]
Djcapimin.c31 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 …]
Djdmarker.c121 #define INPUT_VARS(cinfo) \ argument
122 struct jpeg_source_mgr * datasrc = (cinfo)->src; \
127 #define INPUT_SYNC(cinfo) \ argument
132 #define INPUT_RELOAD(cinfo) \ argument
140 #define MAKE_BYTE_AVAIL(cinfo,action) \ argument
142 if (! (*datasrc->fill_input_buffer) (cinfo)) \
144 INPUT_RELOAD(cinfo); \
150 #define INPUT_BYTE(cinfo,V,action) \ argument
151 MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \
158 #define INPUT_2BYTES(cinfo,V,action) \ argument
[all …]
Djdarith.c65 get_byte (j_decompress_ptr cinfo) in get_byte() argument
68 struct jpeg_source_mgr * src = cinfo->src; in get_byte()
71 if (! (*src->fill_input_buffer) (cinfo)) in get_byte()
72 ERREXIT(cinfo, JERR_CANT_SUSPEND); in get_byte()
106 arith_decode (j_decompress_ptr cinfo, unsigned char *st) in arith_decode() argument
108 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; in arith_decode()
117 if (cinfo->unread_marker) in arith_decode()
120 data = get_byte(cinfo); /* read next input byte */ in arith_decode()
122 do data = get_byte(cinfo); in arith_decode()
133 cinfo->unread_marker = data; in arith_decode()
[all …]
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jdmaster.c44 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()
51 if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 || in use_merged_upsample()
52 cinfo->out_color_space != JCS_RGB || in use_merged_upsample()
53 cinfo->out_color_components != RGB_PIXELSIZE) in use_merged_upsample()
56 if (cinfo->comp_info[0].h_samp_factor != 2 || in use_merged_upsample()
57 cinfo->comp_info[1].h_samp_factor != 1 || in use_merged_upsample()
58 cinfo->comp_info[2].h_samp_factor != 1 || in use_merged_upsample()
59 cinfo->comp_info[0].v_samp_factor > 2 || in use_merged_upsample()
60 cinfo->comp_info[1].v_samp_factor != 1 || in use_merged_upsample()
[all …]
Dfpdfapi_jdapimin.c30 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 …]
Dfpdfapi_jdapistd.c23 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 …]
Dfpdfapi_jcmarker.c108 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 …]
Dfpdfapi_jcapimin.c30 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 …]
Dfpdfapi_jcmaster.c46 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 …]
Dfpdfapi_jdmarker.c119 #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 …]

123456789