Home
last modified time | relevance | path

Searched refs:coeffs (Results 1 - 25 of 160) sorted by relevance

1234567

/third_party/ffmpeg/libavfilter/
H A Daf_asupercut.c45 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 in get_coeffs() local
107 BiquadCoeffs *coeffs = &s->coeffs[0]; get_coeffs() local
118 BiquadCoeffs *coeffs = &s->coeffs[b]; get_coeffs() local
144 BiquadCoeffs *coeffs = &s->coeffs[b + j]; get_coeffs() local
178 BiquadCoeffs *coeffs = &s->coeffs[b + j]; get_coeffs() local
[all...]
H A Daf_adynamicsmooth.c31 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[ in filter_frame()
[all...]
H A Daf_anlms.c52 AVFrame *coeffs; member
99 float *coeffs, float *tmp, int *offset) in fir_sample()
106 memcpy(tmp, coeffs + order - *offset, order * sizeof(float)); in fir_sample()
117 float *delay, float *coeffs, float *tmp, int *offsetp) in process_sample()
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, orde in process_sample()
98 fir_sample(AudioNLMSContext *s, float sample, float *delay, float *coeffs, float *tmp, int *offset) fir_sample() argument
116 process_sample(AudioNLMSContext *s, float input, float desired, float *delay, float *coeffs, float *tmp, int *offsetp) process_sample() argument
166 float *coeffs = (float *)s->coeffs->extended_data[c]; process_channels() local
[all...]
H A Daf_atilt.c43 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
[all...]
H A Dcolorspace.c79 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 in ff_fill_rgb2yuv_table()
[all...]
H A Daf_aemphasis.c211 BiquadCoeffs coeffs; in config_input() local
311 coeffs.a0 = a0; in config_input()
312 coeffs.a1 = a1; in config_input()
313 coeffs.a2 = a2; in config_input()
314 coeffs.b1 = b1; in config_input()
315 coeffs.b2 = b2; in config_input()
317 // the coeffs above give non-normalized value, so it should be normalized to produce 0dB at 1 kHz in config_input()
320 gain1kHz = freq_gain(&coeffs, 1000.0, sr); in config_input()
323 s->rc.r1.a0 = coeffs.a0 * gc; in config_input()
324 s->rc.r1.a1 = coeffs in config_input()
[all...]
H A Dvf_nnedi.c83 PredictorCoefficients coeffs[2][5][7]; member
113 const PrescreenerCoefficients *const coeffs);
642 &s->coeffs[s->etype][s->nnsparam][s->nsize], s->qual == 2); in filter_slice()
757 static int allocate_model(PredictorCoefficients *coeffs, int xdim, int ydim, int nns) in allocate_model() argument
767 coeffs->data = data; in allocate_model()
768 coeffs->xdim = xdim; in allocate_model()
769 coeffs->ydim = ydim; in allocate_model()
770 coeffs->nsize = xdim * ydim; in allocate_model()
771 coeffs->nns = nns; in allocate_model()
773 coeffs in allocate_model()
873 subtract_mean_old(PrescreenerCoefficients *coeffs, float half) subtract_mean_old() argument
882 subtract_mean_new(PrescreenerCoefficients *coeffs, float half) subtract_mean_new() argument
[all...]
/third_party/skia/src/core/
H A DSkColorSpacePriv.h68 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 in is_almost_2dot2()
86 is_almost_linear(const skcms_TransferFunction& coeffs) is_almost_linear() argument
[all...]
/third_party/ffmpeg/libavcodec/aarch64/
H A Dhevcdsp_init_aarch64.c28 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, in
[all...]
/third_party/openssl/test/
H A Drsa_mp_test.c152 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 in key2048p3_v2()
[all...]
/third_party/ffmpeg/libavcodec/mips/
H A Dhevc_idct_msa.c308 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 in hevc_idct_16x16_msa()
428 hevc_idct_8x32_column_msa(int16_t *coeffs, uint8_t buf_pitch, uint8_t round) hevc_idct_8x32_column_msa() argument
601 hevc_idct_transpose_32x8_to_8x32(int16_t *coeffs, int16_t *tmp_buf) hevc_idct_transpose_32x8_to_8x32() argument
614 hevc_idct_transpose_8x32_to_32x8(int16_t *tmp_buf, int16_t *coeffs) hevc_idct_transpose_8x32_to_32x8() argument
627 hevc_idct_32x32_msa(int16_t *coeffs) hevc_idct_32x32_msa() argument
660 hevc_idct_dc_4x4_msa(int16_t *coeffs) hevc_idct_dc_4x4_msa() argument
672 hevc_idct_dc_8x8_msa(int16_t *coeffs) hevc_idct_dc_8x8_msa() argument
684 hevc_idct_dc_16x16_msa(int16_t *coeffs) hevc_idct_dc_16x16_msa() argument
700 hevc_idct_dc_32x32_msa(int16_t *coeffs) hevc_idct_dc_32x32_msa() argument
716 hevc_addblk_4x4_msa(int16_t *coeffs, uint8_t *dst, int32_t stride) hevc_addblk_4x4_msa() argument
733 hevc_addblk_8x8_msa(int16_t *coeffs, uint8_t *dst, int32_t stride) hevc_addblk_8x8_msa() argument
769 hevc_addblk_16x16_msa(int16_t *coeffs, uint8_t *dst, int32_t stride) hevc_addblk_16x16_msa() argument
836 hevc_addblk_32x32_msa(int16_t *coeffs, uint8_t *dst, int32_t stride) hevc_addblk_32x32_msa() argument
941 hevc_idct_luma_4x4_msa(int16_t *coeffs) hevc_idct_luma_4x4_msa() argument
963 ff_hevc_idct_4x4_msa(int16_t *coeffs, int col_limit) ff_hevc_idct_4x4_msa() argument
968 ff_hevc_idct_8x8_msa(int16_t *coeffs, int col_limit) ff_hevc_idct_8x8_msa() argument
973 ff_hevc_idct_16x16_msa(int16_t *coeffs, int col_limit) ff_hevc_idct_16x16_msa() argument
978 ff_hevc_idct_32x32_msa(int16_t *coeffs, int col_limit) ff_hevc_idct_32x32_msa() argument
983 ff_hevc_addblk_4x4_msa(uint8_t *dst, int16_t *coeffs, ptrdiff_t stride) ff_hevc_addblk_4x4_msa() argument
988 ff_hevc_addblk_8x8_msa(uint8_t *dst, int16_t *coeffs, ptrdiff_t stride) ff_hevc_addblk_8x8_msa() argument
993 ff_hevc_addblk_16x16_msa(uint8_t *dst, int16_t *coeffs, ptrdiff_t stride) ff_hevc_addblk_16x16_msa() argument
998 ff_hevc_addblk_32x32_msa(uint8_t *dst, int16_t *coeffs, ptrdiff_t stride) ff_hevc_addblk_32x32_msa() argument
1003 ff_hevc_idct_dc_4x4_msa(int16_t *coeffs) ff_hevc_idct_dc_4x4_msa() argument
1008 ff_hevc_idct_dc_8x8_msa(int16_t *coeffs) ff_hevc_idct_dc_8x8_msa() argument
1013 ff_hevc_idct_dc_16x16_msa(int16_t *coeffs) ff_hevc_idct_dc_16x16_msa() argument
1018 ff_hevc_idct_dc_32x32_msa(int16_t *coeffs) ff_hevc_idct_dc_32x32_msa() argument
1023 ff_hevc_idct_luma_4x4_msa(int16_t *coeffs) ff_hevc_idct_luma_4x4_msa() argument
[all...]
/third_party/ffmpeg/libavcodec/x86/
H A Dsimple_idct.asm57 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
[all...]
/third_party/ffmpeg/libavcodec/arm/
H A Dhevcdsp_init_neon.c38 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/
H A Dhevcdsp_template.c21 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/ffmpeg/libavcodec/loongarch/
H A Dhevc_idct_lsx.c330 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, 4 in ff_hevc_idct_8x8_lsx()
386 ff_hevc_idct_16x16_lsx(int16_t *coeffs, int col_limit) ff_hevc_idct_16x16_lsx() argument
525 hevc_idct_8x32_column_lsx(int16_t *coeffs, int32_t buf_pitch, uint8_t round) hevc_idct_8x32_column_lsx() argument
761 hevc_idct_transpose_32x8_to_8x32(int16_t *coeffs, int16_t *tmp_buf) hevc_idct_transpose_32x8_to_8x32() argument
786 hevc_idct_transpose_8x32_to_32x8(int16_t *tmp_buf, int16_t *coeffs) hevc_idct_transpose_8x32_to_32x8() argument
811 ff_hevc_idct_32x32_lsx(int16_t *coeffs, int col_limit) ff_hevc_idct_32x32_lsx() argument
[all...]
/third_party/skia/third_party/externals/libwebp/src/dsp/
H A Dcost.c337 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()
H A Dcost_mips32.c30 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()
H A Dcost_sse2.c25 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()
35 // out least significant bits according to res->first, since coeffs[0] is 0 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()
H A Dcost_neon.c22 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/
H A DBrightnessContrastEffect.cpp65 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()
H A DShiftChannelsEffect.cpp92 auto coeffs = [](float src) { variable
94 // We map these onto our coeffs table.
99 const float* rc = coeffs(fR);
100 const float* gc = coeffs(fG);
101 const float* bc = coeffs(fB);
102 const float* ac = coeffs(fA);
/third_party/ffmpeg/libavcodec/
H A Dflacdsp.c47 static void flac_lpc_16_c(int32_t *decoded, const int coeffs[32], in flac_lpc_16_c() argument
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() argument
83 sum += (int64_t)coeffs[j] * decoded[j]; in flac_lpc_32_c()
H A Dbinkaudio.c63 float previous[MAX_DCT_CHANNELS][BINK_BLOCK_MAX_SIZE / 16]; ///< coeffs from previous audio block
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[ in decode_block()
[all...]
H A Dtakdec.c199 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()
[all...]
/third_party/skia/tools/fonts/
H A Dgenerate_fir_coeff.py67 coeffs = []
85 coeffs.append(coverage * target_sum)
95 # The coeffs add up to too much.
100 # The coeffs add up to too little.
107 for coeff, coeff_rounded in zip(coeffs, coeffs_rounded)]
128 delta, coeff_pkg[i].index, coeffs[coeff_pkg[i].index]))
136 print(sum(coeffs), hex(sum(coeffs_rounded)))

Completed in 16 milliseconds

1234567