Switched to range syntax for bitdepth matching
This commit is contained in:
parent
cacc762810
commit
4b46eefa51
|
@ -153,21 +153,21 @@ impl<'core> Filter<'core> for Mask<'core> {
|
||||||
SampleType::Integer => {
|
SampleType::Integer => {
|
||||||
let depth = from_property(self.source.info().format).bits_per_sample();
|
let depth = from_property(self.source.info().format).bits_per_sample();
|
||||||
match depth {
|
match depth {
|
||||||
_ if depth <= 8 => filter_for_int::<u8>(
|
0..=8 => filter_for_int::<u8>(
|
||||||
&mut frame,
|
&mut frame,
|
||||||
src_frame,
|
src_frame,
|
||||||
depth,
|
depth,
|
||||||
average,
|
average,
|
||||||
self.luma_scaling,
|
self.luma_scaling,
|
||||||
),
|
),
|
||||||
_ if 8 < depth && depth <= 16 => filter_for_int::<u16>(
|
9..=16 => filter_for_int::<u16>(
|
||||||
&mut frame,
|
&mut frame,
|
||||||
src_frame,
|
src_frame,
|
||||||
depth,
|
depth,
|
||||||
average,
|
average,
|
||||||
self.luma_scaling,
|
self.luma_scaling,
|
||||||
),
|
),
|
||||||
_ if 16 < depth && depth <= 32 => filter_for_int::<u32>(
|
17..=32 => filter_for_int::<u32>(
|
||||||
&mut frame,
|
&mut frame,
|
||||||
src_frame,
|
src_frame,
|
||||||
depth,
|
depth,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user