diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-09-06 16:06:12 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-09-14 14:12:36 +0200 |
commit | de452e503734ebb0fdbce86e9d16693b3530fad3 (patch) | |
tree | 4a8055e1c5158b8d51c4f17b99c4befe9d45a19d /libavcodec/pixblockdsp.h | |
parent | ab3554e1a7c04a5ea30f9c905de92348478ef7c8 (diff) | |
download | ffmpeg-de452e503734ebb0fdbce86e9d16693b3530fad3.tar.gz |
pixblockdsp: Change type of stride parameters to ptrdiff_t
This avoids SIMD-optimized functions having to sign-extend their
line size argument manually to be able to do pointer arithmetic.
Also adjust parameter names to be "stride" everywhere.
Diffstat (limited to 'libavcodec/pixblockdsp.h')
-rw-r--r-- | libavcodec/pixblockdsp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pixblockdsp.h b/libavcodec/pixblockdsp.h index 8094d14b68..a9d5473665 100644 --- a/libavcodec/pixblockdsp.h +++ b/libavcodec/pixblockdsp.h @@ -26,11 +26,11 @@ typedef struct PixblockDSPContext { void (*get_pixels)(int16_t *block /* align 16 */, const uint8_t *pixels /* align 8 */, - int line_size); + ptrdiff_t stride); void (*diff_pixels)(int16_t *block /* align 16 */, const uint8_t *s1 /* align 8 */, const uint8_t *s2 /* align 8 */, - int stride); + ptrdiff_t stride); } PixblockDSPContext; void ff_pixblockdsp_init(PixblockDSPContext *c, AVCodecContext *avctx); |