mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:37:35 +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
|
@ -142,9 +142,9 @@ static constexpr int interp_filter_tree[4] = {
|
|||
-EightTapSmooth, -EightTapSharp
|
||||
};
|
||||
static constexpr int mv_joint_tree[6] = {
|
||||
-MvJointZero, 2,
|
||||
-MvJointHnzvz, 4,
|
||||
-MvJointHzvnz, -MvJointHnzvnz
|
||||
-MotionVectorAllZero, 2,
|
||||
-MotionVectorNonZeroColumn, 4,
|
||||
-MotionVectorNonZeroRow, -(MotionVectorNonZeroColumn | MotionVectorNonZeroRow)
|
||||
};
|
||||
static constexpr int mv_class_tree[20] = {
|
||||
-MvClass0, 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue