diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-09-08 16:08:03 +0300 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-09-29 15:48:03 +0300 |
commit | 3281d823cdc7601c4900eb103958c05f59f65555 (patch) | |
tree | 3c9b505f9e52ffc6085119e1aab1c3f9efd9a118 /libavcodec/intrax8dsp.h | |
parent | 92c5755a185086067fe49e7e64c23a8e7011be31 (diff) |
intrax8: Change type of array stride parameters to ptrdiff_t
ptrdiff_t is the correct type for array strides and similar.
Also rename all such parameters to "stride" for consistency.
Diffstat (limited to 'libavcodec/intrax8dsp.h')
-rw-r--r-- | libavcodec/intrax8dsp.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libavcodec/intrax8dsp.h b/libavcodec/intrax8dsp.h index 4ba1a0b47e..27e71e6243 100644 --- a/libavcodec/intrax8dsp.h +++ b/libavcodec/intrax8dsp.h @@ -19,15 +19,18 @@ #ifndef AVCODEC_INTRAX8DSP_H #define AVCODEC_INTRAX8DSP_H +#include <stddef.h> #include <stdint.h> typedef struct IntraX8DSPContext { - void (*v_loop_filter)(uint8_t *src, int stride, int qscale); - void (*h_loop_filter)(uint8_t *src, int stride, int qscale); + void (*v_loop_filter)(uint8_t *src, ptrdiff_t stride, int qscale); + void (*h_loop_filter)(uint8_t *src, ptrdiff_t stride, int qscale); - void (*spatial_compensation[12])(uint8_t *src, uint8_t *dst, int linesize); - void (*setup_spatial_compensation)(uint8_t *src, uint8_t *dst, int linesize, - int *range, int *sum, int edges); + void (*spatial_compensation[12])(uint8_t *src, uint8_t *dst, + ptrdiff_t stride); + void (*setup_spatial_compensation)(uint8_t *src, uint8_t *dst, + ptrdiff_t stride, int *range, + int *sum, int edges); } IntraX8DSPContext; void ff_intrax8dsp_init(IntraX8DSPContext *dsp); |