Home
last modified time | relevance | path

Searched refs:residual (Results 1 - 25 of 30) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
H A Dg729postfilter.c107 * \param residual filtering input data
114 const int16_t* residual, int16_t *residual_filt, in long_term_filter()
150 tmp |= FFABS(residual[i]); in long_term_filter()
159 sig_scaled[i] = residual[i] >> shift; in long_term_filter()
162 sig_scaled[i] = (unsigned)residual[i] << -shift; in long_term_filter()
304 memcpy(residual_filt, residual + RES_PREV_DATA_SIZE, subframe_size * sizeof(int16_t)); in long_term_filter()
382 selected_signal_const = residual + RES_PREV_DATA_SIZE - (best_delay_int + 1 - delayed_signal_offset); in long_term_filter()
406 ff_acelp_weighted_vector_sum(residual_filt, residual + RES_PREV_DATA_SIZE, in long_term_filter()
475 * \param res_pst [in/out] residual signal (partially filtered)
522 int16_t* residual, int16_ in ff_g729_postfilter()
113 long_term_filter(AudioDSPContext *adsp, int pitch_delay_int, const int16_t* residual, int16_t *residual_filt, int subframe_size) long_term_filter() argument
520 ff_g729_postfilter(AudioDSPContext *adsp, int16_t* ht_prev_data, int* voicing, const int16_t *lp_filter_coeffs, int pitch_delay_int, int16_t* residual, int16_t* res_filter_data, int16_t* pos_filter_data, int16_t *speech, int subframe_size) ff_g729_postfilter() argument
[all...]
H A Dg723_1.c1132 void ff_g723_1_get_residual(int16_t *residual, int16_t *prev_excitation, in ff_g723_1_get_residual() argument
1138 residual[0] = prev_excitation[offset]; in ff_g723_1_get_residual()
1139 residual[1] = prev_excitation[offset + 1]; in ff_g723_1_get_residual()
1143 residual[i] = prev_excitation[offset + (i - 2) % lag]; in ff_g723_1_get_residual()
1162 int16_t residual[SUBFRAME_LEN + PITCH_ORDER - 1]; in ff_g723_1_gen_acb_excitation() local
1169 ff_g723_1_get_residual(residual, prev_excitation, lag); in ff_g723_1_gen_acb_excitation()
1180 sum = ff_dot_product(residual + i, cb_ptr, PITCH_ORDER); in ff_g723_1_gen_acb_excitation()
H A Dalacenc.c192 /* calculate sum of 2nd order residual for each channel */ in estimate_stereo_mode()
262 int32_t *residual = s->predictor_buf[ch]; in alac_linear_predictor() local
265 residual[0] = s->sample_buf[ch][0]; in alac_linear_predictor()
268 residual[i] = s->sample_buf[ch][i ] - in alac_linear_predictor()
281 residual[0] = samples[0]; in alac_linear_predictor()
283 residual[i] = sign_extend(samples[i] - samples[i-1], s->write_sample_size); in alac_linear_predictor()
296 residual[i] = sign_extend(samples[lpc.lpc_order+1] - sum, in alac_linear_predictor()
298 res_val = residual[i]; in alac_linear_predictor()
452 int32_t *residual = s->predictor_buf[i]; in write_element() local
454 residual[ in write_element()
[all...]
H A Dg723_1enc.c547 /* Compute residual energy */ in comp_harmonic_coeff()
683 static void acb_search(G723_1_ChannelContext *p, int16_t *residual, in acb_search() argument
712 ff_g723_1_get_residual(residual, p->prev_excitation, pitch_lag + i - 1); in acb_search()
717 temp += residual[PITCH_ORDER - 1 + k] * impulse_resp[j - k]; in acb_search()
723 flt_buf[j][0] = ((residual[j] << 13) + (1 << 14)) >> 15; in acb_search()
726 residual[j] * impulse_resp[k]; in acb_search()
797 * to obtain the residual.
801 static void sub_acb_contrib(const int16_t *residual, const int16_t *impulse_resp, in sub_acb_contrib() argument
805 /* Subtract adaptive CB contribution to obtain the residual */ in sub_acb_contrib()
809 temp -= residual[ in sub_acb_contrib()
1165 int16_t residual[SUBFRAME_LEN + PITCH_ORDER - 1]; g723_1_encode_frame() local
[all...]
H A Dmlpdsp.c39 int32_t residual = *sample_buffer; in mlp_filter_channel() local
50 result = (accum + residual) & mask; in mlp_filter_channel()
H A Ddca_core.h226 int32_t step_size, int32_t scale, int residual, int len) in ff_dca_core_dequantize()
239 if (residual) { in ff_dca_core_dequantize()
225 ff_dca_core_dequantize(int32_t *output, const int32_t *input, int32_t step_size, int32_t scale, int residual, int len) ff_dca_core_dequantize() argument
H A Dg729postfilter.h75 * Amount of past residual signal data stored in buffer
87 * \param residual [in/out] (Q0) residual signal buffer (used in long-term postfilter)
100 int16_t* residual, int16_t* res_filter_data,
H A Ddstdec.c349 int prob, residual, v; in decode_frame() local
366 ac_get(ac, gb, prob, &residual); in decode_frame()
367 v = ((predict >> 15) ^ residual) & 1; in decode_frame()
H A Dg723_1.h185 void ff_g723_1_get_residual(int16_t *residual, int16_t *prev_excitation,
H A Dflacenc.c94 int32_t residual[FLAC_MAX_BLOCKSIZE+11]; member
552 /* residual */ in subframe_count_exact()
558 count += rice_count_exact(&sub->residual[i], part_end - i, k); in subframe_count_exact()
732 bits += calc_rice_params(&sub->rc, sub->rc_udata, sub->rc_sums, pmin, pmax, sub->residual, in find_subframe_rice_params()
801 res = sub->residual; in encode_residual_ch()
1085 /* calculate sum of 2nd order residual for each channel */ in estimate_stereo_mode()
1217 int32_t *res = sub->residual; in write_subframes()
1218 int32_t *frame_end = &sub->residual[s->frame.blocksize]; in write_subframes()
1255 /* residual */ in write_subframes()
1256 part_end = &sub->residual[psiz in write_subframes()
[all...]
H A Dg729dec.c125 /// residual signal buffer (used in long-term postfilter)
126 int16_t residual[SUBFRAME_SIZE + RES_PREV_DATA_SIZE]; member
128 /// previous speech data for residual calculation filter
701 ctx->residual, in decode_frame()
H A Dopus_silk.c313 int16_t lsf_res[16]; // residual as a Q10 value in silk_decode_lpc()
352 /* find the weight of the residual */ in silk_decode_lpc()
503 /** Maximum residual history according to 4.2.7.6.1 */
517 float lpc_leadin[16], lpc_body[16], residual[SILK_MAX_LAG + SILK_HISTORY]; in silk_decode_frame() local
667 silk_decode_excitation(s, rc, residual + SILK_MAX_LAG, qoffset_high, in silk_decode_frame()
679 float *resptr = residual + SILK_MAX_LAG + i * s->sflength; in silk_decode_frame()
697 /* to produce a residual that accounts for the change */ in silk_decode_frame()
H A Dmlpenc.c948 * codebooks (if any is used), and then the residual.
1711 /** Applies the filter to the current samples, and saves the residual back
1736 int64_t residual; in apply_filter() local
1746 residual = sample - (accum & mask); in apply_filter()
1748 if (residual < SAMPLE_MIN(24) || residual > SAMPLE_MAX(24)) { in apply_filter()
1754 ctx->filter_state_buffer[IIR][i] = (int32_t) residual; in apply_filter()
/third_party/skia/third_party/externals/libwebp/src/enc/
H A Dpredictor_enc.c152 const int residual = (value - predict) & 0xff; in NearLosslessComponent() local
154 const int lower = residual & ~(quantization - 1); in NearLosslessComponent()
159 if (residual - lower < upper - residual + bias) { in NearLosslessComponent()
160 // lower is closer to residual than upper. in NearLosslessComponent()
161 if (residual > boundary_residual && lower <= boundary_residual) { in NearLosslessComponent()
163 // on the same side of boundary as residual because midpoint >= residual in NearLosslessComponent()
164 // (since lower is closer than upper) and residual is above the boundary. in NearLosslessComponent()
169 // upper is closer to residual tha in NearLosslessComponent()
246 uint32_t residual; GetResidual() local
[all...]
/third_party/libsnd/src/
H A Dnms_adpcm.c488 uint16_t w = 0, residual = 0 ; in nms_adpcm_block_unpack_24() local
492 ** k % 16 == [0, 11]: Unpack new nibble, build residual in nms_adpcm_block_unpack_24()
493 ** k % 16 == [12, 15]: Unpack residual in nms_adpcm_block_unpack_24()
497 residual = (residual << 1) | (w & 0x1111) ; in nms_adpcm_block_unpack_24()
500 { w = residual << 1 ; in nms_adpcm_block_unpack_24()
501 residual = 0 ; in nms_adpcm_block_unpack_24()
576 uint16_t residual ; in nms_adpcm_block_pack_24() local
594 residual = codewords [k++] << 12 ; in nms_adpcm_block_pack_24()
595 residual | in nms_adpcm_block_pack_24()
[all...]
/third_party/alsa-utils/bat/
H A Danalyze.c235 float tmp, rms, gain, residual; in calculate_noise_one_period() local
279 for (i = 0, tmp = 0.0, residual = 0.0; i < na->nsamples; i++) { in calculate_noise_one_period()
281 residual += tmp * tmp; in calculate_noise_one_period()
284 tmp = na->rms_tgt / sqrtf(residual / na->nsamples); in calculate_noise_one_period()
/third_party/ffmpeg/libavcodec/x86/
H A Dhuffyuvdsp.asm118 paddw mm3, mm2 ; +residual
H A Dlossless_videodsp.asm78 paddb m3, m2 ; +residual
/third_party/jerryscript/jerry-core/ecma/base/
H A Decma-helpers-conversion.c922 double residual = mod_res - prev_residual; in ecma_double_to_ascii() local
923 buffer_p[num_of_digits - 1 - char_cnt++] = (lit_utf8_byte_t) ((int) (residual / (divider / 10.0)) + '0'); in ecma_double_to_ascii()
/third_party/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_mpeg12_bitstream.c633 int residual = vl_vlc_get_uimsbf(&bs->vlc, r_size) + 1; in motion_vector() local
634 delta[t] = ((abs(motion_code) - 1) << r_size) + residual; in motion_vector()
/third_party/astc-encoder/Source/
H A Dastcenc_color_quantize.cpp101 * @brief Determine the quantized value given a quantization level and residual.
105 * @param valuef The original value before rounding, used to compute a residual.
116 // Compute the residual to determine if we should round down or up ties. in quant_color()
117 // Test should be residual >= 0, but empirical testing shows small bias helps. in quant_color()
118 float residual = valuef - static_cast<float>(value); in quant_color() local
119 if (residual >= -0.1f) in quant_color()
128 * @brief Determine the quantized value given a quantization level and residual.
132 * @param valuef The original value before rounding, used to compute a residual.
143 // Compute the residual to determine if we should round down or up ties. in quant_color3()
144 // Test should be residual > in quant_color3()
145 vfloat4 residual = valuef - int_to_float(value); quant_color3() local
[all...]
/third_party/protobuf/ruby/ext/google/protobuf_c/
H A Dupb.c6946 ** in the "residual" buffer.
7035 * to our "decode" callback or some residual bytes from the previous buffer. */
7070 return in_buf(p, d->residual, d->residual_end); in in_residual_buf()
7129 d->residual_end = d->residual; in skip()
7130 switchtobuf(d, d->residual, d->residual_end); in skip()
7143 UPB_ASSERT(!(d->skip && d->residual_end > d->residual)); in upb_pbdecoder_resume()
7174 if (d->residual_end > d->residual) { in upb_pbdecoder_resume()
7175 /* We have residual bytes from the last buffer. */ in upb_pbdecoder_resume()
7176 UPB_ASSERT(d->ptr == d->residual); in upb_pbdecoder_resume()
7200 /* Suspends the decoder at the last checkpoint, without saving any residual
[all...]
H A Dupb.h6133 /* Buffer for residual bytes not parsed from the previous buffer. */
6134 char residual[UPB_DECODER_MAX_RESIDUAL_BYTES]; member
/third_party/typescript/lib/
H A DtypingsInstaller.js[all...]
H A Dtsc.js[all...]

Completed in 119 milliseconds

12