/external/qemu/android/utils/ |
jpeg-compress.c | 20 static void _on_init_destination(j_compress_ptr cinfo); 22 static boolean _on_empty_output_buffer(j_compress_ptr cinfo); 24 static void _on_term_destination(j_compress_ptr cinfo); 46 _on_init_destination(j_compress_ptr cinfo) 48 AJPEGDesc* const dst = (AJPEGDesc*)cinfo->dest; 70 _on_empty_output_buffer(j_compress_ptr cinfo) 72 AJPEGDesc* const dst = (AJPEGDesc*)cinfo->dest; 94 _on_term_destination(j_compress_ptr cinfo) 159 struct jpeg_compress_struct cinfo = {0}; local 167 cinfo.err = jpeg_std_error(&err_mgr) [all...] |
/external/qemu/distrib/jpeg-6b/ |
jdphuff.c | 77 METHODDEF(boolean) decode_mcu_DC_first JPP((j_decompress_ptr cinfo, 79 METHODDEF(boolean) decode_mcu_AC_first JPP((j_decompress_ptr cinfo, 81 METHODDEF(boolean) decode_mcu_DC_refine JPP((j_decompress_ptr cinfo, 83 METHODDEF(boolean) decode_mcu_AC_refine JPP((j_decompress_ptr cinfo, 86 j_decompress_ptr cinfo, huffman_offset_data offset); 88 j_decompress_ptr cinfo, huffman_offset_data *offset); 95 start_pass_phuff_decoder (j_decompress_ptr cinfo) 97 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; 103 is_DC_band = (cinfo->Ss == 0); 108 if (cinfo->Se != 0 [all...] |
jcprepct.c | 78 start_pass_prep (j_compress_ptr cinfo, J_BUF_MODE pass_mode) 80 my_prep_ptr prep = (my_prep_ptr) cinfo->prep; 83 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); 86 prep->rows_to_go = cinfo->image_height; 95 prep->next_buf_stop = 2 * cinfo->max_v_samp_factor; 128 pre_process_data (j_compress_ptr cinfo, 134 my_prep_ptr prep = (my_prep_ptr) cinfo->prep; 143 numrows = cinfo->max_v_samp_factor - prep->next_buf_row; 145 (*cinfo->cconvert->color_convert) (cinfo, input_buf + *in_row_ctr [all...] |
jctrans.c | 20 JPP((j_compress_ptr cinfo, jvirt_barray_ptr * coef_arrays)); 22 JPP((j_compress_ptr cinfo, jvirt_barray_ptr * coef_arrays)); 30 * The number of passed virtual arrays must match cinfo->num_components. 38 jpeg_write_coefficients (j_compress_ptr cinfo, jvirt_barray_ptr * coef_arrays) 40 if (cinfo->global_state != CSTATE_START) 41 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); 43 jpeg_suppress_tables(cinfo, FALSE); 45 (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo); [all...] |
jdmainct.c | 144 JPP((j_decompress_ptr cinfo, JSAMPARRAY output_buf, 147 JPP((j_decompress_ptr cinfo, JSAMPARRAY output_buf, 151 JPP((j_decompress_ptr cinfo, JSAMPARRAY output_buf, 157 alloc_funny_pointers (j_decompress_ptr cinfo) 162 my_main_ptr main = (my_main_ptr) cinfo->main; 164 int M = cinfo->min_DCT_scaled_size; 172 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE, 173 cinfo->num_components * 2 * SIZEOF(JSAMPARRAY)); 174 main->xbuffer[1] = main->xbuffer[0] + cinfo->num_components [all...] |
rdrle.c | 81 start_input_rle (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) 86 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; 97 ERREXIT(cinfo, JERR_RLE_NOT); 100 ERREXIT(cinfo, JERR_RLE_MEM); 103 ERREXIT(cinfo, JERR_RLE_EMPTY); 106 ERREXIT(cinfo, JERR_RLE_EOF); 109 ERREXIT(cinfo, JERR_RLE_BADERROR); 120 cinfo->image_width = width; 121 cinfo->image_height = height; 122 cinfo->data_precision = 8; /* we can only handle 8 bit data * [all...] |
jdatasrc.c | 44 init_source (j_decompress_ptr cinfo) 46 my_src_ptr src = (my_src_ptr) cinfo->src; 90 fill_input_buffer (j_decompress_ptr cinfo) 92 my_src_ptr src = (my_src_ptr) cinfo->src; 99 ERREXIT(cinfo, JERR_INPUT_EMPTY); 100 WARNMS(cinfo, JWRN_JPEG_EOF); 128 skip_input_data (j_decompress_ptr cinfo, long num_bytes) 130 my_src_ptr src = (my_src_ptr) cinfo->src; 139 (void) fill_input_buffer(cinfo); 169 term_source (j_decompress_ptr cinfo) [all...] |
jcparam.c | 23 jpeg_add_quant_table (j_compress_ptr cinfo, int which_tbl, 37 if (cinfo->global_state != CSTATE_START) 38 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); 41 ERREXIT1(cinfo, JERR_DQT_INDEX, which_tbl); 43 qtblptr = & cinfo->quant_tbl_ptrs[which_tbl]; 46 *qtblptr = jpeg_alloc_quant_table((j_common_ptr) cinfo); 64 jpeg_set_linear_quality (j_compress_ptr cinfo, int scale_factor, 98 jpeg_add_quant_table(cinfo, 0, std_luminance_quant_tbl, 100 jpeg_add_quant_table(cinfo, 1, std_chrominance_quant_tbl [all...] |
jdhuff.c | 22 LOCAL(boolean) process_restart (j_decompress_ptr cinfo); 87 start_pass_huff_decoder (j_decompress_ptr cinfo) 89 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; 97 if (cinfo->Ss != 0 || cinfo->Se != DCTSIZE2-1 || 98 cinfo->Ah != 0 || cinfo->Al != 0) 99 WARNMS(cinfo, JWRN_NOT_SEQUENTIAL); 101 for (ci = 0; ci < cinfo->comps_in_scan; ci++) { 102 compptr = cinfo->cur_comp_info[ci] 301 j_decompress_ptr cinfo = state->cinfo; local [all...] |
jcmainct.c | 55 JPP((j_compress_ptr cinfo, JSAMPARRAY input_buf, 59 JPP((j_compress_ptr cinfo, JSAMPARRAY input_buf, 69 start_pass_main (j_compress_ptr cinfo, J_BUF_MODE pass_mode) 71 my_main_ptr main = (my_main_ptr) cinfo->main; 74 if (cinfo->raw_data_in) 86 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); 95 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); 100 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); 113 process_data_simple_main (j_compress_ptr cinfo, 117 my_main_ptr main = (my_main_ptr) cinfo->main [all...] |
/external/jpeg/ |
jcprepct.c | 78 start_pass_prep (j_compress_ptr cinfo, J_BUF_MODE pass_mode) 80 my_prep_ptr prep = (my_prep_ptr) cinfo->prep; 83 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); 86 prep->rows_to_go = cinfo->image_height; 95 prep->next_buf_stop = 2 * cinfo->max_v_samp_factor; 128 pre_process_data (j_compress_ptr cinfo, 134 my_prep_ptr prep = (my_prep_ptr) cinfo->prep; 143 numrows = cinfo->max_v_samp_factor - prep->next_buf_row; 145 (*cinfo->cconvert->color_convert) (cinfo, input_buf + *in_row_ctr [all...] |
jdphuff.c | 77 METHODDEF(boolean) decode_mcu_DC_first JPP((j_decompress_ptr cinfo, 79 METHODDEF(boolean) decode_mcu_AC_first JPP((j_decompress_ptr cinfo, 81 METHODDEF(boolean) decode_mcu_DC_refine JPP((j_decompress_ptr cinfo, 83 METHODDEF(boolean) decode_mcu_AC_refine JPP((j_decompress_ptr cinfo, 91 start_pass_phuff_decoder (j_decompress_ptr cinfo) 93 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; 99 is_DC_band = (cinfo->Ss == 0); 104 if (cinfo->Se != 0) 108 if (cinfo->Ss > cinfo->Se || cinfo->Se >= DCTSIZE2 [all...] |
jctrans.c | 20 JPP((j_compress_ptr cinfo, jvirt_barray_ptr * coef_arrays)); 22 JPP((j_compress_ptr cinfo, jvirt_barray_ptr * coef_arrays)); 30 * The number of passed virtual arrays must match cinfo->num_components. 38 jpeg_write_coefficients (j_compress_ptr cinfo, jvirt_barray_ptr * coef_arrays) 40 if (cinfo->global_state != CSTATE_START) 41 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); 43 jpeg_suppress_tables(cinfo, FALSE); 45 (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo); [all...] |
jdmainct.c | 144 JPP((j_decompress_ptr cinfo, JSAMPARRAY output_buf, 147 JPP((j_decompress_ptr cinfo, JSAMPARRAY output_buf, 151 JPP((j_decompress_ptr cinfo, JSAMPARRAY output_buf, 157 alloc_funny_pointers (j_decompress_ptr cinfo) 162 my_main_ptr main = (my_main_ptr) cinfo->main; 164 int M = cinfo->min_DCT_scaled_size; 172 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE, 173 cinfo->num_components * 2 * SIZEOF(JSAMPARRAY)); 174 main->xbuffer[1] = main->xbuffer[0] + cinfo->num_components [all...] |
rdrle.c | 81 start_input_rle (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) 86 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; 97 ERREXIT(cinfo, JERR_RLE_NOT); 100 ERREXIT(cinfo, JERR_RLE_MEM); 103 ERREXIT(cinfo, JERR_RLE_EMPTY); 106 ERREXIT(cinfo, JERR_RLE_EOF); 109 ERREXIT(cinfo, JERR_RLE_BADERROR); 120 cinfo->image_width = width; 121 cinfo->image_height = height; 122 cinfo->data_precision = 8; /* we can only handle 8 bit data * [all...] |
jdatasrc.c | 44 init_source (j_decompress_ptr cinfo) 46 my_src_ptr src = (my_src_ptr) cinfo->src; 90 fill_input_buffer (j_decompress_ptr cinfo) 92 my_src_ptr src = (my_src_ptr) cinfo->src; 99 ERREXIT(cinfo, JERR_INPUT_EMPTY); 100 WARNMS(cinfo, JWRN_JPEG_EOF); 128 skip_input_data (j_decompress_ptr cinfo, long num_bytes) 130 my_src_ptr src = (my_src_ptr) cinfo->src; 139 (void) fill_input_buffer(cinfo); 169 term_source (j_decompress_ptr cinfo) [all...] |
jcparam.c | 23 jpeg_add_quant_table (j_compress_ptr cinfo, int which_tbl, 37 if (cinfo->global_state != CSTATE_START) 38 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); 41 ERREXIT1(cinfo, JERR_DQT_INDEX, which_tbl); 43 qtblptr = & cinfo->quant_tbl_ptrs[which_tbl]; 46 *qtblptr = jpeg_alloc_quant_table((j_common_ptr) cinfo); 64 jpeg_set_linear_quality (j_compress_ptr cinfo, int scale_factor, 98 jpeg_add_quant_table(cinfo, 0, std_luminance_quant_tbl, 100 jpeg_add_quant_table(cinfo, 1, std_chrominance_quant_tbl [all...] |
jdhuff.c | 22 LOCAL(boolean) process_restart (j_decompress_ptr cinfo); 87 start_pass_huff_decoder (j_decompress_ptr cinfo) 89 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; 97 if (cinfo->Ss != 0 || cinfo->Se != DCTSIZE2-1 || 98 cinfo->Ah != 0 || cinfo->Al != 0) 99 WARNMS(cinfo, JWRN_NOT_SEQUENTIAL); 101 for (ci = 0; ci < cinfo->comps_in_scan; ci++) { 102 compptr = cinfo->cur_comp_info[ci] 301 j_decompress_ptr cinfo = state->cinfo; local [all...] |
jcmainct.c | 55 JPP((j_compress_ptr cinfo, JSAMPARRAY input_buf, 59 JPP((j_compress_ptr cinfo, JSAMPARRAY input_buf, 69 start_pass_main (j_compress_ptr cinfo, J_BUF_MODE pass_mode) 71 my_main_ptr main = (my_main_ptr) cinfo->main; 74 if (cinfo->raw_data_in) 86 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); 95 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); 100 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); 113 process_data_simple_main (j_compress_ptr cinfo, 117 my_main_ptr main = (my_main_ptr) cinfo->main [all...] |
cjpeg.c | 80 select_file_type (j_compress_ptr cinfo, FILE * infile) 86 return jinit_read_targa(cinfo); 88 ERREXIT(cinfo, JERR_TGA_NOTCOMP); 93 ERREXIT(cinfo, JERR_INPUT_EMPTY); 95 ERREXIT(cinfo, JERR_UNGETC_FAILED); 100 return jinit_read_bmp(cinfo); 104 return jinit_read_gif(cinfo); 108 return jinit_read_ppm(cinfo); 112 return jinit_read_rle(cinfo); 116 return jinit_read_targa(cinfo); 463 struct jpeg_compress_struct cinfo; local [all...] |
/external/chromium_org/third_party/skia/src/images/ |
SkImageDecoder_libjpeg.cpp | 41 static void overwrite_mem_buffer_size(jpeg_decompress_struct* cinfo) { 47 cinfo->mem->max_memory_to_use = 30 * 1024 * 1024; 49 cinfo->mem->max_memory_to_use = 5 * 1024 * 1024; 57 static void initialize_info(jpeg_decompress_struct* cinfo, skjpeg_source_mgr* src_mgr) { 58 SkASSERT(cinfo != NULL); 60 jpeg_create_decompress(cinfo); 61 overwrite_mem_buffer_size(cinfo); 62 cinfo->src = src_mgr; 99 * Destroy the cinfo struct. 116 * Initialize the cinfo struct 132 jpeg_decompress_struct* cinfo() { return &fCInfo; } function in class:SkJPEGImageIndex 452 jpeg_decompress_struct cinfo; local 643 jpeg_decompress_struct* cinfo = imageIndex->cinfo(); local 705 jpeg_decompress_struct* cinfo = fImageIndex->cinfo(); local 1056 jpeg_compress_struct cinfo; local [all...] |
SkJpegUtility.cpp | 12 static void sk_init_source(j_decompress_ptr cinfo) { 13 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src; 23 static boolean sk_seek_input_data(j_decompress_ptr cinfo, long byte_offset) { 24 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src; 41 static boolean sk_fill_input_buffer(j_decompress_ptr cinfo) { 42 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src; 61 static void sk_skip_input_data(j_decompress_ptr cinfo, long num_bytes) { 62 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src; 70 cinfo->err->error_exit((j_common_ptr)cinfo); [all...] |
/external/skia/src/images/ |
SkImageDecoder_libjpeg.cpp | 41 static void overwrite_mem_buffer_size(jpeg_decompress_struct* cinfo) { 47 cinfo->mem->max_memory_to_use = 30 * 1024 * 1024; 49 cinfo->mem->max_memory_to_use = 5 * 1024 * 1024; 57 static void initialize_info(jpeg_decompress_struct* cinfo, skjpeg_source_mgr* src_mgr) { 58 SkASSERT(cinfo != NULL); 60 jpeg_create_decompress(cinfo); 61 overwrite_mem_buffer_size(cinfo); 62 cinfo->src = src_mgr; 99 * Destroy the cinfo struct. 116 * Initialize the cinfo struct 132 jpeg_decompress_struct* cinfo() { return &fCInfo; } function in class:SkJPEGImageIndex 452 jpeg_decompress_struct cinfo; local 643 jpeg_decompress_struct* cinfo = imageIndex->cinfo(); local 705 jpeg_decompress_struct* cinfo = fImageIndex->cinfo(); local 1056 jpeg_compress_struct cinfo; local [all...] |
SkJpegUtility.cpp | 12 static void sk_init_source(j_decompress_ptr cinfo) { 13 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src; 21 cinfo->err->error_exit((j_common_ptr)cinfo); 26 static boolean sk_seek_input_data(j_decompress_ptr cinfo, long byte_offset) { 27 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src; 35 cinfo->err->error_exit((j_common_ptr)cinfo); 48 static boolean sk_fill_input_buffer(j_decompress_ptr cinfo) { 49 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/image-encoders/skia/ |
JPEGImageEncoder.cpp | 51 static void prepareOutput(j_compress_ptr cinfo) 53 JPEGOutputBuffer* out = static_cast<JPEGOutputBuffer*>(cinfo->dest); 60 static boolean writeOutput(j_compress_ptr cinfo) 62 JPEGOutputBuffer* out = static_cast<JPEGOutputBuffer*>(cinfo->dest); 69 static void finishOutput(j_compress_ptr cinfo) 71 JPEGOutputBuffer* out = static_cast<JPEGOutputBuffer*>(cinfo->dest); 115 jpeg_compress_struct cinfo; local 117 cinfo.err = jpeg_std_error(&error); 120 cinfo.client_data = &jumpBuffer; 123 jpeg_destroy_compress(&cinfo); [all...] |