summaryrefslogtreecommitdiff
path: root/src/i965_vpp_avs.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-10-13 17:58:46 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-11-11 11:57:18 +0100
commitd491750cac25123684fba4ed84a11083e47a5b25 (patch)
tree325b5dbf90340f01a5e46031a4127c5a72787aa7 /src/i965_vpp_avs.h
parent6af907d7cb9c6b38aeec81a83f63445b60bfdff1 (diff)
downloadlibva-intel-driver-d491750cac25123684fba4ed84a11083e47a5b25.tar.gz
vpp: drop internal postprocessing (I965_PP_xxx) flags.
Exclusively use VA-API defined video processing flags, instead of yet redefining another set with limited use. This means that we can use scaling, colorspace and picture structure flags as is, without an extra layer of conversion. Drop I965_PP_FLAG_MCDI (motion compensated deinterlacing), which was never set. Dropped the associated dead code, which was never used. And, anyway, advanced deinterlacing modes shall go through the explcit VPP interfaces. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'src/i965_vpp_avs.h')
-rw-r--r--src/i965_vpp_avs.h7
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 */