forge
Explore
Log in

Don't you dare go Hollow

Reword a second capability claim my own probe disproved

Browse files at this commit

738a983a1ea8c53542b2ba268f90e814c9d70e24Ahmet Kaan GümüşParent: 0bdb5a0
  • fix
    • reword a second capability claim my own probe disproved
Show full message
fix(av1): reword a second capability claim my own probe disproved

"a partition below 8x8 (this encoder never writes one)" is false. Default
aomenc at --cpu-used=0 --cq-level=20 over lavfi testsrc2, with palette and the
rect/AB/1to4 partitions switched off so the earlier refusals cannot mask it,
reaches that refusal directly. Three sites in decode.rs plus the inventory now
describe the decoder instead.

Method note for whoever probes the remaining two claims (angle delta, non-DC
chroma on an 8x8 inter leaf): a claim can only be tested on a stream that gets
PAST every refusal in front of it, so disable the tools whose refusals fire
first rather than concluding the case is unreachable.

Suite 262 passed / 0 failed.
crates/ec-av1/src/decode.rsmodified+3 -3
@@ -5858,7 +5858,7 @@ pub(crate) fn decode_key_frame_tile_with_cdfs(
5858 }5858 }
5859 if part8 != PARTITION_NONE {5859 if part8 != PARTITION_NONE {
5860 return Err(unsupported(5860 return Err(unsupported(
5861- "a partition below 8x8 (this encoder never writes one)",5861+ "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)",
5862 ));5862 ));
5863 }5863 }
5864 let leaf_mode = decode_leaf8(5864 let leaf_mode = decode_leaf8(
@@ -5929,7 +5929,7 @@ pub(crate) fn decode_key_frame_tile_with_cdfs(
5929 }5929 }
5930 if part8 != PARTITION_NONE {5930 if part8 != PARTITION_NONE {
5931 return Err(unsupported(5931 return Err(unsupported(
5932- "a partition below 8x8 (this encoder never writes one)",5932+ "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)",
5933 ));5933 ));
5934 }5934 }
5935 let leaf_mode = decode_leaf8(5935 let leaf_mode = decode_leaf8(
@@ -10879,7 +10879,7 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs(
10879 let part8 = dec.symbol(&mut cdfs.partition_w8[leaf_ctx]);10879 let part8 = dec.symbol(&mut cdfs.partition_w8[leaf_ctx]);
10880 if part8 != PARTITION_NONE {10880 if part8 != PARTITION_NONE {
10881 return Err(unsupported(10881 return Err(unsupported(
10882- "a partition below 8x8 (this encoder never writes one)",10882+ "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)",
10883 ));10883 ));
10884 }10884 }
10885 let (skip, is_inter, skip_mode_leaf, compound_ctx8) =10885 let (skip, is_inter, skip_mode_leaf, compound_ctx8) =
crates/ec-av1/src/refusal_inventory.rsmodified+1 -1
@@ -28,7 +28,7 @@ const CAPABILITY_CLAIMS: &[&str] = &[
28 "a non-DC chroma mode on an 8x8 inter-frame leaf (this encoder never writes one)",28 "a non-DC chroma mode on an 8x8 inter-frame leaf (this encoder never writes one)",
29 "a nonzero angle delta (this encoder never writes one)",29 "a nonzero angle delta (this encoder never writes one)",
30 "a partition below 16x16 other than a clean split (this decoder codes only the square arms below 16x16)",30 "a partition below 16x16 other than a clean split (this decoder codes only the square arms below 16x16)",
31- "a partition below 8x8 (this encoder never writes one)",31+ "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)",
32 "a tx_type symbol on a rectangular transform (never expected at this size)",32 "a tx_type symbol on a rectangular transform (never expected at this size)",
33 ];33 ];
34 34