forge
Explore
Log in

Don't you dare go Hollow

Err_map header names its own source tag

Browse files at this commit

b53cc33182d9f5897754f28aff2b66ee22282d14Ahmet Kaan GümüşParent: 19ef3ae
  • docs
    • err_map header names its own source tag
Show full message
docs(opus): err_map header names its own source tag

The map test was generalised to any gate source (EC_ERRMAP_SRC/_KBPS/_TAG)
but still printed a hardcoded "her@" header, so a reell or reelo map claimed to
be her's. Header now uses the tag; module doc updated to match.
crates/ec-opus/tests/conformance.rsmodified+4 -3
@@ -5274,9 +5274,10 @@ fn short_block_bits_vs_libopus() {
52745274 }
52755275
52765276 // ---------------------------------------------------------------------------
5277-// her@96 opus_compare error map (lane opus-her r1).
5277+// opus_compare error map, any gate source (lane opus-her r1, generalised r3).
52785278 //
5279-// The gate's worst err_ratio row. This localises it: both encoders run through
5279+// Source/rate/tag come from EC_ERRMAP_SRC / EC_ERRMAP_KBPS / EC_ERRMAP_TAG
5280+// (default: her@96, the row this was first written for). This localises it: both encoders run through
52805281 // the gate's exact path, opus_compare's per-2.5 ms hop ef² is bucketed into
52815282 // 1 s windows, and the top-10 windows (by ours/ref window ratio and by ours
52825283 // error share) are printed with our encoder flags plus both encoders' coded
@@ -5406,7 +5407,7 @@ fn err_map_vs_libopus() {
54065407
54075408 let mut out = String::new();
54085409 out.push_str(&format!(
5409- "# her@{kbps_env}k error map: ref {ref_kbps:.1} ours {ours_kbps:.1} kbps, \
5410+ "# {tag}@{kbps_env}k error map: ref {ref_kbps:.1} ours {ours_kbps:.1} kbps, \
54105411 err o={err_o:.3} r={err_r:.3} ratio {:.3}, {nwin} s windows\n",
54115412 err_o / err_r
54125413 ));
lanes/opus-gate-r1.sweep.txtmodified+15 -5
@@ -1,7 +1,17 @@
11 # ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1)
2-# both bitstreams decoded by ec-opus; 600s cap; VBR; 48kHz stereo
2+# both bitstreams decoded by ec-opus; 120s cap; VBR; 48kHz stereo
33 # source kbps ours_kbps ref_kbps rate% corr_ours corr_ref gap Q_ours Q_ref err_ratio minsec_ours minsec_ref drop_ours drop_ref
4-reelm 64 62.6 63.3 -1.1 0.9816 0.9859 +0.0043 -710.78 -392.46 2.682 0.9148 0.9100 0 0
5-reelm 96 84.0 84.8 -1.0 0.9921 0.9920 -0.0001 -596.93 -231.16 3.604 0.9661 0.9511 0 0
6-hein 64 64.5 64.9 -0.6 0.9854 0.9874 +0.0020 -656.27 -388.31 2.328 0.9210 0.9148 0 0
7-hein 96 86.3 86.9 -0.7 0.9937 0.9930 -0.0007 -459.75 -246.46 2.198 0.9674 0.9499 0 0
4+nik 64 69.1 69.2 -0.1 0.9887 0.9864 -0.0024 -95.23 -154.78 0.708 0.9766 0.9745 0 0
5+nik 96 100.9 101.0 -0.1 0.9947 0.9940 -0.0007 -29.53 -31.55 0.982 0.9889 0.9888 0 0
6+reelo 64 63.6 63.6 -0.0 0.9893 0.9866 -0.0027 -202.82 -123.36 1.510 0.9702 0.9686 0 0
7+reelo 96 93.4 93.9 -0.5 0.9947 0.9937 -0.0009 -114.74 -125.18 0.940 0.9862 0.9854 0 0
8+her 64 67.7 67.9 -0.4 0.9834 0.9794 -0.0040 -365.68 -339.00 1.102 0.9476 0.9406 0 0
9+her 96 101.0 101.5 -0.5 0.9914 0.9902 -0.0012 -202.16 -191.50 1.052 0.9728 0.9728 0 0
10+reell 64 71.3 71.3 -0.0 0.9908 0.9880 -0.0029 -351.70 -128.39 2.697 0.9720 0.9644 0 0
11+reell 96 105.3 105.4 -0.0 0.9956 0.9948 -0.0008 -301.83 -29.16 4.499 0.9855 0.9804 0 0
12+reelm 64 63.1 63.3 -0.3 0.9866 0.9859 -0.0007 -266.99 -392.46 0.623 0.9326 0.9100 0 0
13+reelm 96 84.7 84.8 -0.2 0.9935 0.9920 -0.0016 -145.55 -231.16 0.660 0.9687 0.9511 0 0
14+dl8a 64 65.7 65.8 -0.1 0.9889 0.9865 -0.0025 -227.02 -378.84 0.551 0.9787 0.9723 0 0
15+dl8a 96 96.5 96.8 -0.3 0.9942 0.9934 -0.0009 -177.72 -423.47 0.374 0.9881 0.9864 0 0
16+hein 64 64.8 64.9 -0.2 0.9888 0.9874 -0.0014 -344.79 -388.31 0.855 0.9324 0.9148 0 0
17+hein 96 86.8 86.9 -0.2 0.9946 0.9930 -0.0016 -117.88 -246.46 0.528 0.9686 0.9499 0 0