From: flow gg <hlefthleft@gmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH 3/4] checkasm/rv34dsp: add rv34_idct_dc_add test Date: Wed, 31 Jan 2024 20:09:22 +0800 Message-ID: <CAEa-L+svGB_NdcjmSg8UZZwyXgt7YGhQMWqKNPkqAX8kuf2qZg@mail.gmail.com> (raw) In-Reply-To: <CAEa-L+t9Uao2sYibCXvtjVtNBo1FOzFku9DCbVPicTpKmiwy1A@mail.gmail.com> [-- Attachment #1: Type: text/plain, Size: 171 bytes --] The name was written incorrectly by mistake.. It has been corrected in this response. flow gg <hlefthleft@gmail.com> 于2024年1月31日周三 20:00写道: > > [-- Attachment #2: 0003-checkasm-rv34dsp-add-rv34_idct_dc_add-test.patch --] [-- Type: text/x-patch, Size: 1389 bytes --] From 126f0b52cb8dd2f8fd5b881a4b166d1680562a0f Mon Sep 17 00:00:00 2001 From: sunyuechi <sunyuechi@iscas.ac.cn> Date: Wed, 31 Jan 2024 19:01:25 +0800 Subject: [PATCH 3/4] checkasm/rv34dsp: add rv34_idct_dc_add test --- tests/checkasm/rv34dsp.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/checkasm/rv34dsp.c b/tests/checkasm/rv34dsp.c index 56167d2569..5382d5926b 100644 --- a/tests/checkasm/rv34dsp.c +++ b/tests/checkasm/rv34dsp.c @@ -56,10 +56,34 @@ static void test_rv34_inv_transform_dc(RV34DSPContext *s) { report("rv34_inv_transform_dc"); } +static void test_rv34_idct_dc_add(RV34DSPContext *s) { + declare_func(void, uint8_t *dst, ptrdiff_t stride, int dc); + + if (check_func(s->rv34_idct_dc_add, "rv34_idct_dc_add")) { + LOCAL_ALIGNED_16(uint8_t, p1, [BUF_SIZE]); + LOCAL_ALIGNED_16(uint8_t, p2, [BUF_SIZE]); + + randomize(p1, BUF_SIZE); + memcpy(p2, p1, BUF_SIZE * sizeof(*p1)); + + call_ref(p1, 4, 5); + call_new(p2, 4, 5); + + if (memcmp(p1, p2, BUF_SIZE * sizeof (*p1)) != 0) { + fail(); + } + + bench_new(p1, 4, 5); + } + + report("rv34_idct_dc_add"); +} + void checkasm_check_rv34dsp(void) { RV34DSPContext s = { 0 }; ff_rv34dsp_init(&s); test_rv34_inv_transform_dc(&s); + test_rv34_idct_dc_add(&s); } -- 2.43.0 [-- Attachment #3: Type: text/plain, Size: 251 bytes --] _______________________________________________ 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".
prev parent reply other threads:[~2024-01-31 12:09 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-31 12:00 flow gg 2024-01-31 12:09 ` flow gg [this message]
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=CAEa-L+svGB_NdcjmSg8UZZwyXgt7YGhQMWqKNPkqAX8kuf2qZg@mail.gmail.com \ --to=hlefthleft@gmail.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