diff options
author | Martin Storsjö <martin@martin.st> | 2020-05-12 11:22:45 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2020-05-13 13:20:08 +0300 |
commit | 353aecbb28e3976b6f4d7a4262398852cd67b5a2 (patch) | |
tree | d76f7b9f9a5349f1ecbd4b35340427a849aa091a /libavcodec/pixblockdsp.c | |
parent | b12b05374f7025167e2c43449ceb8ba3f0a6083f (diff) |
pixblockdsp, avdct: Add get_pixels_unaligned
Use this in vf_spp.c, where the get_pixels operation is done on
unaligned source addresses.
Hook up the x86 (mmx and sse) versions of get_pixels to this
function pointer, as those implementations seem to support unaligned
use.
This fixes fate-filter-spp on armv7.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/pixblockdsp.c')
-rw-r--r-- | libavcodec/pixblockdsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pixblockdsp.c b/libavcodec/pixblockdsp.c index 50e1d1d735..a79e547776 100644 --- a/libavcodec/pixblockdsp.c +++ b/libavcodec/pixblockdsp.c @@ -90,10 +90,12 @@ av_cold void ff_pixblockdsp_init(PixblockDSPContext *c, AVCodecContext *avctx) case 10: case 12: case 14: + c->get_pixels_unaligned = c->get_pixels = get_pixels_16_c; break; default: if (avctx->bits_per_raw_sample<=8 || avctx->codec_type != AVMEDIA_TYPE_VIDEO) { + c->get_pixels_unaligned = c->get_pixels = get_pixels_8_c; } break; |