Home
last modified time | relevance | path

Searched refs:drift (Results 1 - 11 of 11) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Dffv1.h56 int16_t drift; member
158 int drift = state->drift; in update_vlc_state() local
161 drift += v; in update_vlc_state()
165 drift >>= 1; in update_vlc_state()
170 if (drift <= -count) { in update_vlc_state()
173 drift = FFMAX(drift + count, -count + 1); in update_vlc_state()
174 } else if (drift > 0) { in update_vlc_state()
177 drift in update_vlc_state()
[all...]
H A Dffv1.c186 p->vlc_state[j].drift = 0; in ff_ffv1_clear_slice_state()
H A Dffv1enc.c254 code = v ^ ((2 * state->drift + state->count) >> 31); in put_vlc_symbol()
256 ff_dlog(NULL, "v:%d/%d bias:%d error:%d drift:%d count:%d k:%d\n", v, code, in put_vlc_symbol()
257 state->bias, state->error_sum, state->drift, state->count, k); in put_vlc_symbol()
H A Dffv1dec.c85 ff_dlog(NULL, "v:%d bias:%d error:%d drift:%d count:%d k:%d", in get_vlc_symbol()
86 v, state->bias, state->error_sum, state->drift, state->count, k); in get_vlc_symbol()
88 v ^= ((2 * state->drift + state->count) >> 31); in get_vlc_symbol()
/third_party/pulseaudio/speex/libspeexdsp/
H A Decho_diagnostic.m51 drift = (b1-b2)/N2;
52 printf ('Drift estimate is %f%% (%d samples)\n', 100*drift, b1-b2);
54 printf ('A drift of a few (+-10) samples is normal.\n');
57 printf ('There may be (not sure) excessive clock drift. Is the capture and playback done on the same soundcard?\n');
/third_party/pulseaudio/src/pulsecore/
H A Dtime-smoother_2.c136 double time_delta_system, time_delta_card, drift, filter_constant, filter_constant_1; in pa_smoother_2_put() local
237 drift = (s->drift_filter_1 + 1.0) * (1.5 - filtered_time_delta_card / time_delta_system); in pa_smoother_2_put()
240 s->drift_filter = (1 - filter_constant) * s->drift_filter + filter_constant * drift; in pa_smoother_2_put()
/third_party/pulseaudio/src/modules/echo-cancel/
H A Decho-cancel.h79 /* Set this if canceller can do drift compensation. Also see set_drift()
114 /* Optional callback to set the drift, expressed as the ratio of the
117 * canceller signals that it supports drift compensation, and is called
118 * before record(). The actual implementation needs to derive drift based
122 void (*set_drift) (pa_echo_canceller *ec, float drift);
183 void pa_webrtc_ec_set_drift(pa_echo_canceller *ec, float drift);
H A Dmodule-echo-cancel.c66 "adjust_threshold=<how much drift to readjust after in ms> "
357 /* calculate drift between capture and playback */ in time_callback()
722 /* calculate drift between capture and playback */ in do_resync()
725 /* and adjust for the drift */ in do_resync()
729 /* 1. Calculate drift at this point, pass to canceller
741 float drift; in do_push_drift_comp() local
747 /* Estimate snapshot drift as follows: in do_push_drift_comp()
751 * drift = (pd - rd) / rd; in do_push_drift_comp()
757 drift = ((float)(plen - u->sink_rem) - (rlen - u->source_rem)) / ((float)(rlen - u->source_rem)); in do_push_drift_comp()
763 fprintf(u->drift_file, "d %a\n", drift); in do_push_drift_comp()
2228 float drift; main() local
[all...]
H A Dwebrtc.cc566 void pa_webrtc_ec_set_drift(pa_echo_canceller *ec, float drift) { in pa_webrtc_ec_set_drift() argument
569 apm->echo_cancellation()->set_stream_drift_samples(drift * ec->params.webrtc.blocksize); in pa_webrtc_ec_set_drift()
/third_party/ffmpeg/libavfilter/
H A Daf_atempo.c635 const int drift, in yae_align()
641 int best_offset = -drift; in yae_align()
658 i0 = FFMAX(window / 2 - delta_max - drift, 0); in yae_align()
661 i1 = FFMIN(window / 2 + delta_max - drift, window - window / 16); in yae_align()
671 float drifti = (float)(drift + i); in yae_align()
701 const int drift = (int)(prev_output_position - ideal_output_position); in yae_adjust_position() local
708 drift, in yae_adjust_position()
631 yae_align(AudioFragment *frag, const AudioFragment *prev, const int window, const int delta_max, const int drift, float *correlation_in, float *correlation, AVTXContext *complex_to_real, av_tx_fn c2r_fn) yae_align() argument
/third_party/ffmpeg/libavformat/
H A Dmov.c3187 int64_t drift = (current_dts - corrected_dts)/FFMAX(sample_count, 1);
3188 uint32_t correction = (sc->stts_data[i].duration > drift) ? drift : sc->stts_data[i].duration - 1;

Completed in 20 milliseconds