diff options
author | Zaggy1024 <zaggy1024@gmail.com> | 2022-11-25 04:19:35 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-30 08:28:30 +0100 |
commit | d82dc14bd9f92904805bb9029dd2fb2f9a4ea361 (patch) | |
tree | ab208931dc5951019c4fe97eb180f97e449b9ae4 /Userland/Libraries/LibVideo/VP9/Enums.h | |
parent | f4761dab09a4fd2dd4a9293e255f5e2f27bd95e8 (diff) | |
download | serenity-d82dc14bd9f92904805bb9029dd2fb2f9a4ea361.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibVideo/VP9/Enums.h')
-rw-r--r-- | Userland/Libraries/LibVideo/VP9/Enums.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Userland/Libraries/LibVideo/VP9/Enums.h b/Userland/Libraries/LibVideo/VP9/Enums.h index f639cc38bf..a46c4c41bc 100644 --- a/Userland/Libraries/LibVideo/VP9/Enums.h +++ b/Userland/Libraries/LibVideo/VP9/Enums.h @@ -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 { |