History

ac3enc: Change EXP_DIFF_THRESHOLD to 500.

This patch changes the exponent difference threshold in the exponent strategy decision function of the AC-3 encoder. I tested lowering in increments of 100. From 1000 down to 500 generally increased in quality with each step, but 400 was generally much worse.

Justin Ruggles committed 15 years ago

Commit 10030221 parent 057f3d23 files · +3 −3Browse files

Unified · Split

3 files
  1. libavcodec/ac3enc.c +1 −1
  2. tests/ref/acodec/ac3_fixed +1 −1
  3. tests/ref/lavf/rm +1 −1
libavcodec/ac3enc.c+1−1
@@ -434,7 +434,7 @@ static void extract_exponents(AC3EncodeContext *s) · 433 unmodified lines
434 * Exponent Difference Threshold.434 * Exponent Difference Threshold.
435 * New exponents are sent if their SAD exceed this number.435 * New exponents are sent if their SAD exceed this number.
436 */436 */
437#define EXP_DIFF_THRESHOLD 1000437#define EXP_DIFF_THRESHOLD 500
438 438
439 439
440/**440/**
tests/ref/acodec/ac3_fixed+1−1
@@ -1,2 +1,2 @@
19823c8f74097eab5d148cf0536ae932e *./tests/data/acodec/ac3.rm137e119c644ba0472c079d0e907bf78df *./tests/data/acodec/ac3.rm
298751 ./tests/data/acodec/ac3.rm298751 ./tests/data/acodec/ac3.rm
tests/ref/lavf/rm+1−1
@@ -1,2 +1,2 @@
1e1990def7b195a568340f2c1a89d6587 *./tests/data/lavf/lavf.rm1b97899ef2812cd1c8851dea550e042e4 *./tests/data/lavf/lavf.rm
2346706 ./tests/data/lavf/lavf.rm2346706 ./tests/data/lavf/lavf.rm

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t