forge
Explore
Log in

Don't you dare go Hollow

vp9odd: align report refusal-witness prose and scratch chroma doc with the shipped ceil layout

Browse files at this commit

ecbbeba446a9702704e354974008b69a323c0da2Ahmet Kaan GümüşParent: 38b3c46
crates/ec-vp9/tests/scratch_pixdump.rsmodified+3 -2
@@ -2,8 +2,9 @@
22 //!
33 //! `INTER_IVF=<path> EC_VP9_PIXDUMP=<out> cargo test -p ec-vp9 --test scratch_pixdump`
44 //!
5-//! Layout matches the oracle: per shown frame, Y (w*h), U ((w/2)*(h/2)),
6-//! V ((w/2)*(h/2)), rows packed to the visible width.
5+//! Layout matches the oracle: per shown frame, Y (w*h), U and V each
6+//! (((w+1)/2)*((h+1)/2)) (chroma ceils, so odd extents keep the last column/
7+//! row), rows packed to the visible width.
78
89 use ec_vp9::decode::Decoder;
910
lanes/vp9odd.report.mdmodified+5 -2
@@ -34,8 +34,11 @@ an inter frame that inherits the odd size) reproduces it:
3434 reference chroma planes of an odd-sized frame are stored at floor(w/2)
3535 but the predictor reads libvpx's uv_crop_width = (w+1)/2)
3636
37-That string is gone after the fix (step: rerun the same command; frame 1 now
38-decodes).
37+After the fix the named ODD-DIMS refusal is gone. This particular fixture does
38+not then decode cleanly, because its frame 1 is genuinely corrupt: libvpx itself
39+reports `Corrupt frame detected` on it (see Deferred). So the fixture witnesses
40+only the removal of the refusal; the permanent odd witness generates its own
41+valid odd stream instead.
3942
4043 ## Root cause
4144