/external/jpeg/ |
jcinit.c | 30 jinit_compress_master (j_compress_ptr cinfo) 33 jinit_c_master_control(cinfo, FALSE /* full compression */); 36 if (! cinfo->raw_data_in) { 37 jinit_color_converter(cinfo); 38 jinit_downsampler(cinfo); 39 jinit_c_prep_controller(cinfo, FALSE /* never need full buffer here */); 42 jinit_forward_dct(cinfo); 44 if (cinfo->arith_code) { 45 ERREXIT(cinfo, JERR_ARITH_NOTIMPL); 47 if (cinfo->progressive_mode) [all...] |
jdapistd.c | 23 LOCAL(boolean) output_pass_setup JPP((j_decompress_ptr cinfo)); 38 jpeg_start_decompress (j_decompress_ptr cinfo) 40 if (cinfo->global_state == DSTATE_READY) { 42 jinit_master_decompress(cinfo); variable 43 if (cinfo->buffered_image) { 45 cinfo->global_state = DSTATE_BUFIMAGE; 48 cinfo->global_state = DSTATE_PRELOAD; 50 if (cinfo->global_state == DSTATE_PRELOAD) { 52 if (cinfo->inputctl->has_multiple_scans) { 57 if (cinfo->progress != NULL 58 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); variable [all...] |
jcapistd.c | 38 jpeg_start_compress (j_compress_ptr cinfo, boolean write_all_tables) 40 if (cinfo->global_state != CSTATE_START) 41 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); 44 jpeg_suppress_tables(cinfo, FALSE); /* mark all tables to be written */ 47 (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo); 48 (*cinfo->dest->init_destination) (cinfo); 50 jinit_compress_master(cinfo); [all...] |
jdapimin.c | 30 jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize) 35 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ 37 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); 39 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, 49 struct jpeg_error_mgr * err = cinfo->err; 50 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ 51 MEMZERO(cinfo, SIZEOF(struct jpeg_decompress_struct)); 52 cinfo->err = err; 53 cinfo->client_data = client_data; 55 cinfo->is_decompressor = TRUE [all...] |
jdmaster.c | 44 use_merged_upsample (j_decompress_ptr cinfo) 48 if (cinfo->do_fancy_upsampling || cinfo->CCIR601_sampling) 53 if (cinfo->jpeg_color_space != JCS_YCbCr || 54 cinfo->num_components != 3 || 55 cinfo->out_color_components != 3 || 56 (cinfo->out_color_space != JCS_RGB_565 && 57 cinfo->out_color_space != JCS_RGB)) { 62 if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 | [all...] |
jdtrans.c | 19 LOCAL(void) transdecode_master_selection JPP((j_decompress_ptr cinfo)); 45 jpeg_read_coefficients (j_decompress_ptr cinfo) 47 if (cinfo->global_state == DSTATE_READY) { 49 transdecode_master_selection(cinfo); 50 cinfo->global_state = DSTATE_RDCOEFS; 52 if (cinfo->global_state == DSTATE_RDCOEFS) { 57 if (cinfo->progress != NULL) 58 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); 60 retcode = (*cinfo->inputctl->consume_input) (cinfo) [all...] |
jcmarker.c | 108 emit_byte (j_compress_ptr cinfo, int val) 111 struct jpeg_destination_mgr * dest = cinfo->dest; 115 if (! (*dest->empty_output_buffer) (cinfo)) 116 ERREXIT(cinfo, JERR_CANT_SUSPEND); 122 emit_marker (j_compress_ptr cinfo, JPEG_MARKER mark) 125 emit_byte(cinfo, 0xFF); 126 emit_byte(cinfo, (int) mark); 131 emit_2bytes (j_compress_ptr cinfo, int value) 134 emit_byte(cinfo, (value >> 8) & 0xFF); 135 emit_byte(cinfo, value & 0xFF) [all...] |
jcapimin.c | 30 jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize) 35 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ 37 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); 39 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, 49 struct jpeg_error_mgr * err = cinfo->err; 50 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ 51 MEMZERO(cinfo, SIZEOF(struct jpeg_compress_struct)); 52 cinfo->err = err; 53 cinfo->client_data = client_data; 55 cinfo->is_decompressor = FALSE [all...] |
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) 48 if ((long) cinfo->image_height > (long) JPEG_MAX_DIMENSION || 49 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) 50 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); 53 if (cinfo->data_precision != BITS_IN_JSAMPLE) 54 ERREXIT1(cinfo, JERR_BAD_PRECISION, cinfo->data_precision); 57 if (cinfo->num_components > MAX_COMPONENTS [all...] |
jdmarker.c | 113 * At all times, cinfo->src->next_input_byte and ->bytes_in_buffer reflect 119 #define INPUT_VARS(cinfo) \ 120 struct jpeg_source_mgr * datasrc = (cinfo)->src; \ 125 #define INPUT_SYNC(cinfo) \ 130 #define INPUT_RELOAD(cinfo) \ 138 #define MAKE_BYTE_AVAIL(cinfo,action) \ 140 if (! (*datasrc->fill_input_buffer) (cinfo)) \ 142 INPUT_RELOAD(cinfo); \ 148 #define INPUT_BYTE(cinfo,V,action) \ 149 MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); [all...] |
example.c | 80 struct jpeg_compress_struct cinfo; local 100 * address which we place into the link field in cinfo. 102 cinfo.err = jpeg_std_error(&jerr); 104 jpeg_create_compress(&cinfo); 118 jpeg_stdio_dest(&cinfo, outfile); 123 * Four fields of the cinfo struct must be filled in: 125 cinfo.image_width = image_width; /* image width and height, in pixels */ 126 cinfo.image_height = image_height; 127 cinfo.input_components = 3; /* # of color components per pixel */ 128 cinfo.in_color_space = JCS_RGB; /* colorspace of input image * 289 struct jpeg_decompress_struct cinfo; local [all...] |
jcomapi.c | 29 jpeg_abort (j_common_ptr cinfo) 34 if (cinfo->mem == NULL) 41 (*cinfo->mem->free_pool) (cinfo, pool); 45 if (cinfo->is_decompressor) { 46 cinfo->global_state = DSTATE_START; 50 ((j_decompress_ptr) cinfo)->marker_list = NULL; 52 cinfo->global_state = CSTATE_START; 69 jpeg_destroy (j_common_ptr cinfo) 73 if (cinfo->mem != NULL [all...] |
jcmaster.c | 46 initial_setup (j_compress_ptr cinfo) 55 if (cinfo->image_height <= 0 || cinfo->image_width <= 0 56 || cinfo->num_components <= 0 || cinfo->input_components <= 0) 57 ERREXIT(cinfo, JERR_EMPTY_IMAGE); 60 if ((long) cinfo->image_height > (long) JPEG_MAX_DIMENSION || 61 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) 62 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); 65 samplesperrow = (long) cinfo->image_width * (long) cinfo->input_components [all...] |
/external/qemu/distrib/jpeg-6b/ |
jcinit.c | 30 jinit_compress_master (j_compress_ptr cinfo) 33 jinit_c_master_control(cinfo, FALSE /* full compression */); 36 if (! cinfo->raw_data_in) { 37 jinit_color_converter(cinfo); 38 jinit_downsampler(cinfo); 39 jinit_c_prep_controller(cinfo, FALSE /* never need full buffer here */); 42 jinit_forward_dct(cinfo); 44 if (cinfo->arith_code) { 45 ERREXIT(cinfo, JERR_ARITH_NOTIMPL); 47 if (cinfo->progressive_mode) [all...] |
jdapistd.c | 23 LOCAL(boolean) output_pass_setup JPP((j_decompress_ptr cinfo)); 38 jpeg_start_decompress (j_decompress_ptr cinfo) 40 if (cinfo->global_state == DSTATE_READY) { 42 jinit_master_decompress(cinfo); variable 43 if (cinfo->buffered_image) { 45 cinfo->global_state = DSTATE_BUFIMAGE; 48 cinfo->global_state = DSTATE_PRELOAD; 50 if (cinfo->global_state == DSTATE_PRELOAD) { 52 if (cinfo->inputctl->has_multiple_scans) { 57 if (cinfo->progress != NULL 58 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); variable [all...] |
jcapistd.c | 38 jpeg_start_compress (j_compress_ptr cinfo, boolean write_all_tables) 40 if (cinfo->global_state != CSTATE_START) 41 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); 44 jpeg_suppress_tables(cinfo, FALSE); /* mark all tables to be written */ 47 (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo); 48 (*cinfo->dest->init_destination) (cinfo); 50 jinit_compress_master(cinfo); [all...] |
jdapimin.c | 30 jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize) 35 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ 37 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); 39 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, 49 struct jpeg_error_mgr * err = cinfo->err; 50 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ 51 MEMZERO(cinfo, SIZEOF(struct jpeg_decompress_struct)); 52 cinfo->err = err; 53 cinfo->client_data = client_data; 55 cinfo->is_decompressor = TRUE [all...] |
jdmaster.c | 44 use_merged_upsample (j_decompress_ptr cinfo) 48 if (cinfo->do_fancy_upsampling || cinfo->CCIR601_sampling) 53 if (cinfo->jpeg_color_space != JCS_YCbCr || 54 cinfo->num_components != 3 || 55 cinfo->out_color_components != 3 || 56 (cinfo->out_color_space != JCS_RGB_565 && 57 cinfo->out_color_space != JCS_RGB)) { 62 if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 | [all...] |
jdtrans.c | 19 LOCAL(void) transdecode_master_selection JPP((j_decompress_ptr cinfo)); 45 jpeg_read_coefficients (j_decompress_ptr cinfo) 47 if (cinfo->global_state == DSTATE_READY) { 49 transdecode_master_selection(cinfo); 50 cinfo->global_state = DSTATE_RDCOEFS; 52 if (cinfo->global_state == DSTATE_RDCOEFS) { 57 if (cinfo->progress != NULL) 58 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); 60 retcode = (*cinfo->inputctl->consume_input) (cinfo) [all...] |
jcmarker.c | 108 emit_byte (j_compress_ptr cinfo, int val) 111 struct jpeg_destination_mgr * dest = cinfo->dest; 115 if (! (*dest->empty_output_buffer) (cinfo)) 116 ERREXIT(cinfo, JERR_CANT_SUSPEND); 122 emit_marker (j_compress_ptr cinfo, JPEG_MARKER mark) 125 emit_byte(cinfo, 0xFF); 126 emit_byte(cinfo, (int) mark); 131 emit_2bytes (j_compress_ptr cinfo, int value) 134 emit_byte(cinfo, (value >> 8) & 0xFF); 135 emit_byte(cinfo, value & 0xFF) [all...] |
jcapimin.c | 30 jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize) 35 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ 37 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); 39 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, 49 struct jpeg_error_mgr * err = cinfo->err; 50 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ 51 MEMZERO(cinfo, SIZEOF(struct jpeg_compress_struct)); 52 cinfo->err = err; 53 cinfo->client_data = client_data; 55 cinfo->is_decompressor = FALSE [all...] |
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) 48 if ((long) cinfo->image_height > (long) JPEG_MAX_DIMENSION || 49 (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION) 50 ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION); 53 if (cinfo->data_precision != BITS_IN_JSAMPLE) 54 ERREXIT1(cinfo, JERR_BAD_PRECISION, cinfo->data_precision); 57 if (cinfo->num_components > MAX_COMPONENTS [all...] |
jdmarker.c | 113 * At all times, cinfo->src->next_input_byte and ->bytes_in_buffer reflect 119 #define INPUT_VARS(cinfo) \ 120 struct jpeg_source_mgr * datasrc = (cinfo)->src; \ 125 #define INPUT_SYNC(cinfo) \ 130 #define INPUT_RELOAD(cinfo) \ 138 #define MAKE_BYTE_AVAIL(cinfo,action) \ 140 if (! (*datasrc->fill_input_buffer) (cinfo)) \ 142 INPUT_RELOAD(cinfo); \ 148 #define INPUT_BYTE(cinfo,V,action) \ 149 MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); [all...] |
example.c | 80 struct jpeg_compress_struct cinfo; local 100 * address which we place into the link field in cinfo. 102 cinfo.err = jpeg_std_error(&jerr); 104 jpeg_create_compress(&cinfo); 118 jpeg_stdio_dest(&cinfo, outfile); 123 * Four fields of the cinfo struct must be filled in: 125 cinfo.image_width = image_width; /* image width and height, in pixels */ 126 cinfo.image_height = image_height; 127 cinfo.input_components = 3; /* # of color components per pixel */ 128 cinfo.in_color_space = JCS_RGB; /* colorspace of input image * 289 struct jpeg_decompress_struct cinfo; local [all...] |
jcomapi.c | 29 jpeg_abort (j_common_ptr cinfo) 34 if (cinfo->mem == NULL) 41 (*cinfo->mem->free_pool) (cinfo, pool); 45 if (cinfo->is_decompressor) { 46 cinfo->global_state = DSTATE_START; 50 ((j_decompress_ptr) cinfo)->marker_list = NULL; 52 cinfo->global_state = CSTATE_START; 69 jpeg_destroy (j_common_ptr cinfo) 73 if (cinfo->mem != NULL [all...] |