+ let mut row_flags: Vec<bool> = Vec::with_capacity(bheight * 4);
+ let mut col_flags: Vec<bool> = Vec::with_capacity(bw * 4);
+ if (frame_flags & 0x10000) != 0 {
+ if (frame_flags & 0x8000) == 0 {
+ decode_flags(br, &mut row_flags, 1, bheight * 4 - 1)?;
+ } else {
+ row_flags.resize(bheight * 4, false);
+ }
+ if (frame_flags & 0x4000) == 0 {
+ decode_flags(br, &mut col_flags, 1, bw * 4 - 1)?;
+ } else {
+ col_flags.resize(bw * 4, false);
+ }
+ } else {
+ row_flags.resize(bheight * 4, false);
+ col_flags.resize(bw * 4, false);
+ }
+ //store frame_flags * 8 & 0x7F8
+