Commit 37a62634 authored by Romain Vimont's avatar Romain Vimont Committed by Luca Barbato
Browse files

Make RestorationState derive Debug

FrameState is Debug. In order to embed RestorationState into FrameState,
make it Debug too.
parent 90bed0bf
...@@ -57,7 +57,7 @@ pub const SGRPROJ_PARAMS_EPS: [[u8; 2]; 1 << SGRPROJ_PARAMS_BITS] = [ ...@@ -57,7 +57,7 @@ pub const SGRPROJ_PARAMS_EPS: [[u8; 2]; 1 << SGRPROJ_PARAMS_BITS] = [
[ 0, 11], [ 0, 14], [30, 0], [75, 0], [ 0, 11], [ 0, 14], [30, 0], [75, 0],
]; ];
#[derive(Copy, Clone)] #[derive(Copy, Clone, Debug)]
pub enum RestorationFilter { pub enum RestorationFilter {
None, None,
Wiener { coeffs: [[i8; 3]; 2] }, Wiener { coeffs: [[i8; 3]; 2] },
...@@ -315,7 +315,7 @@ fn wiener_stripe_rdu(coeffs: [[i8; 3]; 2], y: isize, h: isize, x: usize, w: usiz ...@@ -315,7 +315,7 @@ fn wiener_stripe_rdu(coeffs: [[i8; 3]; 2], y: isize, h: isize, x: usize, w: usiz
} }
} }
#[derive(Copy, Clone)] #[derive(Copy, Clone, Debug)]
pub struct RestorationUnit { pub struct RestorationUnit {
pub filter: RestorationFilter, pub filter: RestorationFilter,
pub coded: bool, pub coded: bool,
...@@ -330,7 +330,7 @@ impl RestorationUnit { ...@@ -330,7 +330,7 @@ impl RestorationUnit {
} }
} }
#[derive(Clone)] #[derive(Clone, Debug)]
pub struct RestorationPlane { pub struct RestorationPlane {
// all size units are subsampled if the plane is subsampled // all size units are subsampled if the plane is subsampled
pub clipped_cfg: PlaneConfig, pub clipped_cfg: PlaneConfig,
...@@ -393,7 +393,7 @@ impl RestorationPlane { ...@@ -393,7 +393,7 @@ impl RestorationPlane {
} }
} }
#[derive(Clone)] #[derive(Clone, Debug)]
pub struct RestorationState { pub struct RestorationState {
pub plane: [RestorationPlane; PLANES] pub plane: [RestorationPlane; PLANES]
} }
......
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