Home
last modified time | relevance | path

Searched refs:maxval (Results 1 – 25 of 53) sorted by relevance

123

/third_party/skia/third_party/externals/libjpeg-turbo/
Drdppm.c68 unsigned int maxval; member
92 read_pbm_integer(j_compress_ptr cinfo, FILE *infile, unsigned int maxval) in read_pbm_integer() argument
115 if (val > maxval) in read_pbm_integer()
143 unsigned int maxval = source->maxval; in get_text_gray_row() local
147 *ptr++ = rescale[read_pbm_integer(cinfo, infile, maxval)]; in get_text_gray_row()
171 unsigned int maxval = source->maxval; in get_text_gray_rgb_row() local
179 if (maxval == MAXJSAMPLE) { in get_text_gray_rgb_row()
181 GRAY_RGB_READ_LOOP(read_pbm_integer(cinfo, infile, maxval), in get_text_gray_rgb_row()
184 GRAY_RGB_READ_LOOP(read_pbm_integer(cinfo, infile, maxval),) in get_text_gray_rgb_row()
187 GRAY_RGB_READ_LOOP(rescale[read_pbm_integer(cinfo, infile, maxval)], in get_text_gray_rgb_row()
[all …]
Drdcolmap.c174 unsigned int w, h, maxval, row, col; in read_ppm_map() local
183 maxval = read_pbm_integer(cinfo, infile); in read_ppm_map()
185 if (w <= 0 || h <= 0 || maxval <= 0) /* error check */ in read_ppm_map()
189 if (maxval != (unsigned int)MAXJSAMPLE) in read_ppm_map()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
Dbtree_test.h64 inline char* GenerateDigits(char buf[16], unsigned val, unsigned maxval) {
65 assert(val <= maxval);
69 while (maxval > 0) {
72 maxval /= kBase;
79 int maxval;
80 explicit Generator(int m) : maxval(m) {}
82 assert(i <= maxval);
89 int maxval;
90 explicit Generator(int m) : maxval(m) {}
96 int maxval;
[all …]
/third_party/ffmpeg/libavcodec/
Dpnm.c68 int h, w, depth, maxval; in ff_pnm_decode_header() local
100 maxval = -1; in ff_pnm_decode_header()
116 maxval = strtol(buf1, NULL, 10); in ff_pnm_decode_header()
131 …if (w <= 0 || h <= 0 || maxval <= 0 || maxval > UINT16_MAX || depth <= 0 || tuple_type[0] == '\0' … in ff_pnm_decode_header()
138 s->maxval = maxval; in ff_pnm_decode_header()
140 if (maxval == 1) { in ff_pnm_decode_header()
142 } else if (maxval < 256) { in ff_pnm_decode_header()
148 if (maxval < 256) { in ff_pnm_decode_header()
154 if (maxval < 256) { in ff_pnm_decode_header()
160 if (maxval < 256) { in ff_pnm_decode_header()
[all …]
Djpegls.c36 state->range = (state->maxval + state->twonear - 1) / state->twonear + 1; in ff_jpegls_init_state()
42 state->bpp = FFMAX(av_log2(state->maxval) + 1, 2); in ff_jpegls_init_state()
69 if (s->maxval == 0 || reset_all) in ff_jpegls_reset_coding_parameters()
70 s->maxval = (1 << s->bpp) - 1; in ff_jpegls_reset_coding_parameters()
72 if (s->maxval >= 128) { in ff_jpegls_reset_coding_parameters()
73 factor = FFMIN(s->maxval, 4095) + 128 >> 8; in ff_jpegls_reset_coding_parameters()
77 s->near + 1, s->maxval); in ff_jpegls_reset_coding_parameters()
80 s->T1, s->maxval); in ff_jpegls_reset_coding_parameters()
83 s->T2, s->maxval); in ff_jpegls_reset_coding_parameters()
85 factor = 256 / (s->maxval + 1); in ff_jpegls_reset_coding_parameters()
[all …]
Dpnmdec.c27 static void samplecpy(uint8_t *dst, const uint8_t *src, int n, int maxval) in samplecpy() argument
29 if (maxval <= 255) { in samplecpy()
62 avctx->bits_per_raw_sample = av_log2(s->maxval) + 1; in pnm_decode_frame()
71 if (s->maxval < 65535) in pnm_decode_frame()
78 if (s->maxval < 65535) in pnm_decode_frame()
90 if (s->maxval < 255) in pnm_decode_frame()
97 if (s->maxval < 255) in pnm_decode_frame()
109 if (s->maxval < 65535) in pnm_decode_frame()
116 if (s->maxval < 65535) in pnm_decode_frame()
151 if (v > s->maxval) { in pnm_decode_frame()
[all …]
Dpamenc.c29 int i, h, w, n, linesize, depth, maxval, ret; in pam_encode_frame() local
39 maxval = 1; in pam_encode_frame()
45 maxval = 255; in pam_encode_frame()
51 maxval = 0xFFFF; in pam_encode_frame()
57 maxval = 255; in pam_encode_frame()
63 maxval = 0xFFFF; in pam_encode_frame()
69 maxval = 255; in pam_encode_frame()
75 maxval = 255; in pam_encode_frame()
81 maxval = 0xFFFF; in pam_encode_frame()
87 maxval = 0xFFFF; in pam_encode_frame()
[all …]
Daacenc_utils.h66 int size, int is_signed, int maxval, const float Q34, in quantize_bands() argument
72 int tmp = (int)FFMIN(qc + rounding, (float)maxval); in quantize_bands()
82 float maxval = 0.0f; in find_max_val() local
86 maxval = FFMAX(maxval, scaled[w2*128+i]); in find_max_val()
89 return maxval; in find_max_val()
92 static inline int find_min_book(float maxval, int sf) in find_min_book() argument
96 qmaxval = maxval * Q34 + C_QUANT; in find_min_book()
112 float e = 0.0f, e2 = 0.0f, var = 0.0f, maxval = 0.0f; in find_form_factor() local
116 maxval = FFMAX(maxval, s); in find_form_factor()
144 frm = e / FFMIN(e+4*var,maxval); in find_form_factor()
Djpeglsdec.c64 s->maxval = get_bits(&s->gb, 16); in ff_jpegls_decode_lse()
72 s->maxval, s->t1, s->t2, s->t3, s->reset); in ff_jpegls_decode_lse()
92 if (!s->maxval) in ff_jpegls_decode_lse()
94 else if ((5 + wt*(s->maxval+1)) < 65535) in ff_jpegls_decode_lse()
95 maxtab = s->maxval; in ff_jpegls_decode_lse()
322 pred = av_clip(pred - state->C[context], 0, state->maxval); in ls_decode_line()
325 pred = av_clip(pred + state->C[context], 0, state->maxval); in ls_decode_line()
335 else if (pred > state->maxval + state->near) in ls_decode_line()
337 pred = av_clip(pred, 0, state->maxval); in ls_decode_line()
340 pred &= state->maxval; in ls_decode_line()
[all …]
Djpeglsenc.c192 Ra = av_clip(pred + err * state->twonear, 0, state->maxval); in ls_encode_line()
194 Ra = av_clip(pred - err * state->twonear, 0, state->maxval); in ls_encode_line()
220 pred = av_clip(pred - state->C[context], 0, state->maxval); in ls_encode_line()
224 pred = av_clip(pred + state->C[context], 0, state->maxval); in ls_encode_line()
234 Ra = av_clip(pred + err * state->twonear, 0, state->maxval); in ls_encode_line()
236 Ra = av_clip(pred - err * state->twonear, 0, state->maxval); in ls_encode_line()
264 bytestream2_put_be16u(pb, state->maxval); in ls_store_lse()
Daacenc_is.c58 float maxval, dist_spec_err = 0.0f; in ff_aac_is_encoding_err() local
65 maxval = find_max_val(1, sce0->ics.swb_sizes[g], I34); in ff_aac_is_encoding_err()
66 is_band_type = find_min_book(maxval, is_sf_idx); in ff_aac_is_encoding_err()
/third_party/skia/third_party/externals/libpng/contrib/pngminus/
Dpnm2png.c183 png_uint_32 maxval; in pnm2png() local
234 maxval = (png_uint_32) ul_maxval; in pnm2png()
236 if (maxval <= 1) in pnm2png()
238 else if (maxval <= 3) in pnm2png()
240 else if (maxval <= 15) in pnm2png()
242 else if (maxval <= 255) in pnm2png()
244 else if (maxval <= 65535U) in pnm2png()
261 maxval = (png_uint_32) ul_maxval; in pnm2png()
262 if (maxval <= 1) in pnm2png()
264 else if (maxval <= 3) in pnm2png()
[all …]
/third_party/cups-filters/cupsfilters/
Dimage-pnm.c49 maxval; /* Maximum pixel value */ in _cupsImageReadPNM() local
108 maxval = 0; in _cupsImageReadPNM()
110 while (lineptr != NULL && maxval == 0) in _cupsImageReadPNM()
116 maxval = atoi(lineptr); in _cupsImageReadPNM()
125 maxval = 1; in _cupsImageReadPNM()
136 if (maxval == 0) in _cupsImageReadPNM()
138 fprintf(stderr, "DEBUG: Bad PNM max value %d!\n", maxval); in _cupsImageReadPNM()
184 *inptr = 255 * val / maxval; in _cupsImageReadPNM()
191 inptr[0] = 255 * val / maxval; in _cupsImageReadPNM()
193 inptr[1] = 255 * val / maxval; in _cupsImageReadPNM()
[all …]
Dlut.c105 maxval; /* Maximum value */ in cupsLutNew() local
130 maxval = CUPS_MAX_LUT / values[num_values - 1]; in cupsLutNew()
133 lut[start].intensity = start * maxval / CUPS_MAX_LUT; in cupsLutNew()
144 start = (int)(0.5 * maxval * (values[pixel - 1] + in cupsLutNew()
155 end = (int)(0.5 * maxval * (values[pixel] + values[pixel + 1])); in cupsLutNew()
175 lut[start].error = start - maxval * values[pixel]; in cupsLutNew()
/third_party/skia/third_party/externals/libpng/contrib/gregbook/
Dreadppm.c84 int maxval; in readpng_init() local
114 sscanf(ppmline, "%d", &maxval); in readpng_init()
115 if (maxval != 255) { in readpng_init()
116 fprintf(stderr, "ERROR: maxval = %d\n", maxval); in readpng_init()
/third_party/python/Modules/
Daudioop.c21 fbound(double val, double minval, double maxval) in fbound() argument
23 if (val > maxval) { in fbound()
24 val = maxval; in fbound()
938 double maxval, minval; in audioop_mul_impl() local
944 maxval = (double) maxvals[width]; in audioop_mul_impl()
954 int ival = fbound(val * factor, minval, maxval); in audioop_mul_impl()
979 double maxval, minval; in audioop_tomono_impl() local
992 maxval = (double) maxvals[width]; in audioop_tomono_impl()
1004 int ival = fbound(val, minval, maxval); in audioop_tomono_impl()
1029 double maxval, minval; in audioop_tostereo_impl() local
[all …]
/third_party/libsnd/src/
Ddwd.c119 uint16_t srate, maxval ; member
140 psf_binheader_readf (psf, "e24", &dwdh.maxval, &dwdh.datalen) ; in dwd_read_header()
181 psf_log_printf (psf, " Max Value : %d\n", dwdh.maxval) ; in dwd_read_header()
/third_party/ffmpeg/libavfilter/
Dvf_lut.c166 double maxval = s->var_values[VAR_MAXVAL]; in clip() local
168 return av_clip(val, minval, maxval); in clip()
180 double maxval = s->var_values[VAR_MAXVAL]; in compute_gammaval() local
182 return pow((val-minval)/(maxval-minval), gamma) * (maxval-minval)+minval; in compute_gammaval()
193 double maxval = s->var_values[VAR_MAXVAL]; in compute_gammaval709() local
194 double level = (val - minval) / (maxval - minval); in compute_gammaval709()
197 return level * (maxval - minval) + minval; in compute_gammaval709()
/third_party/alsa-lib/src/control/
Dtlv.c416 long minval, maxval; member
437 rec->maxval = snd_ctl_elem_info_get_max(&info); in get_tlv_info()
464 return snd_tlv_get_dB_range(info.tlv, info.minval, info.maxval, in snd_ctl_get_dB_range()
485 return snd_tlv_convert_to_dB(info.tlv, info.minval, info.maxval, in snd_ctl_convert_to_dB()
508 return snd_tlv_convert_from_dB(info.tlv, info.minval, info.maxval, in snd_ctl_convert_from_dB()
/third_party/ffmpeg/libavfilter/x86/
Dcolorspacedsp.asm74 %assign %%maxval (1 << %2) - 1
230 CLIPW m6, m11, [pw_ %+ %%maxval]
231 CLIPW m8, m11, [pw_ %+ %%maxval]
259 CLIPW m6, m11, [pw_ %+ %%maxval]
260 CLIPW m8, m11, [pw_ %+ %%maxval]
/third_party/spirv-tools/source/opt/
Dgraphics_robust_access_pass.cpp315 uint64_t maxval = count - 1; in ClampIndicesForAccessChain() local
320 while ((maxval_width < 64) && (0 != (maxval >> maxval_width))) { in ClampIndicesForAccessChain()
333 maxval = std::min(maxval, ((uint64_t(1) << (maxval_width - 1)) - 1)); in ClampIndicesForAccessChain()
361 } else if (uint64_t(value) <= maxval) { in ClampIndicesForAccessChain()
368 GetValueForType(maxval, maxval_type)); in ClampIndicesForAccessChain()
372 assert(maxval >= 1); in ClampIndicesForAccessChain()
402 GetValueForType(maxval, maxval_type)); in ClampIndicesForAccessChain()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dgraphics_robust_access_pass.cpp315 uint64_t maxval = count - 1; in ClampIndicesForAccessChain() local
320 while ((maxval_width < 64) && (0 != (maxval >> maxval_width))) { in ClampIndicesForAccessChain()
333 maxval = std::min(maxval, ((uint64_t(1) << (maxval_width - 1)) - 1)); in ClampIndicesForAccessChain()
361 } else if (uint64_t(value) <= maxval) { in ClampIndicesForAccessChain()
368 GetValueForType(maxval, maxval_type)); in ClampIndicesForAccessChain()
372 assert(maxval >= 1); in ClampIndicesForAccessChain()
402 GetValueForType(maxval, maxval_type)); in ClampIndicesForAccessChain()
/third_party/ffmpeg/libswresample/
Drematrix.c121 double lfe_mix_level, double maxval, in swr_build_matrix() argument
337 if(maxcoef > maxval || rematrix_volume < 0){ in swr_build_matrix()
338 maxcoef /= maxval; in swr_build_matrix()
368 double maxval; in auto_matrix() local
372 maxval = s->rematrix_maxval; in auto_matrix()
375 maxval = 1.0; in auto_matrix()
377 maxval = INT_MAX; in auto_matrix()
382 maxval, s->rematrix_volume, (double*)s->matrix, in auto_matrix()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dgraphics_robust_access_pass.cpp315 uint64_t maxval = count - 1; in ClampIndicesForAccessChain() local
320 while ((maxval_width < 64) && (0 != (maxval >> maxval_width))) { in ClampIndicesForAccessChain()
333 maxval = std::min(maxval, ((uint64_t(1) << (maxval_width - 1)) - 1)); in ClampIndicesForAccessChain()
361 } else if (uint64_t(value) <= maxval) { in ClampIndicesForAccessChain()
368 GetValueForType(maxval, maxval_type)); in ClampIndicesForAccessChain()
372 assert(maxval >= 1); in ClampIndicesForAccessChain()
402 GetValueForType(maxval, maxval_type)); in ClampIndicesForAccessChain()
/third_party/skia/third_party/externals/freetype/src/base/
Dftcalc.c754 FT_Fixed nonzero_minval, maxval; in FT_Matrix_Check() local
775 maxval = 0; in FT_Matrix_Check()
780 if ( val[i] > maxval ) in FT_Matrix_Check()
781 maxval = val[i]; in FT_Matrix_Check()
787 if ( maxval > 0x7FFFFFFFL ) in FT_Matrix_Check()
790 if ( maxval > 23170 ) in FT_Matrix_Check()
792 FT_Fixed scale = FT_DivFix( maxval, 23170 ); in FT_Matrix_Check()

123