[FFmpeg-devel] [PATCH 9/9] x86: dct-test: add more idcts
Michael Niedermayer
michael at niedermayer.cc
Tue Oct 13 17:00:49 CEST 2015
On Mon, Oct 12, 2015 at 07:37:50PM +0200, Christophe Gisquet wrote:
> In particular for 10 and 12 bits.
> ---
> libavcodec/dct-test.c | 2 ++
> libavcodec/x86/dct-test.c | 10 ++++++++++
> 2 files changed, 12 insertions(+)
>
> diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
> index 56e1a62..72fe353 100644
> --- a/libavcodec/dct-test.c
> +++ b/libavcodec/dct-test.c
> @@ -82,6 +82,8 @@ static const struct algo idct_tab[] = {
> { "REF-DBL", ff_ref_idct, FF_IDCT_PERM_NONE },
> { "INT", ff_j_rev_dct, FF_IDCT_PERM_LIBMPEG2 },
> { "SIMPLE-C", ff_simple_idct_8, FF_IDCT_PERM_NONE },
> + { "SIMPLE-C10", ff_simple_idct_10, FF_IDCT_PERM_NONE },
> + { "SIMPLE-C12", ff_simple_idct_12, FF_IDCT_PERM_NONE },
> { "PR-C", ff_prores_idct_wrap, FF_IDCT_PERM_NONE, 0, 1 },
> #if CONFIG_FAANIDCT
> { "FAANI", ff_faanidct, FF_IDCT_PERM_NONE },
> diff --git a/libavcodec/x86/dct-test.c b/libavcodec/x86/dct-test.c
> index 0414381..b022552 100644
> --- a/libavcodec/x86/dct-test.c
> +++ b/libavcodec/x86/dct-test.c
> @@ -85,6 +85,16 @@ static const struct algo idct_tab_arch[] = {
> { "PR-AVX", ff_prores_idct_put_10_avx_wrap, FF_IDCT_PERM_TRANSPOSE, AV_CPU_FLAG_AVX, 1 },
> # endif
> #endif
> +#if HAVE_YASM
> +#if HAVE_SSE2_EXTERNAL
> + { "SIMPLE10-SSE2", ff_simple_idct10_sse2, FF_IDCT_PERM_TRANSPOSE, AV_CPU_FLAG_SSE2, 1 },
> + { "SIMPLE12-SSE2", ff_simple_idct12_sse2, FF_IDCT_PERM_TRANSPOSE, AV_CPU_FLAG_SSE2, 1 },
> +#endif
> +#if HAVE_AVX_EXTERNAL
> + { "SIMPLE10-AVX", ff_simple_idct10_avx, FF_IDCT_PERM_TRANSPOSE, AV_CPU_FLAG_AVX, 1 },
> + { "SIMPLE12-AVX", ff_simple_idct12_avx, FF_IDCT_PERM_TRANSPOSE, AV_CPU_FLAG_AVX, 1 },
> +#endif
> +#endif
applied with some changes
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151013/35ed53a0/attachment.sig>
More information about the ffmpeg-devel
mailing list