forge
Explore
Log in

Don't you dare go Hollow

Scope the left sign context to its superblock row

Browse files at this commit

d7b77889ae39d8f23b4063df9a8817d0163d71d6Ahmet Kaan GümüşParent: 154aa4b
  • fix
    • scope the left sign context to its superblock row
Show full message
fix(av1): scope the left sign context to its superblock row
crates/ec-av1/src/tile.rsmodified+1 -3
@@ -167,11 +167,9 @@ pub fn dc_key_frame_tile_levels(
167167 // the left, which is dropped at the start of every superblock row the way a
168168 // decoder clears its left context there.
169169 let mut above: Vec<Option<bool>> = vec![None; sb_cols as usize];
170- let mut left: Option<bool> = None;
171-
172170 let mut enc = SymbolEncoder::new();
173171 for r in 0..sb_rows {
174- left = None;
172+ let mut left: Option<bool> = None;
175173 for c in 0..sb_cols {
176174 let dc_level = levels[(r * sb_cols + c) as usize];
177175 let level = dc_level.abs();