summaryrefslogtreecommitdiff
path: root/libavcodec/proresdsp.h
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.h
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.h')
-rw-r--r--libavcodec/proresdsp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/proresdsp.h b/libavcodec/proresdsp.h
index e8a3ea96a7..7f06494daf 100644
--- a/libavcodec/proresdsp.h
+++ b/libavcodec/proresdsp.h
@@ -23,6 +23,7 @@
#ifndef AVCODEC_PRORESDSP_H
#define AVCODEC_PRORESDSP_H
+#include <stddef.h>
#include <stdint.h>
#define PRORES_BITS_PER_SAMPLE 10 ///< output precision of prores decoder
@@ -30,7 +31,7 @@
typedef struct ProresDSPContext {
int idct_permutation_type;
uint8_t idct_permutation[64];
- void (* idct_put) (uint16_t *out, int linesize, int16_t *block, const int16_t *qmat);
+ void (*idct_put)(uint16_t *out, ptrdiff_t linesize, int16_t *block, const int16_t *qmat);
} ProresDSPContext;
void ff_proresdsp_init(ProresDSPContext *dsp);