diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2018-11-17 23:35:35 +0100 |
---|---|---|
committer | Martin Vignali <martin.vignali@gmail.com> | 2018-12-02 12:55:31 +0100 |
commit | c097a32e93b4b4d9cb576bf21014b19121806161 (patch) | |
tree | e83860e6b21db0e55fbfc9677c0a68c62f595c19 /libavcodec/x86/proresdsp_init.c | |
parent | a970920026010bd9e03f99017c305212b889d4a5 (diff) | |
download | ffmpeg-c097a32e93b4b4d9cb576bf21014b19121806161.tar.gz |
avcodec/proresdec : rename dsp part for 10b and check dspinit for supported bits per raw sample
based on patch by Kieran Kunhya
Diffstat (limited to 'libavcodec/x86/proresdsp_init.c')
-rw-r--r-- | libavcodec/x86/proresdsp_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/x86/proresdsp_init.c b/libavcodec/x86/proresdsp_init.c index 8ca4d4d9b3..747aeb826e 100644 --- a/libavcodec/x86/proresdsp_init.c +++ b/libavcodec/x86/proresdsp_init.c @@ -35,6 +35,7 @@ av_cold void ff_proresdsp_init_x86(ProresDSPContext *dsp, AVCodecContext *avctx) #if ARCH_X86_64 int cpu_flags = av_get_cpu_flags(); + if (avctx->bits_per_raw_sample == 10){ if (EXTERNAL_SSE2(cpu_flags)) { dsp->idct_permutation_type = FF_IDCT_PERM_TRANSPOSE; dsp->idct_put = ff_prores_idct_put_10_sse2; @@ -44,5 +45,6 @@ av_cold void ff_proresdsp_init_x86(ProresDSPContext *dsp, AVCodecContext *avctx) dsp->idct_permutation_type = FF_IDCT_PERM_TRANSPOSE; dsp->idct_put = ff_prores_idct_put_10_avx; } + } #endif /* ARCH_X86_64 */ } |