mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 11:57:36 +00:00
LibVideo/VP9: Use a bitwise enum for motion vector joint selection
The motion vector joints enum is set up so that the first bit indicates that a vector should have a non-zero value in the column, and the second bit indicates a non-zero value for the row. Taking advantage of this makes the code a bit more legible.
This commit is contained in:
parent
f4761dab09
commit
d82dc14bd9
3 changed files with 13 additions and 14 deletions
|
@ -113,10 +113,9 @@ enum class PredictionMode : u8 {
|
|||
};
|
||||
|
||||
enum MvJoint : u8 {
|
||||
MvJointZero = 0,
|
||||
MvJointHnzvz = 1,
|
||||
MvJointHzvnz = 2,
|
||||
MvJointHnzvnz = 3,
|
||||
MotionVectorAllZero = 0,
|
||||
MotionVectorNonZeroColumn = 1,
|
||||
MotionVectorNonZeroRow = 2,
|
||||
};
|
||||
|
||||
enum MvClass : u8 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue