Commit 6031e5d1 authored by Muhammad Faiz's avatar Muhammad Faiz

swresample/x86: add support for exact_rational

phase_shift and phase_mask is removed
generally exact_rational=on is faster than exact_rational=off
Signed-off-by: 's avatarMuhammad Faiz <mfcc64@gmail.com>
parent d0bde818
......@@ -349,8 +349,6 @@ static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_r
goto error;
}
c->phase_shift = phase_shift;
c->phase_mask = phase_count - 1;
c->phase_count = phase_count;
c->linear = linear;
c->factor = factor;
......
......@@ -40,9 +40,6 @@ typedef struct ResampleContext {
int frac;
int src_incr;
int compensation_distance;
/* TODO remove phase_shift and phase_mask */
attribute_deprecated int phase_shift;
attribute_deprecated int phase_mask;
int phase_count;
int linear;
enum SwrFilterType filter_type;
......
This diff is collapsed.
......@@ -47,10 +47,6 @@ av_cold void swri_resample_dsp_x86_init(ResampleContext *c)
{
int av_unused mm_flags = av_get_cpu_flags();
/* FIXME use phase_count on asm */
if (c->phase_count != 1 << c->phase_shift)
return;
switch(c->format){
case AV_SAMPLE_FMT_S16P:
if (ARCH_X86_32 && EXTERNAL_MMXEXT(mm_flags)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment