summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-09-01 22:18:22 +0200
committerDiego Biurrun <diego@biurrun.de>2016-09-29 17:54:23 +0200
commitba479f3daafc7e4359ec1212164569ebe59f0bb7 (patch)
tree872f7656fad3dd5e271b87642862f3baf59c2852 /tests
parente4a94d8b36c48d95a7d412c40d7b558422ff659c (diff)
hevc: Change type of array stride parameters to ptrdiff_t
ptrdiff_t is the correct type for array strides and similar.
Diffstat (limited to 'tests')
-rw-r--r--tests/checkasm/hevc_mc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/checkasm/hevc_mc.c b/tests/checkasm/hevc_mc.c
index 385c33eec7..70f35ce78a 100644
--- a/tests/checkasm/hevc_mc.c
+++ b/tests/checkasm/hevc_mc.c
@@ -105,8 +105,8 @@ static void check_unweighted_pred(HEVCDSPContext *h, uint8_t *dst0, uint8_t *dst
for (i = 0; i < FF_ARRAY_ELEMS(pred_widths); i++) {
const int width = pred_widths[i];
- const int srcstride = FFALIGN(width, 16) * sizeof(*src0);
- const int dststride = FFALIGN(width, 16) * PIXEL_SIZE(bit_depth);
+ const ptrdiff_t srcstride = FFALIGN(width, 16) * sizeof(*src0);
+ const ptrdiff_t dststride = FFALIGN(width, 16) * PIXEL_SIZE(bit_depth);
{
declare_func(void, uint8_t *dst, ptrdiff_t dststride, int16_t *src, ptrdiff_t srcstride, int height);
@@ -177,8 +177,8 @@ static void check_weighted_pred(HEVCDSPContext *h, uint8_t *dst0, uint8_t *dst1,
for (i = 0; i < FF_ARRAY_ELEMS(pred_widths); i++) {
const int width = pred_widths[i];
- const int srcstride = FFALIGN(width, 16) * sizeof(*src0);
- const int dststride = FFALIGN(width, 16) * PIXEL_SIZE(bit_depth);
+ const ptrdiff_t srcstride = FFALIGN(width, 16) * sizeof(*src0);
+ const ptrdiff_t dststride = FFALIGN(width, 16) * PIXEL_SIZE(bit_depth);
{
declare_func(void, uint8_t denom, int16_t weight, int16_t offset,
@@ -216,8 +216,8 @@ static void check_epel(HEVCDSPContext *h, int16_t *dst0, int16_t *dst1,
for (j = 0; j < 2; j++) {
for (k = 0; k < FF_ARRAY_ELEMS(h->put_hevc_epel[i][j]); k++) {
int width = pred_widths[k] / 2;
- int dststride = FFALIGN(width, 16) * sizeof(*dst0);
- int srcstride = FFALIGN(width + 3, 8) * PIXEL_SIZE(bit_depth);
+ ptrdiff_t dststride = FFALIGN(width, 16) * sizeof(*dst0);
+ ptrdiff_t srcstride = FFALIGN(width + 3, 8) * PIXEL_SIZE(bit_depth);
if (!check_func(h->put_hevc_epel[i][j][k], "epel_%s_%d_%d", interp_names[i][j], width, bit_depth))
continue;
@@ -261,8 +261,8 @@ static void check_qpel(HEVCDSPContext *h, int16_t *dst0, int16_t *dst1,
for (j = 0; j < 2; j++) {
for (k = 0; k < FF_ARRAY_ELEMS(h->put_hevc_qpel[i][j]); k++) {
int width = pred_widths[k];
- int dststride = FFALIGN(width, 16) * sizeof(*dst0);
- int srcstride = FFALIGN(width + 7, 8) * PIXEL_SIZE(bit_depth);
+ ptrdiff_t dststride = FFALIGN(width, 16) * sizeof(*dst0);
+ ptrdiff_t srcstride = FFALIGN(width + 7, 8) * PIXEL_SIZE(bit_depth);
if (!check_func(h->put_hevc_qpel[i][j][k], "qpel_%s_%d_%d", interp_names[i][j], width, bit_depth))
continue;