projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
h264: add SIMD optimisations for x86_64 (not enabled by default)
[nihav.git]
/
nihav-itu
/
src
/
codecs
/
h264
/
sets.rs
diff --git
a/nihav-itu/src/codecs/h264/sets.rs
b/nihav-itu/src/codecs/h264/sets.rs
index b02faf121df592c21f90bccfb1cb8da0fa56384b..61cf0a8994a84f147dc0be06d8aa0498444cae54 100644
(file)
--- a/
nihav-itu/src/codecs/h264/sets.rs
+++ b/
nihav-itu/src/codecs/h264/sets.rs
@@
-44,10
+44,7
@@
pub struct SeqParameterSet {
}
pub fn is_high_profile(profile: u8) -> bool {
}
pub fn is_high_profile(profile: u8) -> bool {
- match profile {
- 100 | 110 | 122 | 244 | 44 | 83 | 86 | 118 | 128 | 138 | 139 | 134 | 125 => true,
- _ => false,
- }
+ matches!(profile, 100 | 110 | 122 | 244 | 44 | 83 | 86 | 118 | 128 | 138 | 139 | 134 | 125)
}
#[allow(clippy::cognitive_complexity)]
}
#[allow(clippy::cognitive_complexity)]