Home
last modified time | relevance | path

Searched refs:num_components (Results 1 – 25 of 86) sorted by relevance

1234

/external/mesa3d/src/glsl/
Dopt_swizzle_swizzle.cpp61 if (swiz2->mask.num_components >= 1) in visit_enter()
63 if (swiz2->mask.num_components >= 2) in visit_enter()
65 if (swiz2->mask.num_components >= 3) in visit_enter()
67 if (swiz2->mask.num_components >= 4) in visit_enter()
70 if (ir->mask.num_components >= 1) in visit_enter()
72 if (ir->mask.num_components >= 2) in visit_enter()
74 if (ir->mask.num_components >= 3) in visit_enter()
76 if (ir->mask.num_components >= 4) in visit_enter()
/external/libjpeg-turbo/
Djcparam.c353 cinfo->num_components = 1; in jpeg_set_colorspace()
359 cinfo->num_components = 3; in jpeg_set_colorspace()
366 cinfo->num_components = 3; in jpeg_set_colorspace()
375 cinfo->num_components = 4; in jpeg_set_colorspace()
383 cinfo->num_components = 4; in jpeg_set_colorspace()
390 cinfo->num_components = cinfo->input_components; in jpeg_set_colorspace()
391 if (cinfo->num_components < 1 || cinfo->num_components > MAX_COMPONENTS) in jpeg_set_colorspace()
392 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in jpeg_set_colorspace()
394 for (ci = 0; ci < cinfo->num_components; ci++) { in jpeg_set_colorspace()
471 int ncomps = cinfo->num_components; in jpeg_simple_progression()
Djcmaster.c99 || cinfo->num_components <= 0 || cinfo->input_components <= 0) in initial_setup()
118 if (cinfo->num_components > MAX_COMPONENTS) in initial_setup()
119 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in initial_setup()
125 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
137 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
203 for (ci = 0; ci < cinfo->num_components; ci++) in validate_script()
211 for (ci = 0; ci < cinfo->num_components; ci++) in validate_script()
222 if (thisi < 0 || thisi >= cinfo->num_components) in validate_script()
297 for (ci = 0; ci < cinfo->num_components; ci++) { in validate_script()
303 for (ci = 0; ci < cinfo->num_components; ci++) { in validate_script()
[all …]
Djcprepct.c158 for (ci = 0; ci < cinfo->num_components; ci++) { in pre_process_data()
177 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in pre_process_data()
221 for (ci = 0; ci < cinfo->num_components; ci++) { in pre_process_context()
239 for (ci = 0; ci < cinfo->num_components; ci++) { in pre_process_context()
283 (cinfo->num_components * 5 * rgroup_height) * in create_context_buffer()
286 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in create_context_buffer()
348 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_c_prep_controller()
Djctrans.c81 dstinfo->input_components = srcinfo->num_components; in jpeg_copy_critical_parameters()
112 dstinfo->num_components = srcinfo->num_components; in jpeg_copy_critical_parameters()
113 if (dstinfo->num_components < 1 || dstinfo->num_components > MAX_COMPONENTS) in jpeg_copy_critical_parameters()
114 ERREXIT2(dstinfo, JERR_COMPONENT_COUNT, dstinfo->num_components, in jpeg_copy_critical_parameters()
117 ci < dstinfo->num_components; ci++, incomp++, outcomp++) { in jpeg_copy_critical_parameters()
Drdjpgcom.c281 int data_precision, num_components; in process_SOFn() local
290 num_components = read_1_byte(); in process_SOFn()
310 image_width, image_height, num_components, data_precision); in process_SOFn()
313 if (length != (unsigned int) (8 + num_components * 3)) in process_SOFn()
316 for (ci = 0; ci < num_components; ci++) { in process_SOFn()
Djdcolor.c370 register int num_components = cinfo->num_components; in null_convert() local
374 if (num_components == 3) { in null_convert()
387 } else if (num_components == 4) { in null_convert()
404 for (ci = 0; ci < num_components; ci++) { in null_convert()
409 outptr += num_components; in null_convert()
766 if (cinfo->num_components != 1) in jinit_color_deconverter()
772 if (cinfo->num_components != 3) in jinit_color_deconverter()
778 if (cinfo->num_components != 4) in jinit_color_deconverter()
783 if (cinfo->num_components < 1) in jinit_color_deconverter()
800 for (ci = 1; ci < cinfo->num_components; ci++) in jinit_color_deconverter()
[all …]
Djdmainct.c145 cinfo->num_components * 2 * sizeof(JSAMPARRAY)); in alloc_funny_pointers()
146 main_ptr->xbuffer[1] = main_ptr->xbuffer[0] + cinfo->num_components; in alloc_funny_pointers()
148 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in alloc_funny_pointers()
181 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in make_funny_pointers()
221 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_bottom_pointers()
447 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_d_main_controller()
Dtransupp.c106 for (ci = 0; ci < dstinfo->num_components; ci++) { in do_crop()
152 for (ci = 0; ci < dstinfo->num_components; ci++) { in do_flip_h_no_crop()
218 for (ci = 0; ci < dstinfo->num_components; ci++) { in do_flip_h()
283 for (ci = 0; ci < dstinfo->num_components; ci++) { in do_flip_v()
356 for (ci = 0; ci < dstinfo->num_components; ci++) { in do_transpose()
411 for (ci = 0; ci < dstinfo->num_components; ci++) { in do_rot_90()
492 for (ci = 0; ci < dstinfo->num_components; ci++) { in do_rot_270()
562 for (ci = 0; ci < dstinfo->num_components; ci++) { in do_rot_180()
673 for (ci = 0; ci < dstinfo->num_components; ci++) { in do_transverse()
905 srcinfo->num_components == 3) in jtransform_request_workspace()
[all …]
Djdinput.c60 if (cinfo->num_components > MAX_COMPONENTS) in initial_setup()
61 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in initial_setup()
67 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
95 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
137 if (cinfo->comps_in_scan < cinfo->num_components || cinfo->progressive_mode) in initial_setup()
Dturbojpeg.c264 if(cinfo->num_components>3) in setCompDefaults()
269 if(cinfo->num_components>3) in setCompDefaults()
341 if(dinfo->num_components==1 && dinfo->jpeg_color_space==JCS_GRAYSCALE) in getSubsamp()
346 if(dinfo->num_components==pixelsize[i] in getSubsamp()
349 && pixelsize[i]==3 && dinfo->num_components==4)) in getSubsamp()
355 for(k=1; k<dinfo->num_components; k++) in getSubsamp()
366 if(match==dinfo->num_components-1) in getSubsamp()
378 for(k=1; k<dinfo->num_components; k++) in getSubsamp()
389 if(match==dinfo->num_components-1) in getSubsamp()
948 for(i=0; i<cinfo->num_components; i++) in tjEncodeYUVPlanes()
[all …]
Djdmaster.c41 if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 || in use_merged_upsample()
244 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_core_output_dimensions()
293 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_calc_output_dimensions()
313 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_calc_output_dimensions()
365 cinfo->out_color_components = cinfo->num_components; in jpeg_calc_output_dimensions()
594 nscans = 2 + 3 * cinfo->num_components; in master_selection()
597 nscans = cinfo->num_components; in master_selection()
Djccolor.c471 int nc = cinfo->num_components; in null_convert()
589 if (cinfo->num_components != 1) in jinit_color_converter()
617 if (cinfo->num_components != 3) in jinit_color_converter()
646 if (cinfo->num_components != 3) in jinit_color_converter()
677 if (cinfo->num_components != 4) in jinit_color_converter()
691 if (cinfo->num_components != 4) in jinit_color_converter()
709 cinfo->num_components != cinfo->input_components) in jinit_color_converter()
Djdtrans.c143 nscans = 2 + 3 * cinfo->num_components; in transdecode_master_selection()
146 nscans = cinfo->num_components; in transdecode_master_selection()
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jdcolor.c175 register int num_components = cinfo->num_components; in null_convert() local
180 for (ci = 0; ci < num_components; ci++) { in null_convert()
185 outptr += num_components; in null_convert()
318 if (cinfo->num_components != 1) in jinit_color_deconverter()
324 if (cinfo->num_components != 3) in jinit_color_deconverter()
330 if (cinfo->num_components != 4) in jinit_color_deconverter()
335 if (cinfo->num_components < 1) in jinit_color_deconverter()
352 for (ci = 1; ci < cinfo->num_components; ci++) in jinit_color_deconverter()
385 cinfo->out_color_components = cinfo->num_components; in jinit_color_deconverter()
Dfpdfapi_jcparam.c421 cinfo->num_components = 1; in jpeg_set_colorspace()
427 cinfo->num_components = 3; in jpeg_set_colorspace()
434 cinfo->num_components = 3; in jpeg_set_colorspace()
443 cinfo->num_components = 4; in jpeg_set_colorspace()
451 cinfo->num_components = 4; in jpeg_set_colorspace()
458 cinfo->num_components = cinfo->input_components; in jpeg_set_colorspace()
459 if (cinfo->num_components < 1 || cinfo->num_components > MAX_COMPONENTS) in jpeg_set_colorspace()
460 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in jpeg_set_colorspace()
462 for (ci = 0; ci < cinfo->num_components; ci++) { in jpeg_set_colorspace()
539 int ncomps = cinfo->num_components; in jpeg_simple_progression()
Dfpdfapi_jcmaster.c56 || cinfo->num_components <= 0 || cinfo->input_components <= 0) in initial_setup()
75 if (cinfo->num_components > MAX_COMPONENTS) in initial_setup()
76 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in initial_setup()
82 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
94 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
156 for (ci = 0; ci < cinfo->num_components; ci++) in validate_script()
164 for (ci = 0; ci < cinfo->num_components; ci++) in validate_script()
175 if (thisi < 0 || thisi >= cinfo->num_components) in validate_script()
250 for (ci = 0; ci < cinfo->num_components; ci++) { in validate_script()
256 for (ci = 0; ci < cinfo->num_components; ci++) { in validate_script()
[all …]
Dfpdfapi_jcprepct.c155 for (ci = 0; ci < cinfo->num_components; ci++) { in pre_process_data()
174 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in pre_process_data()
218 for (ci = 0; ci < cinfo->num_components; ci++) { in pre_process_context()
236 for (ci = 0; ci < cinfo->num_components; ci++) { in pre_process_context()
280 (cinfo->num_components * 5 * rgroup_height) * in create_context_buffer()
283 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in create_context_buffer()
345 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_c_prep_controller()
Dfpdfapi_jctrans.c77 dstinfo->input_components = srcinfo->num_components; in jpeg_copy_critical_parameters()
102 dstinfo->num_components = srcinfo->num_components; in jpeg_copy_critical_parameters()
103 if (dstinfo->num_components < 1 || dstinfo->num_components > MAX_COMPONENTS) in jpeg_copy_critical_parameters()
104 ERREXIT2(dstinfo, JERR_COMPONENT_COUNT, dstinfo->num_components, in jpeg_copy_critical_parameters()
107 ci < dstinfo->num_components; ci++, incomp++, outcomp++) { in jpeg_copy_critical_parameters()
Dfpdfapi_jdmainct.c173 cinfo->num_components * 2 * SIZEOF(JSAMPARRAY)); in alloc_funny_pointers()
174 main->xbuffer[1] = main->xbuffer[0] + cinfo->num_components; in alloc_funny_pointers()
176 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in alloc_funny_pointers()
209 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in make_funny_pointers()
249 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_wraparound_pointers()
277 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_bottom_pointers()
503 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_d_main_controller()
Dfpdfapi_jccolor.c317 int nc = cinfo->num_components; in null_convert()
397 if (cinfo->num_components != 1) in jinit_color_converter()
411 if (cinfo->num_components != 3) in jinit_color_converter()
420 if (cinfo->num_components != 3) in jinit_color_converter()
432 if (cinfo->num_components != 4) in jinit_color_converter()
441 if (cinfo->num_components != 4) in jinit_color_converter()
454 cinfo->num_components != cinfo->input_components) in jinit_color_converter()
Dfpdfapi_jdinput.c55 if (cinfo->num_components > MAX_COMPONENTS) in initial_setup()
56 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in initial_setup()
62 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
80 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
113 if (cinfo->comps_in_scan < cinfo->num_components || cinfo->progressive_mode) in initial_setup()
Dfpdfapi_jdmaster.c51 if (cinfo->jpeg_color_space != JCS_YCbCr || cinfo->num_components != 3 || in use_merged_upsample()
131 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_calc_output_dimensions()
147 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_calc_output_dimensions()
190 cinfo->out_color_components = cinfo->num_components; in jpeg_calc_output_dimensions()
412 nscans = 2 + 3 * cinfo->num_components; in master_selection()
415 nscans = cinfo->num_components; in master_selection()
Dfpdfapi_jdtrans.c131 nscans = 2 + 3 * cinfo->num_components; in transdecode_master_selection()
134 nscans = cinfo->num_components; in transdecode_master_selection()
/external/pdfium/core/fxcodec/codec/
Dfx_codec_jpeg.cpp102 int* num_components, in JpegLoadInfo() argument
141 *num_components = cinfo.num_components; in JpegLoadInfo()
225 if (cinfo.num_components == 3 && !m_bJpegTransform) in InitDecode()
266 if (cinfo.num_components < nComps) in Create()
273 (static_cast<uint32_t>(cinfo.image_width) * cinfo.num_components + 3) / in Create()
276 m_nComps = cinfo.num_components; in Create()
341 int* num_components, in LoadInfo() argument
344 return JpegLoadInfo(src_buf, src_size, width, height, num_components, in LoadInfo()
450 *nComps = ctx->m_Info.num_components;

1234