aboutsummaryrefslogtreecommitdiff
path: root/src/motion_vector.h
diff options
context:
space:
mode:
authorBoyuan Yang <byang@debian.org>2021-11-07 08:50:18 -0500
committerBoyuan Yang <byang@debian.org>2021-11-07 08:50:18 -0500
commit320ef65362608ee1148c299d8d5d7618af34e470 (patch)
treec47911c219d1e35b8b0771e9e0176eff0e0d08ec /src/motion_vector.h
parent2381d803c76105f44717d75f089ec37f51e5cfe4 (diff)
downloadlibgav1-320ef65362608ee1148c299d8d5d7618af34e470.tar.gz
libgav1-320ef65362608ee1148c299d8d5d7618af34e470.tar.bz2
libgav1-320ef65362608ee1148c299d8d5d7618af34e470.zip
New upstream version 0.17.0
Diffstat (limited to 'src/motion_vector.h')
-rw-r--r--src/motion_vector.h6
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;
}