Home
last modified time | relevance | path

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

12345678910>>...13

/third_party/libjpeg/
Djcinit.c31 jpeg_calc_jpeg_dimensions (j_compress_ptr cinfo) in jpeg_calc_jpeg_dimensions() argument
40 if (((long) cinfo->image_width >> 24) || ((long) cinfo->image_height >> 24)) in jpeg_calc_jpeg_dimensions()
41 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); in jpeg_calc_jpeg_dimensions()
46 if (cinfo->scale_num >= cinfo->scale_denom * cinfo->block_size) { in jpeg_calc_jpeg_dimensions()
48 cinfo->jpeg_width = cinfo->image_width * cinfo->block_size; in jpeg_calc_jpeg_dimensions()
49 cinfo->jpeg_height = cinfo->image_height * cinfo->block_size; in jpeg_calc_jpeg_dimensions()
50 cinfo->min_DCT_h_scaled_size = 1; in jpeg_calc_jpeg_dimensions()
51 cinfo->min_DCT_v_scaled_size = 1; in jpeg_calc_jpeg_dimensions()
52 } else if (cinfo->scale_num * 2 >= cinfo->scale_denom * cinfo->block_size) { in jpeg_calc_jpeg_dimensions()
54 cinfo->jpeg_width = (JDIMENSION) in jpeg_calc_jpeg_dimensions()
[all …]
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 …]
Djdmaster.c45 use_merged_upsample (j_decompress_ptr cinfo) in use_merged_upsample() argument
56 if (cinfo->do_fancy_upsampling) in use_merged_upsample()
59 if (cinfo->CCIR601_sampling) in use_merged_upsample()
62 if ((cinfo->jpeg_color_space != JCS_YCbCr && in use_merged_upsample()
63 cinfo->jpeg_color_space != JCS_BG_YCC) || in use_merged_upsample()
64 cinfo->num_components != 3 || in use_merged_upsample()
65 cinfo->out_color_space != JCS_RGB || in use_merged_upsample()
66 cinfo->out_color_components != RGB_PIXELSIZE || in use_merged_upsample()
67 cinfo->color_transform) in use_merged_upsample()
70 if (cinfo->comp_info[0].h_samp_factor != 2 || in use_merged_upsample()
[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 …]
Djdapistd.c24 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 …]
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 …]
Djcmaster.c47 initial_setup (j_compress_ptr cinfo) in initial_setup() argument
54 if (cinfo->block_size < 1 || cinfo->block_size > 16) in initial_setup()
55 ERREXIT2(cinfo, JERR_BAD_DCTSIZE, cinfo->block_size, cinfo->block_size); in initial_setup()
58 switch (cinfo->block_size) { in initial_setup()
59 case 2: cinfo->natural_order = jpeg_natural_order2; break; in initial_setup()
60 case 3: cinfo->natural_order = jpeg_natural_order3; break; in initial_setup()
61 case 4: cinfo->natural_order = jpeg_natural_order4; break; in initial_setup()
62 case 5: cinfo->natural_order = jpeg_natural_order5; break; in initial_setup()
63 case 6: cinfo->natural_order = jpeg_natural_order6; break; in initial_setup()
64 case 7: cinfo->natural_order = jpeg_natural_order7; break; in initial_setup()
[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 …]
Djcapistd.c39 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 …]
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Djdmaster.c34 use_merged_upsample(j_decompress_ptr cinfo) in use_merged_upsample() argument
38 if (cinfo->do_fancy_upsampling || cinfo->CCIR601_sampling) in use_merged_upsample()
41 if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 || in use_merged_upsample()
42 (cinfo->out_color_space != JCS_RGB && in use_merged_upsample()
43 cinfo->out_color_space != JCS_RGB565 && in use_merged_upsample()
44 cinfo->out_color_space != JCS_EXT_RGB && in use_merged_upsample()
45 cinfo->out_color_space != JCS_EXT_RGBX && in use_merged_upsample()
46 cinfo->out_color_space != JCS_EXT_BGR && in use_merged_upsample()
47 cinfo->out_color_space != JCS_EXT_BGRX && in use_merged_upsample()
48 cinfo->out_color_space != JCS_EXT_XBGR && in use_merged_upsample()
[all …]
Djdapistd.c30 LOCAL(boolean) output_pass_setup(j_decompress_ptr cinfo);
45 jpeg_start_decompress(j_decompress_ptr cinfo) in jpeg_start_decompress() argument
47 if (cinfo->global_state == DSTATE_READY) { in jpeg_start_decompress()
49 jinit_master_decompress(cinfo); in jpeg_start_decompress()
50 if (cinfo->buffered_image) { in jpeg_start_decompress()
52 cinfo->global_state = DSTATE_BUFIMAGE; in jpeg_start_decompress()
55 cinfo->global_state = DSTATE_PRELOAD; in jpeg_start_decompress()
57 if (cinfo->global_state == DSTATE_PRELOAD) { in jpeg_start_decompress()
59 if (cinfo->inputctl->has_multiple_scans) { in jpeg_start_decompress()
64 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.c113 emit_byte(j_compress_ptr cinfo, int val) in emit_byte() argument
116 struct jpeg_destination_mgr *dest = cinfo->dest; in emit_byte()
120 if (!(*dest->empty_output_buffer) (cinfo)) in emit_byte()
121 ERREXIT(cinfo, JERR_CANT_SUSPEND); in emit_byte()
127 emit_marker(j_compress_ptr cinfo, JPEG_MARKER mark) in emit_marker() argument
130 emit_byte(cinfo, 0xFF); in emit_marker()
131 emit_byte(cinfo, (int)mark); in emit_marker()
136 emit_2bytes(j_compress_ptr cinfo, int value) in emit_2bytes() argument
139 emit_byte(cinfo, (value >> 8) & 0xFF); in emit_2bytes()
140 emit_byte(cinfo, value & 0xFF); in emit_2bytes()
[all …]
Djcapimin.c34 jpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize) in jpeg_CreateCompress() argument
39 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ in jpeg_CreateCompress()
41 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); in jpeg_CreateCompress()
43 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, in jpeg_CreateCompress()
53 struct jpeg_error_mgr *err = cinfo->err; in jpeg_CreateCompress()
54 void *client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateCompress()
55 MEMZERO(cinfo, sizeof(struct jpeg_compress_struct)); in jpeg_CreateCompress()
56 cinfo->err = err; in jpeg_CreateCompress()
57 cinfo->client_data = client_data; in jpeg_CreateCompress()
59 cinfo->is_decompressor = FALSE; in jpeg_CreateCompress()
[all …]
Djcmaster.c69 jpeg_calc_jpeg_dimensions(j_compress_ptr cinfo) in jpeg_calc_jpeg_dimensions() argument
73 cinfo->jpeg_width = cinfo->image_width; in jpeg_calc_jpeg_dimensions()
74 cinfo->jpeg_height = cinfo->image_height; in jpeg_calc_jpeg_dimensions()
75 cinfo->min_DCT_h_scaled_size = DCTSIZE; in jpeg_calc_jpeg_dimensions()
76 cinfo->min_DCT_v_scaled_size = DCTSIZE; in jpeg_calc_jpeg_dimensions()
82 initial_setup(j_compress_ptr cinfo, boolean transcode_only) in initial_setup() argument
94 jpeg_calc_jpeg_dimensions(cinfo); in initial_setup()
98 if (cinfo->_jpeg_height <= 0 || cinfo->_jpeg_width <= 0 || in initial_setup()
99 cinfo->num_components <= 0 || cinfo->input_components <= 0) in initial_setup()
100 ERREXIT(cinfo, JERR_EMPTY_IMAGE); in initial_setup()
[all …]
Djdmarker.c122 #define INPUT_VARS(cinfo) \ argument
123 struct jpeg_source_mgr *datasrc = (cinfo)->src; \
128 #define INPUT_SYNC(cinfo) \ argument
133 #define INPUT_RELOAD(cinfo) \ argument
141 #define MAKE_BYTE_AVAIL(cinfo, action) \ argument
143 if (!(*datasrc->fill_input_buffer) (cinfo)) \
145 INPUT_RELOAD(cinfo); \
151 #define INPUT_BYTE(cinfo, V, action) \ argument
152 MAKESTMT( MAKE_BYTE_AVAIL(cinfo, action); \
159 #define INPUT_2BYTES(cinfo, V, action) \ argument
[all …]
/third_party/skia/third_party/externals/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.c30 LOCAL(boolean) output_pass_setup(j_decompress_ptr cinfo);
45 jpeg_start_decompress(j_decompress_ptr cinfo) in jpeg_start_decompress() argument
47 if (cinfo->global_state == DSTATE_READY) { in jpeg_start_decompress()
49 jinit_master_decompress(cinfo); in jpeg_start_decompress()
50 if (cinfo->buffered_image) { in jpeg_start_decompress()
52 cinfo->global_state = DSTATE_BUFIMAGE; in jpeg_start_decompress()
55 cinfo->global_state = DSTATE_PRELOAD; in jpeg_start_decompress()
57 if (cinfo->global_state == DSTATE_PRELOAD) { in jpeg_start_decompress()
59 if (cinfo->inputctl->has_multiple_scans) { in jpeg_start_decompress()
64 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.c113 emit_byte(j_compress_ptr cinfo, int val) in emit_byte() argument
116 struct jpeg_destination_mgr *dest = cinfo->dest; in emit_byte()
120 if (!(*dest->empty_output_buffer) (cinfo)) in emit_byte()
121 ERREXIT(cinfo, JERR_CANT_SUSPEND); in emit_byte()
127 emit_marker(j_compress_ptr cinfo, JPEG_MARKER mark) in emit_marker() argument
130 emit_byte(cinfo, 0xFF); in emit_marker()
131 emit_byte(cinfo, (int)mark); in emit_marker()
136 emit_2bytes(j_compress_ptr cinfo, int value) in emit_2bytes() argument
139 emit_byte(cinfo, (value >> 8) & 0xFF); in emit_2bytes()
140 emit_byte(cinfo, value & 0xFF); in emit_2bytes()
[all …]
Djcapimin.c34 jpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize) in jpeg_CreateCompress() argument
39 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ in jpeg_CreateCompress()
41 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); in jpeg_CreateCompress()
43 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, in jpeg_CreateCompress()
53 struct jpeg_error_mgr *err = cinfo->err; in jpeg_CreateCompress()
54 void *client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateCompress()
55 MEMZERO(cinfo, sizeof(struct jpeg_compress_struct)); in jpeg_CreateCompress()
56 cinfo->err = err; in jpeg_CreateCompress()
57 cinfo->client_data = client_data; in jpeg_CreateCompress()
59 cinfo->is_decompressor = FALSE; in jpeg_CreateCompress()
[all …]
Djcmaster.c69 jpeg_calc_jpeg_dimensions(j_compress_ptr cinfo) in jpeg_calc_jpeg_dimensions() argument
73 cinfo->jpeg_width = cinfo->image_width; in jpeg_calc_jpeg_dimensions()
74 cinfo->jpeg_height = cinfo->image_height; in jpeg_calc_jpeg_dimensions()
75 cinfo->min_DCT_h_scaled_size = DCTSIZE; in jpeg_calc_jpeg_dimensions()
76 cinfo->min_DCT_v_scaled_size = DCTSIZE; in jpeg_calc_jpeg_dimensions()
82 initial_setup(j_compress_ptr cinfo, boolean transcode_only) in initial_setup() argument
94 jpeg_calc_jpeg_dimensions(cinfo); in initial_setup()
98 if (cinfo->_jpeg_height <= 0 || cinfo->_jpeg_width <= 0 || in initial_setup()
99 cinfo->num_components <= 0 || cinfo->input_components <= 0) in initial_setup()
100 ERREXIT(cinfo, JERR_EMPTY_IMAGE); in initial_setup()
[all …]
Djdmarker.c122 #define INPUT_VARS(cinfo) \ argument
123 struct jpeg_source_mgr *datasrc = (cinfo)->src; \
128 #define INPUT_SYNC(cinfo) \ argument
133 #define INPUT_RELOAD(cinfo) \ argument
141 #define MAKE_BYTE_AVAIL(cinfo, action) \ argument
143 if (!(*datasrc->fill_input_buffer) (cinfo)) \
145 INPUT_RELOAD(cinfo); \
151 #define INPUT_BYTE(cinfo, V, action) \ argument
152 MAKESTMT( MAKE_BYTE_AVAIL(cinfo, action); \
159 #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 …]

12345678910>>...13