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 @@
2 //!2 //!
3 //! `INTER_IVF=<path> EC_VP9_PIXDUMP=<out> cargo test -p ec-vp9 --test scratch_pixdump`3 //! `INTER_IVF=<path> EC_VP9_PIXDUMP=<out> cargo test -p ec-vp9 --test scratch_pixdump`
4 //!4 //!
5-//! Layout matches the oracle: per shown frame, Y (w*h), U ((w/2)*(h/2)),5+//! Layout matches the oracle: per shown frame, Y (w*h), U and V each
6-//! V ((w/2)*(h/2)), rows packed to the visible width.6+//! (((w+1)/2)*((h+1)/2)) (chroma ceils, so odd extents keep the last column/
7+//! row), rows packed to the visible width.
7 8
8 use ec_vp9::decode::Decoder;9 use ec_vp9::decode::Decoder;
9 10
lanes/vp9odd.report.mdmodified+5 -2
@@ -34,8 +34,11 @@ an inter frame that inherits the odd size) reproduces it:
34 reference chroma planes of an odd-sized frame are stored at floor(w/2)34 reference chroma planes of an odd-sized frame are stored at floor(w/2)
35 but the predictor reads libvpx's uv_crop_width = (w+1)/2)35 but the predictor reads libvpx's uv_crop_width = (w+1)/2)
36 36
37-That string is gone after the fix (step: rerun the same command; frame 1 now37+After the fix the named ODD-DIMS refusal is gone. This particular fixture does
38-decodes).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.
39 42
40 ## Root cause43 ## Root cause
41 44