diff options
author | Ivan Kalvachev <ikalvachev@gmail.com> | 2017-10-09 01:25:00 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-10-12 01:27:52 +0200 |
commit | 9054439bad3307dafd9fbadc57e66c276baf22e2 (patch) | |
tree | 8279e687a630cb1c4bcc1c7628e9312ad593c7e1 /libavcodec/avcodec.h | |
parent | 2b006ccf8318d84101ed83b75df4c9682a963217 (diff) | |
download | ffmpeg-9054439bad3307dafd9fbadc57e66c276baf22e2.tar.gz |
Fix visual glitch with XvMC, caused by wrong idct permutation.
In the past XvMC forced simple_idct since
it was using FF_IDCT_PERM_NONE.
However now we have SIMD variants of simple_idct that
are using FF_IDCT_PERM_TRANSPOSE and if they are selected
XvMC would get coefficients in the wrong order.
The patch creates new FF_IDCT_NONE that
is used only for this kind of hardware decoding
and that fallbacks to the old C only simple idct.
Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 52cc5b0ca0..18c3e3ea1e 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3146,6 +3146,7 @@ typedef struct AVCodecContext { #if FF_API_ARCH_ALPHA #define FF_IDCT_SIMPLEALPHA 23 #endif +#define FF_IDCT_NONE 24 /* Used by XvMC to extract IDCT coefficients with FF_IDCT_PERM_NONE */ #define FF_IDCT_SIMPLEAUTO 128 /** |