summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibVideo/VP9/Enums.h
diff options
context:
space:
mode:
authorZaggy1024 <zaggy1024@gmail.com>2022-11-25 04:19:35 -0600
committerAndreas Kling <kling@serenityos.org>2022-11-30 08:28:30 +0100
commitd82dc14bd9f92904805bb9029dd2fb2f9a4ea361 (patch)
treeab208931dc5951019c4fe97eb180f97e449b9ae4 /Userland/Libraries/LibVideo/VP9/Enums.h
parentf4761dab09a4fd2dd4a9293e255f5e2f27bd95e8 (diff)
downloadserenity-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.h7
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 {