/third_party/ffmpeg/libavfilter/ |
D | af_asupercut.c | 45 BiquadCoeffs coeffs[10]; member 80 BiquadCoeffs *coeffs = &s->coeffs[0]; in get_coeffs() local 83 coeffs->b0 = 2. / (2. + omega); in get_coeffs() 84 coeffs->b1 = -coeffs->b0; in get_coeffs() 85 coeffs->b2 = 0.; in get_coeffs() 86 coeffs->a1 = -(omega - 2.) / (2. + omega); in get_coeffs() 87 coeffs->a2 = 0.; in get_coeffs() 91 BiquadCoeffs *coeffs = &s->coeffs[b]; in get_coeffs() local 95 coeffs->b0 = norm; in get_coeffs() 96 coeffs->b1 = -2.0 * coeffs->b0; in get_coeffs() [all …]
|
D | af_adynamicsmooth.c | 31 AVFrame *coeffs; member 39 s->coeffs = ff_get_audio_buffer(inlink, 3); in config_input() 40 if (!s->coeffs) in config_input() 69 double *coeffs = (double *)s->coeffs->extended_data[ch]; in filter_frame() local 70 double low1 = coeffs[0]; in filter_frame() 71 double low2 = coeffs[1]; in filter_frame() 72 double inz = coeffs[2]; in filter_frame() 87 coeffs[0] = low1; in filter_frame() 88 coeffs[1] = low2; in filter_frame() 89 coeffs[2] = inz; in filter_frame() [all …]
|
D | af_anlms.c | 52 AVFrame *coeffs; member 99 float *coeffs, float *tmp, int *offset) in fir_sample() argument 106 memcpy(tmp, coeffs + order - *offset, order * sizeof(float)); in fir_sample() 117 float *delay, float *coeffs, float *tmp, int *offsetp) in process_sample() argument 128 output = fir_sample(s, input, delay, coeffs, tmp, offsetp); in process_sample() 140 s->fdsp->vector_fmul_scalar(coeffs, coeffs, a, s->kernel_size); in process_sample() 142 s->fdsp->vector_fmac_scalar(coeffs, tmp, b, s->kernel_size); in process_sample() 144 memcpy(coeffs + order, coeffs, order * sizeof(float)); in process_sample() 166 float *coeffs = (float *)s->coeffs->extended_data[c]; in process_channels() local 172 output[n] = process_sample(s, input[n], desired[n], delay, coeffs, tmp, offset); in process_channels() [all …]
|
D | af_atilt.c | 43 Coeffs coeffs[MAX_ORDER]; member 75 static void set_tf1s(Coeffs *coeffs, double b1, double b0, double a0, in set_tf1s() argument 81 coeffs->b1 = (b0 - b1 * c) / d; in set_tf1s() 82 coeffs->b0 = (b0 + b1 * c) / d; in set_tf1s() 83 coeffs->a1 = (a0 - c) / d; in set_tf1s() 84 coeffs->g = a0 / b0; in set_tf1s() 99 Coeffs *coeffs = &s->coeffs[i]; in set_filter() local 101 set_tf1s(coeffs, 1.0, mzh(i, T, w0, r, alpha), mph(i, T, w0, r), in set_filter() 137 Coeffs *coeffs = &s->coeffs[b]; \ 138 const type g = coeffs->g; \ [all …]
|
D | colorspace.c | 79 void ff_fill_rgb2xyz_table(const AVPrimaryCoefficients *coeffs, in ff_fill_rgb2xyz_table() argument 84 double xr = av_q2d(coeffs->r.x), yr = av_q2d(coeffs->r.y); in ff_fill_rgb2xyz_table() 85 double xg = av_q2d(coeffs->g.x), yg = av_q2d(coeffs->g.y); in ff_fill_rgb2xyz_table() 86 double xb = av_q2d(coeffs->b.x), yb = av_q2d(coeffs->b.y); in ff_fill_rgb2xyz_table() 125 void ff_fill_rgb2yuv_table(const AVLumaCoefficients *coeffs, in ff_fill_rgb2yuv_table() argument 129 double cr = av_q2d(coeffs->cr), cg = av_q2d(coeffs->cg), cb = av_q2d(coeffs->cb); in ff_fill_rgb2yuv_table()
|
D | vf_scale_cuda_bicubic.cu | 63 __device__ inline void derived_fast_coeffs(float4 coeffs, float x, float *h0, float *h1, float *s) in derived_fast_coeffs() argument 65 float g0 = coeffs.x + coeffs.y; in derived_fast_coeffs() 66 float g1 = coeffs.z + coeffs.w; in derived_fast_coeffs() 68 *h0 = coeffs.y / g0 - 0.5f; in derived_fast_coeffs() 69 *h1 = coeffs.w / g1 + 1.5f; in derived_fast_coeffs() 74 __device__ inline V apply_coeffs(float4 coeffs, V c0, V c1, V c2, V c3) in apply_coeffs() argument 76 V res = c0 * coeffs.x; in apply_coeffs() 77 res += c1 * coeffs.y; in apply_coeffs() 78 res += c2 * coeffs.z; in apply_coeffs() 79 res += c3 * coeffs.w; in apply_coeffs()
|
/third_party/skia/src/core/ |
D | SkColorSpacePriv.h | 68 static inline bool is_almost_srgb(const skcms_TransferFunction& coeffs) { in is_almost_srgb() argument 69 return transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.a, coeffs.a) && in is_almost_srgb() 70 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.b, coeffs.b) && in is_almost_srgb() 71 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.c, coeffs.c) && in is_almost_srgb() 72 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.d, coeffs.d) && in is_almost_srgb() 73 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.e, coeffs.e) && in is_almost_srgb() 74 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.f, coeffs.f) && in is_almost_srgb() 75 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.g, coeffs.g); in is_almost_srgb() 78 static inline bool is_almost_2dot2(const skcms_TransferFunction& coeffs) { in is_almost_2dot2() argument 79 return transfer_fn_almost_equal(1.0f, coeffs.a) && in is_almost_2dot2() [all …]
|
/third_party/ffmpeg/libavcodec/aarch64/ |
D | hevcdsp_init_aarch64.c | 28 void ff_hevc_add_residual_4x4_8_neon(uint8_t *_dst, int16_t *coeffs, 30 void ff_hevc_add_residual_4x4_10_neon(uint8_t *_dst, int16_t *coeffs, 32 void ff_hevc_add_residual_8x8_8_neon(uint8_t *_dst, int16_t *coeffs, 34 void ff_hevc_add_residual_8x8_10_neon(uint8_t *_dst, int16_t *coeffs, 36 void ff_hevc_add_residual_16x16_8_neon(uint8_t *_dst, int16_t *coeffs, 38 void ff_hevc_add_residual_16x16_10_neon(uint8_t *_dst, int16_t *coeffs, 40 void ff_hevc_add_residual_32x32_8_neon(uint8_t *_dst, int16_t *coeffs, 42 void ff_hevc_add_residual_32x32_10_neon(uint8_t *_dst, int16_t *coeffs, 44 void ff_hevc_idct_8x8_8_neon(int16_t *coeffs, int col_limit); 45 void ff_hevc_idct_8x8_10_neon(int16_t *coeffs, int col_limit); [all …]
|
/third_party/ffmpeg/libavcodec/mips/ |
D | hevc_idct_msa.c | 308 static void hevc_idct_4x4_msa(int16_t *coeffs) in hevc_idct_4x4_msa() argument 315 LD_SH2(coeffs, 8, in0, in1); in hevc_idct_4x4_msa() 328 ST_SH2(in0, in1, coeffs, 8); in hevc_idct_4x4_msa() 331 static void hevc_idct_8x8_msa(int16_t *coeffs) in hevc_idct_8x8_msa() argument 336 LD_SH8(coeffs, 8, in0, in1, in2, in3, in4, in5, in6, in7); in hevc_idct_8x8_msa() 343 ST_SH8(in0, in1, in2, in3, in4, in5, in6, in7, coeffs, 8); in hevc_idct_8x8_msa() 346 static void hevc_idct_16x16_msa(int16_t *coeffs) in hevc_idct_16x16_msa() argument 351 int16_t *src = coeffs; in hevc_idct_16x16_msa() 381 buf_ptr = coeffs; in hevc_idct_16x16_msa() 404 buf_ptr = coeffs + 8; in hevc_idct_16x16_msa() [all …]
|
/third_party/ffmpeg/libavcodec/loongarch/ |
D | hevc_idct_lsx.c | 330 void ff_hevc_idct_4x4_lsx(int16_t *coeffs, int col_limit) in ff_hevc_idct_4x4_lsx() argument 337 in0 = __lsx_vld(coeffs, 0); in ff_hevc_idct_4x4_lsx() 338 in1 = __lsx_vld(coeffs, 16); in ff_hevc_idct_4x4_lsx() 356 __lsx_vst(in0, coeffs, 0); in ff_hevc_idct_4x4_lsx() 357 __lsx_vst(in1, coeffs, 16); in ff_hevc_idct_4x4_lsx() 360 void ff_hevc_idct_8x8_lsx(int16_t *coeffs, int col_limit) in ff_hevc_idct_8x8_lsx() argument 365 DUP4_ARG2(__lsx_vld, coeffs, 0, coeffs, 16, coeffs, 32, in ff_hevc_idct_8x8_lsx() 366 coeffs, 48, in0, in1, in2, in3); in ff_hevc_idct_8x8_lsx() 367 DUP4_ARG2(__lsx_vld, coeffs, 64, coeffs, 80, coeffs, 96, in ff_hevc_idct_8x8_lsx() 368 coeffs, 112, in4, in5, in6, in7); in ff_hevc_idct_8x8_lsx() [all …]
|
/third_party/openssl/test/ |
D | rsa_mp_test.c | 152 BIGNUM **pris = NULL, **exps = NULL, **coeffs = NULL; in key2048p3_v1() local 170 coeffs = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3_v1() 171 if (!TEST_ptr(pris) || !TEST_ptr(exps) || !TEST_ptr(coeffs)) in key2048p3_v1() 176 coeffs[0] = BN_bin2bn(ex_coefficient, sizeof(ex_coefficient) - 1, NULL); in key2048p3_v1() 177 if (!TEST_ptr(pris[0]) || !TEST_ptr(exps[0]) || !TEST_ptr(coeffs[0])) in key2048p3_v1() 181 coeffs, NUM_EXTRA_PRIMES))) in key2048p3_v1() 187 OPENSSL_free(coeffs); in key2048p3_v1() 194 if (coeffs != NULL) in key2048p3_v1() 195 BN_free(coeffs[0]); in key2048p3_v1() 202 STACK_OF(BIGNUM) *primes = NULL, *exps = NULL, *coeffs = NULL; in key2048p3_v2() [all …]
|
/third_party/ffmpeg/libavcodec/x86/ |
D | simple_idct.asm | 57 coeffs: label 97 movq mm4, [coeffs + 16] ; C4 C4 C4 C4 99 movq mm5, [coeffs + 24] ; -C4 C4 -C4 C4 101 movq mm5, [coeffs + 32] ; C6 C2 C6 C2 103 movq mm6, [coeffs + 40] ; -C2 C6 -C2 C6 105 movq mm7, [coeffs + 48] ; C3 C1 C3 C1 107 paddd mm4, [coeffs + 8] 111 movq mm5, [coeffs + 56] ; C7 C5 C7 C5 113 paddd mm0, [coeffs + 8] 117 pmaddwd mm2, [coeffs + 64] ; -C7R3+C3R1 -C7r3+C3r1 [all …]
|
/third_party/ffmpeg/libavcodec/arm/ |
D | hevcdsp_init_neon.c | 38 void ff_hevc_add_residual_4x4_8_neon(uint8_t *_dst, int16_t *coeffs, 40 void ff_hevc_add_residual_4x4_10_neon(uint8_t *_dst, int16_t *coeffs, 42 void ff_hevc_add_residual_8x8_8_neon(uint8_t *_dst, int16_t *coeffs, 44 void ff_hevc_add_residual_8x8_10_neon(uint8_t *_dst, int16_t *coeffs, 46 void ff_hevc_add_residual_16x16_8_neon(uint8_t *_dst, int16_t *coeffs, 48 void ff_hevc_add_residual_16x16_10_neon(uint8_t *_dst, int16_t *coeffs, 50 void ff_hevc_add_residual_32x32_8_neon(uint8_t *_dst, int16_t *coeffs, 52 void ff_hevc_add_residual_32x32_10_neon(uint8_t *_dst, int16_t *coeffs, 54 void ff_hevc_idct_4x4_dc_8_neon(int16_t *coeffs); 55 void ff_hevc_idct_8x8_dc_8_neon(int16_t *coeffs); [all …]
|
/third_party/ffmpeg/libavcodec/ppc/ |
D | hevcdsp_template.c | 21 static void FUNC(ff_hevc_idct_4x4, BIT_DEPTH)(int16_t *coeffs, int col_limit) in FUNC() 29 src_01 = vec_ld(0, coeffs); in FUNC() 30 src_23 = vec_ld(16, coeffs); in FUNC() 32 transform4x4(src_01, src_23, res, shift, coeffs); in FUNC() 40 transform4x4(src_01, src_23, res, shift2, coeffs); in FUNC() 46 vec_st(src_01, 0, coeffs); in FUNC() 47 vec_st(src_23, 16, coeffs); in FUNC()
|
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
D | cost_sse2.c | 25 static void SetResidualCoeffs_SSE2(const int16_t* const coeffs, in SetResidualCoeffs_SSE2() argument 27 const __m128i c0 = _mm_loadu_si128((const __m128i*)(coeffs + 0)); in SetResidualCoeffs_SSE2() 28 const __m128i c1 = _mm_loadu_si128((const __m128i*)(coeffs + 8)); in SetResidualCoeffs_SSE2() 40 assert(res->first == 0 || coeffs[0] == 0); in SetResidualCoeffs_SSE2() 42 res->coeffs = coeffs; in SetResidualCoeffs_SSE2() 66 const __m128i c0 = _mm_loadu_si128((const __m128i*)&res->coeffs[0]); in GetResidualCost_SSE2() 67 const __m128i c1 = _mm_loadu_si128((const __m128i*)&res->coeffs[8]); in GetResidualCost_SSE2()
|
D | cost.c | 337 const int v = abs(res->coeffs[n]); in GetResidualCost_C() 344 const int v = abs(res->coeffs[n]); in GetResidualCost_C() 357 static void SetResidualCoeffs_C(const int16_t* const coeffs, in SetResidualCoeffs_C() argument 361 assert(res->first == 0 || coeffs[0] == 0); in SetResidualCoeffs_C() 363 if (coeffs[n]) { in SetResidualCoeffs_C() 368 res->coeffs = coeffs; in SetResidualCoeffs_C()
|
D | cost_mips32.c | 30 const int16_t* res_coeffs = res->coeffs; in GetResidualCost_MIPS32() 86 const int v = abs(res->coeffs[n]); in GetResidualCost_MIPS32() 99 static void SetResidualCoeffs_MIPS32(const int16_t* const coeffs, in SetResidualCoeffs_MIPS32() argument 101 const int16_t* p_coeffs = (int16_t*)coeffs; in SetResidualCoeffs_MIPS32() 103 assert(res->first == 0 || coeffs[0] == 0); in SetResidualCoeffs_MIPS32() 137 res->coeffs = coeffs; in SetResidualCoeffs_MIPS32()
|
D | cost_neon.c | 22 static void SetResidualCoeffs_NEON(const int16_t* const coeffs, in SetResidualCoeffs_NEON() argument 25 const int16x8_t coeffs_0 = vld1q_s16(coeffs); in SetResidualCoeffs_NEON() 26 const int16x8_t coeffs_1 = vld1q_s16(coeffs + 8); in SetResidualCoeffs_NEON() 48 res->coeffs = coeffs; in SetResidualCoeffs_NEON() 71 const int16x8_t c0 = vld1q_s16(res->coeffs); in GetResidualCost_NEON() 72 const int16x8_t c1 = vld1q_s16(res->coeffs + 8); in GetResidualCost_NEON()
|
/third_party/skia/modules/skottie/src/effects/ |
D | BrightnessContrastEffect.cpp | 65 struct { float a, b, c; } coeffs; in make_contrast_coeffs() local 67 coeffs.b = SK_ScalarPI * contrast; in make_contrast_coeffs() 68 coeffs.a = -2 * coeffs.b / 3; in make_contrast_coeffs() 69 coeffs.c = 1 - coeffs.b / 3; in make_contrast_coeffs() 71 return SkData::MakeWithCopy(&coeffs, sizeof(coeffs)); in make_contrast_coeffs()
|
D | ShiftChannelsEffect.cpp | 92 auto coeffs = [](float src) { in onSync() local 99 const float* rc = coeffs(fR); in onSync() 100 const float* gc = coeffs(fG); in onSync() 101 const float* bc = coeffs(fB); in onSync() 102 const float* ac = coeffs(fA); in onSync()
|
/third_party/ffmpeg/libavcodec/ |
D | takdec.c | 199 static void decode_lpc(int32_t *coeffs, int mode, int length) in decode_lpc() argument 207 unsigned a1 = *coeffs++; in decode_lpc() 209 *coeffs += a1; in decode_lpc() 210 coeffs[1] += (unsigned)*coeffs; in decode_lpc() 211 a1 = coeffs[1]; in decode_lpc() 212 coeffs += 2; in decode_lpc() 215 *coeffs += a1; in decode_lpc() 217 unsigned a1 = coeffs[1]; in decode_lpc() 218 unsigned a2 = a1 + *coeffs; in decode_lpc() 219 coeffs[1] = a2; in decode_lpc() [all …]
|
D | binkaudio.c | 185 FFTSample *coeffs = out[ch + ch_offset]; in decode_block() local 190 coeffs[0] = av_int2float(get_bits_long(gb, 32)) * s->root; in decode_block() 191 coeffs[1] = av_int2float(get_bits_long(gb, 32)) * s->root; in decode_block() 195 coeffs[0] = get_float(gb) * s->root; in decode_block() 196 coeffs[1] = get_float(gb) * s->root; in decode_block() 228 memset(coeffs + i, 0, (j - i) * sizeof(*coeffs)); in decode_block() 241 coeffs[i] = -q * coeff; in decode_block() 243 coeffs[i] = q * coeff; in decode_block() 245 coeffs[i] = 0.0f; in decode_block() 253 coeffs[0] /= 0.5; in decode_block() [all …]
|
D | flacdsp.c | 47 static void flac_lpc_16_c(int32_t *decoded, const int coeffs[32], in flac_lpc_16_c() 53 SUINT c = coeffs[0]; in flac_lpc_16_c() 60 c = coeffs[j]; in flac_lpc_16_c() 70 sum += coeffs[j] * (SUINT)decoded[j]; in flac_lpc_16_c() 75 static void flac_lpc_32_c(int32_t *decoded, const int coeffs[32], in flac_lpc_32_c() 83 sum += (int64_t)coeffs[j] * decoded[j]; in flac_lpc_32_c()
|
D | wmavoice.c | 608 int fcb_type, float *coeffs, int remainder) in calc_input_response() argument 650 coeffs[n] = wmavoice_energy_table[127] * in calc_input_response() 653 coeffs[n] = wmavoice_energy_table[FFMAX(0, idx)]; in calc_input_response() 665 coeffs[0] = coeffs[0] * s->cos[idx]; in calc_input_response() 667 last_coeff = coeffs[64] * s->cos[idx]; in calc_input_response() 670 coeffs[n * 2 + 1] = coeffs[n] * s->sin[idx]; in calc_input_response() 671 coeffs[n * 2] = coeffs[n] * s->cos[idx]; in calc_input_response() 676 coeffs[n * 2 + 1] = coeffs[n] * s->sin[idx]; in calc_input_response() 677 coeffs[n * 2] = coeffs[n] * s->cos[idx]; in calc_input_response() 679 coeffs[1] = last_coeff; in calc_input_response() [all …]
|
D | mv30.c | 53 int16_t *coeffs; member 378 static int decode_coeffs(GetBitContext *gb, int16_t *coeffs, int nb_codes) in decode_coeffs() argument 380 memset(coeffs, 0, nb_codes * sizeof(*coeffs)); in decode_coeffs() 393 coeffs[i++] = x; in decode_coeffs() 430 av_fast_padded_malloc(&s->coeffs, &s->coeffs_size, nb_codes * sizeof(*s->coeffs)); in decode_intra() 431 if (!s->coeffs) in decode_intra() 433 ret = decode_coeffs(gb, s->coeffs, nb_codes); in decode_intra() 437 bytestream2_init(&gbyte, (uint8_t *)s->coeffs, nb_codes * sizeof(*s->coeffs)); in decode_intra() 519 av_fast_padded_malloc(&s->coeffs, &s->coeffs_size, nb_codes * sizeof(*s->coeffs)); in decode_inter() 520 if (!s->coeffs) { in decode_inter() [all …]
|