diff options
Diffstat (limited to 'src/motion_vector.h')
-rw-r--r-- | src/motion_vector.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/motion_vector.h b/src/motion_vector.h index d739e80..68d14fe 100644 --- a/src/motion_vector.h +++ b/src/motion_vector.h @@ -30,9 +30,11 @@ namespace libgav1 { -constexpr bool IsGlobalMvBlock(bool is_global_mv_block, +constexpr bool IsGlobalMvBlock(const BlockParameters& bp, GlobalMotionTransformationType type) { - return is_global_mv_block && + return (bp.y_mode == kPredictionModeGlobalMv || + bp.y_mode == kPredictionModeGlobalGlobalMv) && + !IsBlockDimension4(bp.size) && type > kGlobalMotionTransformationTypeTranslation; } |