* [FFmpeg-devel] [PATCH 0/2] checkasm: updated tests for sw_scale
@ 2022-06-13 16:36 Swinney, Jonathan
2022-06-21 20:12 ` Martin Storsjö
0 siblings, 1 reply; 2+ messages in thread
From: Swinney, Jonathan @ 2022-06-13 16:36 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Martin Storsjö, J. Dekker, Pop, Sebastian
Here is an updated patch series for the yuv2plane[X|1] implementations and tests. The checkasm test wasn't working at all for aarch64, and the x86_64 behavior differs from the default implementation so I had to include some code to specialize the test for x86_64. Please let me know if you would like me to do that at different way.
I also left in some code to print out helpful debugging messages when the tests fail. I need them for my own work and thought they might be useful to share, but I'm happy to remove them if you would prefer it that way.
Thanks!
Jonathan Swinney
_______________________________________________
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".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [FFmpeg-devel] [PATCH 0/2] checkasm: updated tests for sw_scale
2022-06-13 16:36 [FFmpeg-devel] [PATCH 0/2] checkasm: updated tests for sw_scale Swinney, Jonathan
@ 2022-06-21 20:12 ` Martin Storsjö
0 siblings, 0 replies; 2+ messages in thread
From: Martin Storsjö @ 2022-06-21 20:12 UTC (permalink / raw)
To: Swinney, Jonathan; +Cc: J. Dekker, Pop, Sebastian, ffmpeg-devel
On Mon, 13 Jun 2022, Swinney, Jonathan wrote:
> Here is an updated patch series for the yuv2plane[X|1] implementations
> and tests. The checkasm test wasn't working at all for aarch64, and the
> x86_64 behavior differs from the default implementation so I had to
> include some code to specialize the test for x86_64. Please let me know
> if you would like me to do that at different way.
Did you consider what I suggested in the last round - making two rounds of
the test, one without the bitexact flag, where it's ok to be off by one
(or some other epsilon) from the C reference, and one with the bitexact
flag? I would presume that the currently tested x86 routines would fall
into that category of non-bitexact. That way, you'd get exact tests for
implementations that claim to be that, and fuzzy tests allowing minor
differences, for such implementations. That would allow testing all
variants without all the current horrible ifdefs, right?
> I also left in some code to print out helpful debugging messages when
> the tests fail. I need them for my own work and thought they might be
> useful to share, but I'm happy to remove them if you would prefer it
> that way.
I think it's good to keep such debug printouts in the checkasm tests - the
checkasm tests are meant for developers working on the assembly
implementations anyway, so whenever the test fails, the printouts are
valuable.
// Martin
_______________________________________________
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".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-21 20:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 16:36 [FFmpeg-devel] [PATCH 0/2] checkasm: updated tests for sw_scale Swinney, Jonathan
2022-06-21 20:12 ` Martin Storsjö
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