ec-av1: 4:4:4 loop filter byte-exact (filters-on witness)
Browse files at this commit6f661bc726ad78caa279b066adb57c5cb08b5050Parent: a44ac261 changed file +7 -1
crates/ec-av1/src/decode.rsmodified+7 -1
| @@ -20825,8 +20825,14 @@ fn deblock_plane_span( | |||
| 20825 | // filter level there). r7's superres measurement is preserved: its frame | 20825 | // filter level there). r7's superres measurement is preserved: its frame |
| 20826 | // was already 8-aligned, so this bound equals `frame_width` there and | 20826 | // was already 8-aligned, so this bound equals `frame_width` there and |
| 20827 | // still excludes the superblock padding up to `true_width`. | 20827 | // still excludes the superblock padding up to `true_width`. |
| 20828 | + // lane-av1-444: the chroma crop follows the sequence subsampling, not a | ||
| 20829 | + // hardcoded 4:2:0 halving -- at 4:4:4 the halved bound clipped the whole | ||
| 20830 | + // filter to the top-left quarter of each chroma plane. | ||
| 20828 | let (cw, ch) = if chroma { | 20831 | let (cw, ch) = if chroma { |
| 20829 | - (frame_width.div_ceil(2), frame_height.div_ceil(2)) | 20832 | + ( |
| 20833 | + frame_width.div_ceil(1 << ss_x(fctx)), | ||
| 20834 | + frame_height.div_ceil(1 << ss_y(fctx)), | ||
| 20835 | + ) | ||
| 20830 | } else { | 20836 | } else { |
| 20831 | (frame_width, frame_height) | 20837 | (frame_width, frame_height) |
| 20832 | }; | 20838 | }; |