Commit 18939f99 authored by Romain Vimont's avatar Romain Vimont Committed by Thomas Daede

Store sb_size_log2 in FrameState

TileStateMut, which may be directly created from FrameState, needs
sb_size_log2.
parent 992e07ff
......@@ -397,6 +397,7 @@ impl Sequence {
#[derive(Debug)]
pub struct FrameState<T: Pixel> {
pub sb_size_log2: usize,
pub input: Arc<Frame<T>>,
pub input_hres: Plane<T>, // half-resolution version of input luma
pub input_qres: Plane<T>, // quarter-resolution version of input luma
......@@ -425,6 +426,7 @@ impl<T: Pixel> FrameState<T> {
let luma_padding_y = frame.planes[0].cfg.ypad;
Self {
sb_size_log2: fi.sb_size_log2(),
input: frame,
input_hres: Plane::new(luma_width / 2, luma_height / 2, 1, 1, luma_padding_x / 2, luma_padding_y / 2),
input_qres: Plane::new(luma_width / 4, luma_height / 4, 2, 2, luma_padding_x / 4, luma_padding_y / 4),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment