summaryrefslogtreecommitdiffstats
path: root/libavcodec/mss2dsp.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-09-08 16:03:46 +0200
committerDiego Biurrun <diego@biurrun.de>2016-09-29 17:54:24 +0200
commit15b4f494fc6bddb8178fdb5aed18b420efc75e22 (patch)
tree531be9fa9f23191c80912058d186a803b0804d18 /libavcodec/mss2dsp.h
parenta339e919cad1ab0125948f0dd9d49f6cb590db89 (diff)
downloadffmpeg-streaming-15b4f494fc6bddb8178fdb5aed18b420efc75e22.zip
ffmpeg-streaming-15b4f494fc6bddb8178fdb5aed18b420efc75e22.tar.gz
mss*: Change type of array stride parameters to ptrdiff_t
ptrdiff_t is the correct type for array strides and similar.
Diffstat (limited to 'libavcodec/mss2dsp.h')
-rw-r--r--libavcodec/mss2dsp.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/libavcodec/mss2dsp.h b/libavcodec/mss2dsp.h
index 61c3a04..352b851 100644
--- a/libavcodec/mss2dsp.h
+++ b/libavcodec/mss2dsp.h
@@ -26,23 +26,25 @@
#ifndef AVCODEC_MSS2DSP_H
#define AVCODEC_MSS2DSP_H
+#include <stddef.h>
#include <stdint.h>
typedef struct MSS2DSPContext {
- void (*mss2_blit_wmv9)(uint8_t *dst, int dst_stride,
- const uint8_t *srcy, int srcy_stride,
+ void (*mss2_blit_wmv9)(uint8_t *dst, ptrdiff_t dst_stride,
+ const uint8_t *srcy, ptrdiff_t srcy_stride,
const uint8_t *srcu, const uint8_t *srcv,
- int srcuv_stride, int w, int h);
- void (*mss2_blit_wmv9_masked)(uint8_t *dst, int dst_stride,
+ ptrdiff_t srcuv_stride, int w, int h);
+ void (*mss2_blit_wmv9_masked)(uint8_t *dst, ptrdiff_t dst_stride,
int maskcolor, const uint8_t *mask,
- int mask_stride,
- const uint8_t *srcy, int srcy_stride,
+ ptrdiff_t mask_stride,
+ const uint8_t *srcy, ptrdiff_t srcy_stride,
const uint8_t *srcu, const uint8_t *srcv,
- int srcuv_stride, int w, int h);
- void (*mss2_gray_fill_masked)(uint8_t *dst, int dst_stride,
+ ptrdiff_t srcuv_stride, int w, int h);
+ void (*mss2_gray_fill_masked)(uint8_t *dst, ptrdiff_t dst_stride,
int maskcolor, const uint8_t *mask,
- int mask_stride, int w, int h);
- void (*upsample_plane)(uint8_t *plane, int plane_stride, int w, int h);
+ ptrdiff_t mask_stride, int w, int h);
+ void (*upsample_plane)(uint8_t *plane, ptrdiff_t plane_stride,
+ int w, int h);
} MSS2DSPContext;
void ff_mss2dsp_init(MSS2DSPContext *dsp);
OpenPOWER on IntegriCloud