From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Subject: [FFmpeg-devel] [PATCH 10/10] tests/checkasm/sw_gbrp: Use correct function types for calls
Date: Mon, 13 May 2024 11:30:59 +0200
Message-ID: <GV1P250MB07372214706556648B4FDC6B8FE22@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <GV1P250MB0737669E3F599999CD00F4C68FE22@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM>
E.g. f2de911818fbd7e73343803626b697fd0c968121 forgot to
add the unused void* here.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
tests/checkasm/sw_gbrp.c | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/tests/checkasm/sw_gbrp.c b/tests/checkasm/sw_gbrp.c
index 848e5366ad..b845da32a6 100644
--- a/tests/checkasm/sw_gbrp.c
+++ b/tests/checkasm/sw_gbrp.c
@@ -76,7 +76,7 @@ static void check_output_yuv2gbrp(void)
uint8_t *dst0[4];
uint8_t *dst1[4];
- declare_func(void, void *c, const int16_t *lumFilter,
+ declare_func(void, struct SwsContext *c, const int16_t *lumFilter,
const int16_t **lumSrcx, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrUSrcx,
const int16_t **chrVSrcx, int chrFilterSize,
@@ -202,10 +202,11 @@ static void check_input_planar_rgb_to_y(void)
#define LARGEST_INPUT_SIZE 512
#define INPUT_SIZES 6
static const int input_sizes[] = {8, 24, 128, 144, 256, 512};
- uint8_t *src[4];
+ const uint8_t *src[4];
int32_t rgb2yuv[9] = {0};
- declare_func(void, uint8_t *dst, uint8_t *src[4], int w, int32_t *rgb2yuv);
+ declare_func(void, uint8_t *dst, const uint8_t *src[4],
+ int w, int32_t *rgb2yuv, void *opaque);
LOCAL_ALIGNED_8(int32_t, src_r, [LARGEST_INPUT_SIZE]);
LOCAL_ALIGNED_8(int32_t, src_g, [LARGEST_INPUT_SIZE]);
@@ -243,13 +244,13 @@ static void check_input_planar_rgb_to_y(void)
memset(dst0_y, 0xFF, LARGEST_INPUT_SIZE * sizeof(int32_t));
memset(dst1_y, 0xFF, LARGEST_INPUT_SIZE * sizeof(int32_t));
- call_ref(dst0_y, src, dstW, rgb2yuv);
- call_new(dst1_y, src, dstW, rgb2yuv);
+ call_ref(dst0_y, src, dstW, rgb2yuv, NULL);
+ call_new(dst1_y, src, dstW, rgb2yuv, NULL);
if (memcmp(dst0_y, dst1_y, dstW * byte_size))
fail();
- bench_new(dst1_y, src, dstW, rgb2yuv);
+ bench_new(dst1_y, src, dstW, rgb2yuv, NULL);
}
}
@@ -269,11 +270,11 @@ static void check_input_planar_rgb_to_uv(void)
#define LARGEST_INPUT_SIZE 512
#define INPUT_SIZES 6
static const int input_sizes[] = {8, 24, 128, 144, 256, 512};
- uint8_t *src[4];
+ const uint8_t *src[4];
int32_t rgb2yuv[9] = {0};
declare_func(void, uint8_t *dstU, uint8_t *dstV,
- uint8_t *src[4], int w, int32_t *rgb2yuv);
+ const uint8_t *src[4], int w, int32_t *rgb2yuv, void *opaque);
LOCAL_ALIGNED_8(int32_t, src_r, [LARGEST_INPUT_SIZE]);
LOCAL_ALIGNED_8(int32_t, src_g, [LARGEST_INPUT_SIZE]);
@@ -316,14 +317,14 @@ static void check_input_planar_rgb_to_uv(void)
memset(dst1_u, 0xFF, LARGEST_INPUT_SIZE * sizeof(int32_t));
memset(dst1_v, 0xFF, LARGEST_INPUT_SIZE * sizeof(int32_t));
- call_ref(dst0_u, dst0_v, src, dstW, rgb2yuv);
- call_new(dst1_u, dst1_v, src, dstW, rgb2yuv);
+ call_ref(dst0_u, dst0_v, src, dstW, rgb2yuv, NULL);
+ call_new(dst1_u, dst1_v, src, dstW, rgb2yuv, NULL);
if (memcmp(dst0_u, dst1_u, dstW * byte_size) ||
memcmp(dst0_v, dst1_v, dstW * byte_size))
fail();
- bench_new(dst1_u, dst1_v, src, dstW, rgb2yuv);
+ bench_new(dst1_u, dst1_v, src, dstW, rgb2yuv, NULL);
}
}
}
@@ -342,10 +343,11 @@ static void check_input_planar_rgb_to_a(void)
#define LARGEST_INPUT_SIZE 512
#define INPUT_SIZES 6
static const int input_sizes[] = {8, 24, 128, 144, 256, 512};
- uint8_t *src[4];
+ const uint8_t *src[4];
int32_t rgb2yuv[9] = {0};
- declare_func(void, uint8_t *dst, uint8_t *src[4], int w, int32_t *rgb2yuv);
+ declare_func(void, uint8_t *dst, const uint8_t *src[4],
+ int w, int32_t *rgb2yuv, void *opaque);
LOCAL_ALIGNED_8(int32_t, src_r, [LARGEST_INPUT_SIZE]);
LOCAL_ALIGNED_8(int32_t, src_g, [LARGEST_INPUT_SIZE]);
@@ -386,12 +388,12 @@ static void check_input_planar_rgb_to_a(void)
memset(dst0_a, 0x00, LARGEST_INPUT_SIZE * sizeof(int32_t));
memset(dst1_a, 0x00, LARGEST_INPUT_SIZE * sizeof(int32_t));
- call_ref(dst0_a, src, dstW, rgb2yuv);
- call_new(dst1_a, src, dstW, rgb2yuv);
+ call_ref(dst0_a, src, dstW, rgb2yuv, NULL);
+ call_new(dst1_a, src, dstW, rgb2yuv, NULL);
if (memcmp(dst0_a, dst1_a, dstW * byte_size))
fail();
- bench_new(dst1_a, src, dstW, rgb2yuv);
+ bench_new(dst1_a, src, dstW, rgb2yuv, NULL);
}
}
}
--
2.40.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-05-13 9:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-13 9:28 [FFmpeg-devel] [PATCH 01/10] tests/checkasm/hevc_*: Fix funtion pointer types Andreas Rheinhardt
2024-05-13 9:29 ` [FFmpeg-devel] [PATCH 02/10] tests/checkasm/huffyuvdsp: Use correct function pointer type Andreas Rheinhardt
2024-05-13 9:29 ` [FFmpeg-devel] [PATCH 03/10] tests/checkasm/llviddsp: " Andreas Rheinhardt
2024-05-13 9:29 ` [FFmpeg-devel] [PATCH 04/10] tests/checkasm/motion: " Andreas Rheinhardt
2024-05-13 9:30 ` [FFmpeg-devel] [PATCH 05/10] tests/checkasm/vp8dsp: " Andreas Rheinhardt
2024-05-13 9:30 ` [FFmpeg-devel] [PATCH 06/10] tests/checkasm/vvc_mc: " Andreas Rheinhardt
2024-05-13 9:30 ` [FFmpeg-devel] [PATCH 07/10] tests/checkasm/vf_colorspace: " Andreas Rheinhardt
2024-05-13 9:30 ` [FFmpeg-devel] [PATCH 08/10] tests/checkasm/vf_bwdif: " Andreas Rheinhardt
2024-05-13 9:30 ` [FFmpeg-devel] [PATCH 09/10] tests/checkasm/vf_blend: Add missing function parameter Andreas Rheinhardt
2024-05-14 19:48 ` Marton Balint
2024-05-13 9:30 ` Andreas Rheinhardt [this message]
2024-05-15 10:37 ` [FFmpeg-devel] [PATCH 01/10] tests/checkasm/hevc_*: Fix funtion pointer types Andreas Rheinhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=GV1P250MB07372214706556648B4FDC6B8FE22@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM \
--to=andreas.rheinhardt@outlook.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git