/third_party/ffmpeg/tests/checkasm/ |
H A D | vf_colorspace.c | 58 int w, int h, const int16_t coeff[3][3][8], in check_yuv2yuv() 76 int16_t (*coeff)[3][8] = (int16_t(*)[3][8]) coeff_buf; in check_yuv2yuv() 82 coeff[0][0][n] = (1 << 14) + (1 << 7) + 1; in check_yuv2yuv() 83 coeff[0][1][n] = (1 << 7) - 1; in check_yuv2yuv() 84 coeff[0][2][n] = -(1 << 8); in check_yuv2yuv() 85 coeff[1][0][n] = coeff[2][0][n] = 0; in check_yuv2yuv() 86 coeff[1][1][n] = (1 << 14) + (1 << 7); in check_yuv2yuv() 87 coeff[1][2][n] = -(1 << 7); in check_yuv2yuv() 88 coeff[ in check_yuv2yuv() [all...] |
/third_party/skia/src/gpu/ |
H A D | GrBlend.h | 77 static constexpr bool GrBlendCoeffRefsSrc(const GrBlendCoeff coeff) { in GrBlendCoeffRefsSrc() argument 78 return kSC_GrBlendCoeff == coeff || kISC_GrBlendCoeff == coeff || kSA_GrBlendCoeff == coeff || in GrBlendCoeffRefsSrc() 79 kISA_GrBlendCoeff == coeff; in GrBlendCoeffRefsSrc() 82 static constexpr bool GrBlendCoeffRefsDst(const GrBlendCoeff coeff) { in GrBlendCoeffRefsDst() argument 83 return kDC_GrBlendCoeff == coeff || kIDC_GrBlendCoeff == coeff || kDA_GrBlendCoeff == coeff || in GrBlendCoeffRefsDst() 84 kIDA_GrBlendCoeff == coeff; in GrBlendCoeffRefsDst() 87 GrBlendCoeffRefsSrc2(const GrBlendCoeff coeff) GrBlendCoeffRefsSrc2() argument 113 GrBlendCoeffRefsConstant(const GrBlendCoeff coeff) GrBlendCoeffRefsConstant() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dcadsp.c | 36 const int8_t *coeff = hf_vq[vq_index[i]]; in decode_hf_c() local 39 dst[i][j + ofs] = clip23(coeff[j] * scale + (1 << 3) >> 4); in decode_hf_c() 298 static void decor_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len) in decor_c() argument 303 dst[i] += (SUINT)((int)(src[i] * (SUINT)coeff + (1 << 2)) >> 3); in decor_c() 318 static void dmix_sub_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len) in dmix_sub_c() argument 323 dst[i] -= (unsigned)mul15(src[i], coeff); in dmix_sub_c() 326 static void dmix_add_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len) in dmix_add_c() argument 331 dst[i] += (unsigned)mul15(src[i], coeff); in dmix_add_c() 350 static void filter0(SUINT32 *dst, const int32_t *src, int32_t coeff, ptrdiff_t len) in filter0() argument 355 dst[i] -= mul22(src[i], coeff); in filter0() 358 filter1(SUINT32 *dst, const int32_t *src, int32_t coeff, ptrdiff_t len) filter1() argument 366 assemble_freq_bands_c(int32_t *dst, int32_t *src0, int32_t *src1, const int32_t *coeff, ptrdiff_t len) assemble_freq_bands_c() argument 388 lbr_bank_c(float output[32][4], float **input, const float *coeff, ptrdiff_t ofs, ptrdiff_t len) lbr_bank_c() argument [all...] |
H A D | rtjpeg.c | 26 i = scan[coeff--]; \ 48 int coeff, i, n; in get_block() local 57 coeff = get_bits(gb, 6); in get_block() 58 if (get_bits_left(gb) < (coeff << 1)) in get_block() 61 // normally we would only need to clear the (63 - coeff) last values, in get_block() 66 while (coeff) { in get_block() 75 if (get_bits_left(gb) < (coeff << 2)) in get_block() 77 while (coeff) { in get_block() 86 if (get_bits_left(gb) < (coeff << 3)) in get_block() 88 while (coeff) { in get_block() [all...] |
H A D | adx.c | 26 void ff_adx_calculate_coeffs(int cutoff, int sample_rate, int bits, int *coeff) in ff_adx_calculate_coeffs() argument 34 coeff[0] = lrintf(c * 2.0 * (1 << bits)); in ff_adx_calculate_coeffs() 35 coeff[1] = lrintf(-(c * c) * (1 << bits)); in ff_adx_calculate_coeffs() 39 int bufsize, int *header_size, int *coeff) in ff_adx_decode_header() 81 if (coeff) { in ff_adx_decode_header() 83 ff_adx_calculate_coeffs(cutoff, avctx->sample_rate, COEFF_BITS, coeff); in ff_adx_decode_header() 38 ff_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf, int bufsize, int *header_size, int *coeff) ff_adx_decode_header() argument
|
H A D | opusdsp.c | 46 static float deemphasis_c(float *y, float *x, float coeff, int len) in deemphasis_c() argument 49 coeff = y[i] = x[i] + coeff*CELT_EMPH_COEFF; in deemphasis_c() 51 return coeff; in deemphasis_c()
|
H A D | adxenc.c | 52 d = s0 + ((-c->coeff[0] * s1 - c->coeff[1] * s2) >> COEFF_BITS); in adx_encode() 83 d = wav[i] + ((-c->coeff[0] * s1 - c->coeff[1] * s2) >> COEFF_BITS); in adx_encode() 89 s0 = d * scale + ((c->coeff[0] * s1 + c->coeff[1] * s2) >> COEFF_BITS); in adx_encode() 136 ff_adx_calculate_coeffs(c->cutoff, avctx->sample_rate, COEFF_BITS, c->coeff); in adx_encode_init()
|
H A D | dcadsp.h | 72 void (*decor)(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len); 77 void (*dmix_sub)(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len); 79 void (*dmix_add)(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len); 86 const int32_t *coeff, ptrdiff_t len); 89 const float *coeff, ptrdiff_t ofs, ptrdiff_t len);
|
H A D | adx.h | 48 int coeff[2]; member 62 * @param[out] coeff 2 quantized LPC coefficients 64 void ff_adx_calculate_coeffs(int cutoff, int sample_rate, int bits, int *coeff); 74 * @param[out] coeff 2 LPC coefficients, can be NULL 78 int bufsize, int *header_size, int *coeff);
|
H A D | vp6.c | 413 int coeff, sign, coeff_idx; in vp6_parse_coeff_huffman() local 431 coeff = get_vlc2(&s->gb, vlc_coeff->table, FF_HUFFMAN_BITS, 3); in vp6_parse_coeff_huffman() 432 if (coeff == 0) { in vp6_parse_coeff_huffman() 441 } else if (coeff == 11) { /* end of block */ in vp6_parse_coeff_huffman() 442 if (coeff_idx == 1) /* first AC coeff ? */ in vp6_parse_coeff_huffman() 446 int coeff2 = ff_vp56_coeff_bias[coeff]; in vp6_parse_coeff_huffman() 447 if (coeff > 4) in vp6_parse_coeff_huffman() 448 coeff2 += get_bits(&s->gb, coeff <= 9 ? coeff - 4 : 11); in vp6_parse_coeff_huffman() 475 int coeff, sig in vp6_parse_coeff() local [all...] |
H A D | adxdec.c | 46 c->coeff)) < 0) { in adx_decode_init() 85 s0 = d * scale + ((c->coeff[0] * s1 + c->coeff[1] * s2) >> COEFF_BITS); in adx_decode() 115 c->coeff)) < 0) { in adx_decode_frame() 131 c->coeff)) < 0) { in adx_decode_frame()
|
/third_party/python/Modules/_decimal/tests/ |
H A D | bignum.py | 20 def xhash(coeff, exp): 22 if coeff < 0: 24 coeff = -coeff 29 hash_ = coeff * exp_hash % _PyHASH_MODULUS 35 coeff = int(x) variable 39 h1 = xhash(coeff, -849999999)
|
H A D | randdec.py | 134 coeff = ndigits(maxprec) 136 coeff = () 139 coeff = tuple(map(int, str(ndigits(maxprec)))) 142 coeff = tuple(map(int, str(ndigits(maxprec)))) 144 return (sign, coeff, exp) 146 def from_triple(sign, coeff, exp): 147 return ''.join((str(sign*coeff), indicator(), str(exp))) 158 for coeff in nines: 159 yield coeff 160 yield -coeff [all...] |
/third_party/skia/src/pathops/ |
H A D | SkPathOpsConic.cpp | 17 double coeff[3]) { in conic_deriv_coeff() 21 coeff[0] = w * P20 - P20; in conic_deriv_coeff() 22 coeff[1] = P20 - 2 * wP10; in conic_deriv_coeff() 23 coeff[2] = wP10; in conic_deriv_coeff() 27 double coeff[3]; in conic_eval_tan() local 28 conic_deriv_coeff(coord, w, coeff); in conic_eval_tan() 29 return t * (t * coeff[0] + coeff[1]) + coeff[2]; in conic_eval_tan() 33 double coeff[ in FindExtrema() local 15 conic_deriv_coeff(const double src[], SkScalar w, double coeff[3]) conic_deriv_coeff() argument [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | lls.c | 75 sum -= factor[i][k] * m->coeff[0][k]; in avpriv_solve_lls() 77 m->coeff[0][i] = sum / factor[i][i]; in avpriv_solve_lls() 82 double sum = m->coeff[0][i]; in avpriv_solve_lls() 85 sum -= factor[k][i] * m->coeff[j][k]; in avpriv_solve_lls() 87 m->coeff[j][i] = sum / factor[i][i]; in avpriv_solve_lls() 93 double sum = m->coeff[j][i] * covar[i][i] - 2 * covar_y[i + 1]; in avpriv_solve_lls() 96 sum += 2 * m->coeff[j][k] * covar[k][i]; in avpriv_solve_lls() 98 m->variance[j] += m->coeff[j][i] * sum; in avpriv_solve_lls() 109 out += param[i] * m->coeff[order][i]; in evaluate_lls()
|
/third_party/ffmpeg/libswscale/arm/ |
H A D | rgb2yuv_neon_32.S | 64 .macro compute_y_16x1_step action, s8x16, coeff 68 \action y32x16_el, \s8x16\()_l, \coeff 69 \action y32x16_eh, \s8x16\()_h, \coeff 70 \action y32x16_ol, n16x16_ol, \coeff 71 \action y32x16_oh, n16x16_oh, \coeff 99 .macro compute_chroma_8x1_step action, s16x8, coeff 100 \action c32x8_l, \s16x8\()_l, \coeff 101 \action c32x8_h, \s16x8\()_h, \coeff
|
/third_party/skia/tests/ |
H A D | CubicMapTest.cpp | 26 SkCubicCoeff coeff(array); in accurate_solve() 28 float t = accurate_t(coeff.fA[0], coeff.fB[0], coeff.fC[0], coeff.fD[0] - x); in accurate_solve() 30 float y = coeff.eval(t)[1]; in accurate_solve()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_perspective.c | 44 int32_t coeff[SUB_PIXELS][4]; member 106 double coeff, A = -0.60; in get_coeff() local 111 coeff = (1.0 - (A + 3.0) * d * d + (A + 2.0) * d * d * d); in get_coeff() 113 coeff = (-4.0 * A + 8.0 * A * d - 5.0 * A * d * d + A * d * d * d); in get_coeff() 115 coeff = 0.0; in get_coeff() 117 return coeff; in get_coeff() 259 s->coeff[i][j] = lrint((1 << COEFF_BITS) * temp[j] / sum); in config_input() 307 const int a = s->coeff[subU][0]; in resample_cubic() 308 const int b = s->coeff[subU][1]; in resample_cubic() 309 const int c = s->coeff[sub in resample_cubic() [all...] |
H A D | af_acrusher.c | 60 double coeff; member 126 const double coeff = s->coeff; in bitreduction() local 155 y = in * coeff; in bitreduction() 158 k /= coeff; in bitreduction() 160 k = k / coeff + ((k + 1) / coeff - k / coeff) * in bitreduction() 163 k = k / coeff - (k / coeff in bitreduction() [all...] |
H A D | vf_colorlevels.c | 96 float coeff[4]; member 129 const float coeff_r = td->coeff[R]; \ 130 const float coeff_g = td->coeff[G]; \ 131 const float coeff_b = td->coeff[B]; \ 132 const float coeff_a = td->coeff[A]; \ 411 float coeff; in filter_frame() local 435 coeff = (omax - omin) / (double)(imax - imin); in filter_frame() 437 td.coeff[i] = coeff; in filter_frame() 451 float coeff; in filter_frame() local [all...] |
/third_party/ffmpeg/libswscale/ |
H A D | utils.c | 429 int64_t coeff = fone - FFABS((int64_t)xx * (1 << 16) - xDstInSrc) * (fone >> 16); in initFilter() local 430 if (coeff < 0) in initFilter() 431 coeff = 0; in initFilter() 432 filter[i * filterSize + j] = coeff; in initFilter() 469 int64_t coeff; in initFilter() local 480 coeff = 0.0; in initFilter() 486 coeff = (12 * (1 << 24) - 9 * B - 6 * C) * ddd + in initFilter() 490 coeff = (-B - 6 * C) * ddd + in initFilter() 495 coeff /= (1LL<<54)/fone; in initFilter() 508 coeff in initFilter() [all...] |
/third_party/skia/src/core/ |
H A D | SkGeometry.cpp | 376 SkQuadCoeff coeff; 382 coeff.fA = P3 + Sk2s(3) * (P1 - P2) - P0; 383 coeff.fB = times_2(P2 - times_2(P1) + P0); 384 coeff.fC = P1 - P0; 385 return to_vector(coeff.eval(t)); 940 /* Solve coeff(t) == 0, returning the number of roots that 942 coeff[0]t^3 + coeff[1]t^2 + coeff[2]t + coeff[ [all...] |
/third_party/ffmpeg/libavutil/tests/ |
H A D | lls.c | 50 m.coeff[order][0], m.coeff[order][1], in main() 51 m.coeff[order][2]); in main()
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_mpeg12_bitstream.c | 52 struct dct_coeff coeff; member 549 struct dct_coeff coeff = src->coeff; in init_dct_coeff_table() local 552 switch (coeff.run) { in init_dct_coeff_table() 568 coeff.length += 1; in init_dct_coeff_table() 569 coeff.run = 1; in init_dct_coeff_table() 576 coeff.length += 1; in init_dct_coeff_table() 577 coeff.run = 1; in init_dct_coeff_table() 581 coeff.length += 1; in init_dct_coeff_table() 582 coeff in init_dct_coeff_table() [all...] |
/third_party/ffmpeg/libavcodec/mips/ |
H A D | vc1dsp_mmi.c | 484 int16_t coeff[64] = {12, 16, 16, 15, 12, 9, 6, 4, in ff_vc1_inv_trans_8x4_mmi() local 503 MMI_LDC1(%[ftmp3], %[coeff], 0x00) in ff_vc1_inv_trans_8x4_mmi() 504 MMI_LDC1(%[ftmp4], %[coeff], 0x08) in ff_vc1_inv_trans_8x4_mmi() 505 MMI_LDC1(%[ftmp5], %[coeff], 0x10) in ff_vc1_inv_trans_8x4_mmi() 506 MMI_LDC1(%[ftmp6], %[coeff], 0x18) in ff_vc1_inv_trans_8x4_mmi() 519 MMI_LDC1(%[ftmp3], %[coeff], 0x20) in ff_vc1_inv_trans_8x4_mmi() 520 MMI_LDC1(%[ftmp4], %[coeff], 0x28) in ff_vc1_inv_trans_8x4_mmi() 521 MMI_LDC1(%[ftmp5], %[coeff], 0x30) in ff_vc1_inv_trans_8x4_mmi() 522 MMI_LDC1(%[ftmp6], %[coeff], 0x38) in ff_vc1_inv_trans_8x4_mmi() 535 MMI_LDC1(%[ftmp3], %[coeff], in ff_vc1_inv_trans_8x4_mmi() 950 int16_t coeff[16] = {17, 22, 17, 10, ff_vc1_inv_trans_4x8_mmi() local 1180 int16_t coeff[16] = {17, 22, 17, 10, ff_vc1_inv_trans_4x4_mmi() local [all...] |