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.h | |
parent | b12b05374f7025167e2c43449ceb8ba3f0a6083f (diff) | |
download | ffmpeg-353aecbb28e3976b6f4d7a4262398852cd67b5a2.tar.gz |
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.h')
-rw-r--r-- | libavcodec/pixblockdsp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/pixblockdsp.h b/libavcodec/pixblockdsp.h index e036700ff0..fddb467212 100644 --- a/libavcodec/pixblockdsp.h +++ b/libavcodec/pixblockdsp.h @@ -29,6 +29,9 @@ typedef struct PixblockDSPContext { void (*get_pixels)(int16_t *av_restrict block /* align 16 */, const uint8_t *pixels /* align 8 */, ptrdiff_t stride); + void (*get_pixels_unaligned)(int16_t *av_restrict block /* align 16 */, + const uint8_t *pixels, + ptrdiff_t stride); void (*diff_pixels)(int16_t *av_restrict block /* align 16 */, const uint8_t *s1 /* align 8 */, const uint8_t *s2 /* align 8 */, |