Home
last modified time | relevance | path

Searched refs:compensation_distance (Results 1 – 11 of 11) sorted by relevance

/third_party/pulseaudio/src/pulsecore/ffmpeg/
Dresample2.c66 int compensation_distance; member
204 void av_resample_compensate(AVResampleContext *c, int sample_delta, int compensation_distance){ in av_resample_compensate() argument
206 c->compensation_distance= compensation_distance; in av_resample_compensate()
207 …->dst_incr = c->ideal_dst_incr - c->ideal_dst_incr * (int64_t)sample_delta / compensation_distance; in av_resample_compensate()
216 int compensation_distance= c->compensation_distance; in av_resample() local
218 if(compensation_distance == 0 && c->filter_length == 1 && c->phase_shift==0){ in av_resample()
269 if(dst_index + 1 == compensation_distance){ in av_resample()
270 compensation_distance= 0; in av_resample()
279 if(compensation_distance){ in av_resample()
280 compensation_distance -= dst_index; in av_resample()
[all …]
Davcodec.h70 …d av_resample_compensate(struct AVResampleContext *c, int sample_delta, int compensation_distance);
/third_party/ffmpeg/libavresample/
Dresample.c191 c->compensation_distance = 0; in ff_audio_resample_init()
234 int compensation_distance) in avresample_set_compensation() argument
238 if (compensation_distance < 0) in avresample_set_compensation()
240 if (!compensation_distance && sample_delta) in avresample_set_compensation()
248 c->compensation_distance = compensation_distance; in avresample_set_compensation()
249 if (compensation_distance) { in avresample_set_compensation()
251 (int64_t)sample_delta / compensation_distance; in avresample_set_compensation()
268 int compensation_distance = c->compensation_distance; in resample() local
307 if (dst_index + 1 == compensation_distance) { in resample()
308 compensation_distance = 0; in resample()
[all …]
Dresample.h38 int compensation_distance; member
Davresample.h387 int compensation_distance);
/third_party/ffmpeg/libswresample/
Dresample.c360 c->compensation_distance= 0; in resample_init()
431 static int set_compensation(ResampleContext *c, int sample_delta, int compensation_distance){ in set_compensation() argument
434 if (compensation_distance && sample_delta) { in set_compensation()
440 c->compensation_distance= compensation_distance; in set_compensation()
441 if (compensation_distance) in set_compensation()
442 …->dst_incr = c->ideal_dst_incr - c->ideal_dst_incr * (int64_t)sample_delta / compensation_distance; in set_compensation()
459 if (c->compensation_distance) in multiple_resample()
460 dst_size = FFMIN(dst_size, c->compensation_distance); in multiple_resample()
505 if (c->compensation_distance) { in multiple_resample()
506 c->compensation_distance -= dst_size; in multiple_resample()
[all …]
Dresample.h42 int compensation_distance; member
Dswresample.h353 int swr_set_compensation(struct SwrContext *s, int sample_delta, int compensation_distance);
Dswresample_internal.h76 … (* set_compensation_func)(struct ResampleContext *c, int sample_delta, int compensation_distance);
Dswresample.c897 int swr_set_compensation(struct SwrContext *s, int sample_delta, int compensation_distance){ in swr_set_compensation() argument
900 if (!s || compensation_distance < 0) in swr_set_compensation()
902 if (!compensation_distance && sample_delta) in swr_set_compensation()
913 return s->resampler->set_compensation(s->resample, sample_delta, compensation_distance); in swr_set_compensation()
/third_party/ffmpeg/libswresample/x86/
Dresample.asm43 .compensation_distance: resd 1 label