mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
test_codec: add checksum runs with the DSP
"Checksum with DSP" and "Checksum folder with DSP" give the CRC32 of the DSP's 16-bit output for a file or a folder, as "Checksum" does for the codec's output. That lets the DSP of a device, with its settings, be checked against a reference for several files in one run; "Write WAV with DSP" writes one file, /test.wav. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
fc1d445d69
commit
e27fb9a9f0
1 changed files with 13 additions and 0 deletions
|
|
@ -918,6 +918,8 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
WRITE_WAV_WITH_DSP,
|
WRITE_WAV_WITH_DSP,
|
||||||
CHECKSUM,
|
CHECKSUM,
|
||||||
CHECKSUM_DIR,
|
CHECKSUM_DIR,
|
||||||
|
CHECKSUM_WITH_DSP,
|
||||||
|
CHECKSUM_DIR_WITH_DSP,
|
||||||
QUIT,
|
QUIT,
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
BOOST,
|
BOOST,
|
||||||
|
|
@ -934,6 +936,8 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
"Write WAV with DSP",
|
"Write WAV with DSP",
|
||||||
"Checksum",
|
"Checksum",
|
||||||
"Checksum folder",
|
"Checksum folder",
|
||||||
|
"Checksum with DSP",
|
||||||
|
"Checksum folder with DSP",
|
||||||
"Quit",
|
"Quit",
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
"Boosting",
|
"Boosting",
|
||||||
|
|
@ -967,6 +971,13 @@ menu:
|
||||||
|
|
||||||
scandir = 0;
|
scandir = 0;
|
||||||
|
|
||||||
|
/* Map checksum runs with DSP to CHECKSUM and CHECKSUM_DIR: the
|
||||||
|
* checksum is then that of the DSP's output. */
|
||||||
|
bool dsp_checksum = (result == CHECKSUM_WITH_DSP ||
|
||||||
|
result == CHECKSUM_DIR_WITH_DSP);
|
||||||
|
if (dsp_checksum)
|
||||||
|
result -= 2;
|
||||||
|
|
||||||
/* Map test runs with checksum calcualtion to standard runs
|
/* Map test runs with checksum calcualtion to standard runs
|
||||||
* SPEED_TEST and SPEED_TEST_DIR and set the 'checksum' flag. */
|
* SPEED_TEST and SPEED_TEST_DIR and set the 'checksum' flag. */
|
||||||
if ((checksum = (result == CHECKSUM ||
|
if ((checksum = (result == CHECKSUM ||
|
||||||
|
|
@ -978,6 +989,8 @@ menu:
|
||||||
if ((use_dsp = (result >= SPEED_TEST_WITH_DSP &&
|
if ((use_dsp = (result >= SPEED_TEST_WITH_DSP &&
|
||||||
result <= WRITE_WAV_WITH_DSP)))
|
result <= WRITE_WAV_WITH_DSP)))
|
||||||
result -= 3;
|
result -= 3;
|
||||||
|
else
|
||||||
|
use_dsp = dsp_checksum;
|
||||||
|
|
||||||
if (result == SPEED_TEST) {
|
if (result == SPEED_TEST) {
|
||||||
wavinfo.fd = -1;
|
wavinfo.fd = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue