Home
last modified time | relevance | path

Searched refs:h_samp_factor (Results 1 – 25 of 30) sorted by relevance

12

/external/libjpeg-turbo/
Dtransupp.c108 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_crop()
153 comp_width = MCU_cols * compptr->h_samp_factor; in do_flip_h_no_crop()
154 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_flip_h_no_crop()
218 comp_width = MCU_cols * compptr->h_samp_factor; in do_flip_h()
219 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_flip_h()
284 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_flip_v()
356 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_transpose()
365 dst_blk_x += compptr->h_samp_factor) { in do_transpose()
369 (JDIMENSION)compptr->h_samp_factor, FALSE); in do_transpose()
370 for (offset_x = 0; offset_x < compptr->h_samp_factor; offset_x++) { in do_transpose()
[all …]
Djccoefct.c250 int bi, ci, h_samp_factor, block_row, block_rows, ndummy; in compress_first_pass() local
272 h_samp_factor = compptr->h_samp_factor; in compress_first_pass()
274 ndummy = (int)(blocks_across % h_samp_factor); in compress_first_pass()
276 ndummy = h_samp_factor - ndummy; in compress_first_pass()
303 MCUs_across = blocks_across / h_samp_factor; in compress_first_pass()
311 lastDC = lastblockrow[h_samp_factor - 1][0]; in compress_first_pass()
312 for (bi = 0; bi < h_samp_factor; bi++) { in compress_first_pass()
315 thisblockrow += h_samp_factor; /* advance to next MCU in row */ in compress_first_pass()
316 lastblockrow += h_samp_factor; in compress_first_pass()
428 (long)compptr->h_samp_factor), in jinit_c_coef_controller()
Djdinput.c69 if (compptr->h_samp_factor <= 0 || in initial_setup()
70 compptr->h_samp_factor > MAX_SAMP_FACTOR || in initial_setup()
75 compptr->h_samp_factor); in initial_setup()
106 jdiv_round_up((long)cinfo->image_width * (long)compptr->h_samp_factor, in initial_setup()
122 jdiv_round_up((long)cinfo->image_width * (long)compptr->h_samp_factor, in initial_setup()
200 compptr->MCU_width = compptr->h_samp_factor; in per_scan_setup()
Djcmaster.c127 if (compptr->h_samp_factor <= 0 || in initial_setup()
128 compptr->h_samp_factor > MAX_SAMP_FACTOR || in initial_setup()
133 compptr->h_samp_factor); in initial_setup()
151 jdiv_round_up((long)cinfo->_jpeg_width * (long)compptr->h_samp_factor, in initial_setup()
158 jdiv_round_up((long)cinfo->_jpeg_width * (long)compptr->h_samp_factor, in initial_setup()
409 compptr->MCU_width = compptr->h_samp_factor; in per_scan_setup()
Djcsample.c156 h_expand = cinfo->max_h_samp_factor / compptr->h_samp_factor; in int_downsample()
492 if (compptr->h_samp_factor == cinfo->max_h_samp_factor && in jinit_downsampler()
501 } else if (compptr->h_samp_factor * 2 == cinfo->max_h_samp_factor && in jinit_downsampler()
508 } else if (compptr->h_samp_factor * 2 == cinfo->max_h_samp_factor && in jinit_downsampler()
527 } else if ((cinfo->max_h_samp_factor % compptr->h_samp_factor) == 0 && in jinit_downsampler()
Djdmaster.c61 if (cinfo->comp_info[0].h_samp_factor != 2 || in use_merged_upsample()
62 cinfo->comp_info[1].h_samp_factor != 1 || in use_merged_upsample()
63 cinfo->comp_info[2].h_samp_factor != 1 || in use_merged_upsample()
298 (compptr->h_samp_factor * ssize * 2) == 0) && in jpeg_calc_output_dimensions()
318 (long)(compptr->h_samp_factor * compptr->_DCT_scaled_size), in jpeg_calc_output_dimensions()
Dturbojpeg.c290 cinfo->comp_info[0].h_samp_factor = tjMCUWidth[subsamp] / 8; in setCompDefaults()
291 cinfo->comp_info[1].h_samp_factor = 1; in setCompDefaults()
292 cinfo->comp_info[2].h_samp_factor = 1; in setCompDefaults()
294 cinfo->comp_info[3].h_samp_factor = tjMCUWidth[subsamp] / 8; in setCompDefaults()
321 if (dinfo->comp_info[0].h_samp_factor == tjMCUWidth[i] / 8 && in getSubsamp()
332 if (dinfo->comp_info[k].h_samp_factor == href && in getSubsamp()
342 if (dinfo->comp_info[0].h_samp_factor == 2 && in getSubsamp()
354 if (dinfo->comp_info[k].h_samp_factor == href && in getSubsamp()
364 if (dinfo->comp_info[0].h_samp_factor * in getSubsamp()
369 if (dinfo->comp_info[i].h_samp_factor == in getSubsamp()
[all …]
Djcprepct.c289 cinfo->max_h_samp_factor) / compptr->h_samp_factor), in create_context_buffer()
347 cinfo->max_h_samp_factor) / compptr->h_samp_factor), in jinit_c_prep_controller()
Drdswitch.c413 cinfo->comp_info[ci].h_samp_factor = val1; in set_sample_factors()
419 cinfo->comp_info[ci].h_samp_factor = 1; in set_sample_factors()
Djctrans.c117 outcomp->h_samp_factor = incomp->h_samp_factor; in jpeg_copy_critical_parameters()
Djdapistd.c221 1 : compptr->h_samp_factor; in jpeg_crop_scanline()
227 compptr->h_samp_factor), in jpeg_crop_scanline()
Djcparam.c332 compptr->h_samp_factor = (hsamp), \ in jpeg_set_colorspace()
Djdsample.c444 h_in_group = (compptr->h_samp_factor * compptr->_DCT_scaled_size) / in jinit_upsampler()
Djdmarker.c287 compptr->h_samp_factor = (c >> 4) & 15; in get_sof()
292 compptr->component_id, compptr->h_samp_factor, in get_sof()
Djcmarker.c311 emit_byte(cinfo, (compptr->h_samp_factor << 4) + compptr->v_samp_factor); in emit_sof()
/external/skia/src/images/
DSkJpegEncoder.cpp133 SkASSERT(2 == fCInfo.comp_info[0].h_samp_factor); in setParams()
135 SkASSERT(1 == fCInfo.comp_info[1].h_samp_factor); in setParams()
137 SkASSERT(1 == fCInfo.comp_info[2].h_samp_factor); in setParams()
141 fCInfo.comp_info[0].h_samp_factor = 2; in setParams()
143 fCInfo.comp_info[1].h_samp_factor = 1; in setParams()
145 fCInfo.comp_info[2].h_samp_factor = 1; in setParams()
149 fCInfo.comp_info[0].h_samp_factor = 1; in setParams()
151 fCInfo.comp_info[1].h_samp_factor = 1; in setParams()
153 fCInfo.comp_info[2].h_samp_factor = 1; in setParams()
/external/skqp/src/images/
DSkJpegEncoder.cpp133 SkASSERT(2 == fCInfo.comp_info[0].h_samp_factor); in setParams()
135 SkASSERT(1 == fCInfo.comp_info[1].h_samp_factor); in setParams()
137 SkASSERT(1 == fCInfo.comp_info[2].h_samp_factor); in setParams()
141 fCInfo.comp_info[0].h_samp_factor = 2; in setParams()
143 fCInfo.comp_info[1].h_samp_factor = 1; in setParams()
145 fCInfo.comp_info[2].h_samp_factor = 1; in setParams()
149 fCInfo.comp_info[0].h_samp_factor = 1; in setParams()
151 fCInfo.comp_info[1].h_samp_factor = 1; in setParams()
153 fCInfo.comp_info[2].h_samp_factor = 1; in setParams()
/external/ImageMagick/coders/
Djpeg.c1012 "%dx%d,%dx%d,%dx%d,%dx%d",jpeg_info->comp_info[0].h_samp_factor, in JPEGSetImageSamplingFactor()
1014 jpeg_info->comp_info[1].h_samp_factor, in JPEGSetImageSamplingFactor()
1016 jpeg_info->comp_info[2].h_samp_factor, in JPEGSetImageSamplingFactor()
1018 jpeg_info->comp_info[3].h_samp_factor, in JPEGSetImageSamplingFactor()
1027 jpeg_info->comp_info[0].h_samp_factor, in JPEGSetImageSamplingFactor()
1035 "%dx%d,%dx%d,%dx%d",jpeg_info->comp_info[0].h_samp_factor, in JPEGSetImageSamplingFactor()
1037 jpeg_info->comp_info[1].h_samp_factor, in JPEGSetImageSamplingFactor()
1039 jpeg_info->comp_info[2].h_samp_factor, in JPEGSetImageSamplingFactor()
1048 "%dx%d,%dx%d,%dx%d,%dx%d",jpeg_info->comp_info[0].h_samp_factor, in JPEGSetImageSamplingFactor()
1050 jpeg_info->comp_info[1].h_samp_factor, in JPEGSetImageSamplingFactor()
[all …]
/external/tensorflow/tensorflow/core/lib/jpeg/
Djpeg_mem_unittest.cc425 CHECK_EQ(cinfo.comp_info[1].h_samp_factor, cinfo.comp_info[2].h_samp_factor) in IsChromaDownsampled()
430 CHECK_GT(cinfo.comp_info[i].h_samp_factor, 0) << "Invalid sampling factor."; in IsChromaDownsampled()
431 CHECK_EQ(cinfo.comp_info[i].h_samp_factor, cinfo.comp_info[i].v_samp_factor) in IsChromaDownsampled()
438 cinfo.comp_info[1].h_samp_factor < cinfo.comp_info[0].h_samp_factor; in IsChromaDownsampled()
/external/pdfium/third_party/libtiff/
Dtif_jpeg.c653 samples_per_clump += compptr->h_samp_factor * in alloc_downsampled_buffers()
1118 if (sp->cinfo.d.comp_info[0].h_samp_factor != sp->h_sampling || in JPEGPreDecode()
1123 sp->cinfo.d.comp_info[0].h_samp_factor, in JPEGPreDecode()
1130 if (sp->cinfo.d.comp_info[ci].h_samp_factor != 1 || in JPEGPreDecode()
1138 if (sp->cinfo.d.comp_info[0].h_samp_factor != 1 || in JPEGPreDecode()
1422 int hsamp = compptr->h_samp_factor; in JPEGDecodeRaw()
1818 sp->cinfo.c.comp_info[0].h_samp_factor = sp->h_sampling; in JPEGPreEncode()
2013 int hsamp = compptr->h_samp_factor; in JPEGEncodeRaw()
/external/skqp/src/codec/
DSkJpegCodec.cpp816 if ((1 != dinfo->comp_info[1].h_samp_factor) || in is_yuv_supported()
818 (1 != dinfo->comp_info[2].h_samp_factor) || in is_yuv_supported()
832 int hSampY = dinfo->comp_info[0].h_samp_factor; in is_yuv_supported()
/external/skia/src/codec/
DSkJpegCodec.cpp816 if ((1 != dinfo->comp_info[1].h_samp_factor) || in is_yuv_supported()
818 (1 != dinfo->comp_info[2].h_samp_factor) || in is_yuv_supported()
832 int hSampY = dinfo->comp_info[0].h_samp_factor; in is_yuv_supported()
/external/libaom/libaom/third_party/libyuv/source/
Dmjpeg_decoder.cc189 return decompress_struct_->comp_info[component].h_samp_factor; in GetHorizSampFactor()
/external/libvpx/libvpx/third_party/libyuv/source/
Dmjpeg_decoder.cc190 return decompress_struct_->comp_info[component].h_samp_factor; in GetHorizSampFactor()
/external/libyuv/files/source/
Dmjpeg_decoder.cc190 return decompress_struct_->comp_info[component].h_samp_factor; in GetHorizSampFactor()

12