HomeSort by relevance Sort by last modified time
    Searched refs:cinfo (Results 1 - 25 of 110) sorted by null

1 2 3 4 5

  /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...]
wrrle.c 66 JPP((j_decompress_ptr cinfo, djpeg_dest_ptr dinfo,
77 start_output_rle (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
83 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress;
99 if (cinfo->output_width > 32767 || cinfo->output_height > 32767)
100 ERREXIT2(cinfo, JERR_RLE_DIMENSIONS, cinfo->output_width,
101 cinfo->output_height);
103 if (cinfo->out_color_space != JCS_GRAYSCALE &&
104 cinfo->out_color_space != JCS_RGB
    [all...]
rdcolmap.c 46 add_map_entry (j_decompress_ptr cinfo, int R, int G, int B)
48 JSAMPROW colormap0 = cinfo->colormap[0];
49 JSAMPROW colormap1 = cinfo->colormap[1];
50 JSAMPROW colormap2 = cinfo->colormap[2];
51 int ncolors = cinfo->actual_number_of_colors;
64 ERREXIT1(cinfo, JERR_QUANT_MANY_COLORS, (MAXJSAMPLE+1));
70 cinfo->actual_number_of_colors++;
79 read_gif_map (j_decompress_ptr cinfo, FILE * infile)
89 ERREXIT(cinfo, JERR_BAD_CMAP_FILE);
94 ERREXIT(cinfo, JERR_BAD_CMAP_FILE)
    [all...]
jmemnobs.c 35 jpeg_get_small (j_common_ptr cinfo, size_t sizeofobject)
41 jpeg_free_small (j_common_ptr cinfo, void * object, size_t sizeofobject)
55 jpeg_get_large (j_common_ptr cinfo, size_t sizeofobject)
61 jpeg_free_large (j_common_ptr cinfo, void FAR * object, size_t sizeofobject)
73 jpeg_mem_available (j_common_ptr cinfo, long min_bytes_needed,
87 jpeg_open_backing_store (j_common_ptr cinfo, backing_store_ptr info,
90 ERREXIT(cinfo, JERR_NO_BACKING_STORE);
100 jpeg_mem_init (j_common_ptr cinfo)
106 jpeg_mem_term (j_common_ptr cinfo)
jdcoefct.c 32 /* cinfo->input_iMCU_row is also used for this. */
37 /* The output side's location is represented by cinfo->output_iMCU_row. */
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)
82 my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
88 if (cinfo->comps_in_scan > 1) {
91 if (cinfo->input_iMCU_row < (cinfo->total_iMCU_rows-1)
    [all...]
jdatadst.c 43 init_destination (j_compress_ptr cinfo)
45 my_dest_ptr dest = (my_dest_ptr) cinfo->dest;
49 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
81 empty_output_buffer (j_compress_ptr cinfo)
83 my_dest_ptr dest = (my_dest_ptr) cinfo->dest;
87 ERREXIT(cinfo, JERR_FILE_WRITE);
106 term_destination (j_compress_ptr cinfo)
108 my_dest_ptr dest = (my_dest_ptr) cinfo->dest;
114 ERREXIT(cinfo, JERR_FILE_WRITE)
    [all...]
jmemansi.c 36 jpeg_get_small (j_common_ptr cinfo, size_t sizeofobject)
42 jpeg_free_small (j_common_ptr cinfo, void * object, size_t sizeofobject)
56 jpeg_get_large (j_common_ptr cinfo, size_t sizeofobject)
62 jpeg_free_large (j_common_ptr cinfo, void FAR * object, size_t sizeofobject)
81 jpeg_mem_available (j_common_ptr cinfo, long min_bytes_needed,
84 return cinfo->mem->max_memory_to_use - already_allocated;
97 read_backing_store (j_common_ptr cinfo, backing_store_ptr info,
102 ERREXIT(cinfo, JERR_TFILE_SEEK);
105 ERREXIT(cinfo, JERR_TFILE_READ);
110 write_backing_store (j_common_ptr cinfo, backing_store_ptr info
    [all...]
jpegint.h 46 JMETHOD(void, prepare_for_pass, (j_compress_ptr cinfo));
47 JMETHOD(void, pass_startup, (j_compress_ptr cinfo));
48 JMETHOD(void, finish_pass, (j_compress_ptr cinfo));
57 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
58 JMETHOD(void, process_data, (j_compress_ptr cinfo,
65 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
66 JMETHOD(void, pre_process_data, (j_compress_ptr cinfo,
77 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
78 JMETHOD(boolean, compress_data, (j_compress_ptr cinfo,
84 JMETHOD(void, start_pass, (j_compress_ptr cinfo));
398 EXTERN(void) jpeg_decompress_per_scan_setup (j_decompress_ptr cinfo); variable
    [all...]
jerror.h 202 /* The first parameter is either type of cinfo pointer */
205 #define ERREXIT(cinfo,code) \
206 ((cinfo)->err->msg_code = (code), \
207 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
208 #define ERREXIT1(cinfo,code,p1) \
209 ((cinfo)->err->msg_code = (code), \
210 (cinfo)->err->msg_parm.i[0] = (p1), \
211 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
    [all...]
jdpostct.c 47 JPP((j_decompress_ptr cinfo,
54 JPP((j_decompress_ptr cinfo,
60 JPP((j_decompress_ptr cinfo,
73 start_pass_dpost (j_decompress_ptr cinfo, J_BUF_MODE pass_mode)
75 my_post_ptr post = (my_post_ptr) cinfo->post;
79 if (cinfo->quantize_colors) {
87 post->buffer = (*cinfo->mem->access_virt_sarray)
88 ((j_common_ptr) cinfo, post->whole_image,
95 post->pub.post_process_data = cinfo->upsample->upsample;
102 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE)
    [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...]
  /external/webkit/Source/WebCore/platform/image-encoders/skia/
JPEGImageEncoder.cpp 52 static void prepareOutput(j_compress_ptr cinfo)
54 JPEGOutputBuffer* out = static_cast<JPEGOutputBuffer*>(cinfo->dest);
61 static boolean writeOutput(j_compress_ptr cinfo)
63 JPEGOutputBuffer* out = static_cast<JPEGOutputBuffer*>(cinfo->dest);
70 static void finishOutput(j_compress_ptr cinfo)
72 JPEGOutputBuffer* out = static_cast<JPEGOutputBuffer*>(cinfo->dest);
111 jpeg_compress_struct cinfo; local
113 cinfo.err = jpeg_std_error(&error);
116 cinfo.client_data = &jumpBuffer;
119 jpeg_destroy_compress(&cinfo);
    [all...]
  /frameworks/base/core/jni/android/graphics/
YuvToJpegEncoder.cpp 26 jpeg_compress_struct cinfo; local
30 cinfo.err = jpeg_std_error(&sk_err);
35 jpeg_create_compress(&cinfo);
37 cinfo.dest = &sk_wstream;
39 setJpegCompressStruct(&cinfo, width, height, jpegQuality);
41 jpeg_start_compress(&cinfo, TRUE);
43 compress(&cinfo, (uint8_t*) inYuv, offsets);
45 jpeg_finish_compress(&cinfo);
50 void YuvToJpegEncoder::setJpegCompressStruct(jpeg_compress_struct* cinfo,
52 cinfo->image_width = width
    [all...]

Completed in 778 milliseconds

1 2 3 4 5