[PATCH] fate: test flac LPC encoder
The LPC encoder is not used at compression levels below 3 but the basic acodec test uses -compression_level 2. This adds a test using -compression_level 5, which is the current default. --- tests/fate/acodec.mak | 4 +++- tests/ref/acodec/flac-comp-5 | 4 ++++ 2 files changed, 7 insertions(+), 1 deletions(-) create mode 100644 tests/ref/acodec/flac-comp-5 diff --git a/tests/fate/acodec.mak b/tests/fate/acodec.mak index 325bbd9..0cec639 100644 --- a/tests/fate/acodec.mak +++ b/tests/fate/acodec.mak @@ -113,9 +113,11 @@ fate-acodec-dca2: CMP_SHIFT = -2048 fate-acodec-dca2: CMP_TARGET = 527 fate-acodec-dca2: SIZE_TOLERANCE = 1632 -FATE_ACODEC-$(call ENCDEC, FLAC, FLAC) += fate-acodec-flac +FATE_ACODEC-$(call ENCDEC, FLAC, FLAC) += fate-acodec-flac fate-acodec-flac-comp-5 fate-acodec-flac: FMT = flac fate-acodec-flac: CODEC = flac -compression_level 2 +fate-acodec-flac-comp-5: FMT = flac +fate-acodec-flac-comp-5: CODEC = flac -compression_level 5 FATE_ACODEC-$(call ENCDEC, G723_1, G723_1) += fate-acodec-g723_1 fate-acodec-g723_1: tests/data/asynth-8000-1.wav diff --git a/tests/ref/acodec/flac-comp-5 b/tests/ref/acodec/flac-comp-5 new file mode 100644 index 0000000..34377c7 --- /dev/null +++ b/tests/ref/acodec/flac-comp-5 @@ -0,0 +1,4 @@ +6acc6bfd4c46fb4dba7f01259455a804 *tests/data/fate/acodec-flac-comp-5.flac +236511 tests/data/fate/acodec-flac-comp-5.flac +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-flac-comp-5.out.wav +stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400 -- 1.7.9
Hi, 2014-08-14 17:15 GMT+02:00 James Darnley <james.darnley@gmail.com>:
The LPC encoder is not used at compression levels below 3 but the basic acodec test uses -compression_level 2. This adds a test using -compression_level 5, which is the current default.
What order is used in that case? It may be good to in fact test the dsp with orders that are not multiple of 2/4/8. Otherwise, makes sense. -- Christophe
On 2014-08-14 18:03, Christophe Gisquet wrote:
Hi,
2014-08-14 17:15 GMT+02:00 James Darnley <james.darnley@gmail.com>:
The LPC encoder is not used at compression levels below 3 but the basic acodec test uses -compression_level 2. This adds a test using -compression_level 5, which is the current default.
What order is used in that case? It may be good to in fact test the dsp with orders that are not multiple of 2/4/8.
Otherwise, makes sense.
Minimum 1, maximum 8. Should I find out what order(s) are actually chosen?
Hi, 2014-08-14 18:08 GMT+02:00 James Darnley <james.darnley@gmail.com>:
Minimum 1, maximum 8. Should I find out what order(s) are actually chosen?
The encoder algorithm might change and make that information useless, but that could be useful. I fear that only checking which orders it *tests* is insufficient: if the dsp function is broken for some orders, it may just lead to not selecting those orders and not change the output. On the other hand, if you think the tests already have sufficient coverage, I'm ready to take your word on it, and skip doing what I'm suggesting. -- Christophe
After further searching and understanding the makefile I see that the lpc code is tested by the complete fate sample suite. This patch is unnecessary. Anyway to answer the questions... On 2014-08-14 18:14, Christophe Gisquet wrote:
Hi,
2014-08-14 18:08 GMT+02:00 James Darnley <james.darnley@gmail.com>:
Minimum 1, maximum 8. Should I find out what order(s) are actually chosen?
The encoder algorithm might change and make that information useless,
That would mean the test result needs changing too.
but that could be useful. I fear that only checking which orders it *tests* is insufficient: if the dsp function is broken for some orders, it may just lead to not selecting those orders and not change the output.
It may be possible that it could be broken in this manner but it sounds, to me, very unlikely. FYI: 1, 4, 6, 7, 8 are all used at least once.
participants (2)
-
Christophe Gisquet -
James Darnley