mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:37:46 +00:00
LibVideo/VP9: Use an enum to select segment features
This throws out some ugly `#define`s we had that were taking the role of an enum anyway. We now have some nice getters in the contexts that take the place of the combo of `seg_feature_active()` and then doing a lookup in `FrameContext::m_segmentation_features` directly.
This commit is contained in:
parent
6e6cc1ddb2
commit
094b0d8a78
8 changed files with 46 additions and 29 deletions
|
@ -161,4 +161,17 @@ enum Token : u8 {
|
|||
DctValCat6 = 10,
|
||||
};
|
||||
|
||||
enum class SegmentFeature : u8 {
|
||||
// SEG_LVL_ALT_Q
|
||||
UseAlternativeQuantizerBase,
|
||||
// SEG_LVL_ALT_L
|
||||
UseAlternativeLoopFilterBase,
|
||||
// SEG_LVL_REF_FRAME
|
||||
ReferenceFrameOverride,
|
||||
// SEG_LVL_SKIP
|
||||
SkipResidualsOverride,
|
||||
// SEG_LVL_MAX
|
||||
Sentinel,
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue