summaryrefslogtreecommitdiff
path: root/libavcodec/proresdsp.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-08-24 11:52:10 +0200
committerDiego Biurrun <diego@biurrun.de>2016-08-26 11:50:21 +0200
commit3fd22538bc0e0de84b31335266b4b1577d3d609e (patch)
tree97b7aed8f03aa6a1352934ca9407da515bfd574c /libavcodec/proresdsp.c
parentf81be06cf614919d71ded29b8f595bef40123ad8 (diff)
prores: 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 "linesize" everywhere.
Diffstat (limited to 'libavcodec/proresdsp.c')
-rw-r--r--libavcodec/proresdsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/proresdsp.c b/libavcodec/proresdsp.c
index 3af2f0b9bb..f782c907c0 100644
--- a/libavcodec/proresdsp.c
+++ b/libavcodec/proresdsp.c
@@ -36,11 +36,11 @@
/**
* Add bias value, clamp and output pixels of a slice
*/
-static void put_pixels(uint16_t *dst, int stride, const int16_t *in)
+static void put_pixels(uint16_t *dst, ptrdiff_t linesize, const int16_t *in)
{
int x, y, src_offset, dst_offset;
- for (y = 0, dst_offset = 0; y < 8; y++, dst_offset += stride) {
+ for (y = 0, dst_offset = 0; y < 8; y++, dst_offset += linesize) {
for (x = 0; x < 8; x++) {
src_offset = (y << 3) + x;
@@ -49,7 +49,7 @@ static void put_pixels(uint16_t *dst, int stride, const int16_t *in)
}
}
-static void prores_idct_put_c(uint16_t *out, int linesize, int16_t *block, const int16_t *qmat)
+static void prores_idct_put_c(uint16_t *out, ptrdiff_t linesize, int16_t *block, const int16_t *qmat)
{
ff_prores_idct(block, qmat);
put_pixels(out, linesize >> 1, block);