diff options
Diffstat (limited to 'src/i965_vpp_avs.h')
-rw-r--r-- | src/i965_vpp_avs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/i965_vpp_avs.h b/src/i965_vpp_avs.h index ead42614..0b01c8f5 100644 --- a/src/i965_vpp_avs.h +++ b/src/i965_vpp_avs.h @@ -99,4 +99,11 @@ avs_init_state(AVSState *avs, const AVSConfig *config); bool avs_update_coefficients(AVSState *avs, float sx, float sy, uint32_t flags); +/** Checks whether AVS is needed, e.g. if high-quality scaling is requested */ +static inline bool +avs_is_needed(uint32_t flags) +{ + return ((flags & VA_FILTER_SCALING_MASK) >= VA_FILTER_SCALING_HQ); +} + #endif /* I965_VPP_AVS_H */ |