From a1ed13869c1586897c323ebf65cfd3975092ffad Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 21 Jan 2015 22:08:24 +0100 Subject: video: remove vfcap.h And remove all uses of the VFCAP_CSP_SUPPORTED* constants. This is supposed to reduce conversions if many filters are used (with many incompatible pixel formats), and also for preferring the VO's natively supported pixel formats (as opposed to conversion). This is worthless by now. Not only do the main VOs not use software conversion, but also the way vf_lavfi and libavfilter work mostly break the way the old MPlayer mechanism worked. Other important filters like vf_vapoursynth do not support "proper" format negotation either. Part of this was already removed with the vf_scale cleanup from today. While I'm touching every single VO, also fix the query_format argument (it's not a FourCC anymore). --- video/out/vo_direct3d.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'video/out/vo_direct3d.c') diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index 0ef9375e9c..293eff55fe 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -32,7 +32,6 @@ #include "options/m_option.h" #include "talloc.h" #include "vo.h" -#include "video/vfcap.h" #include "video/csputils.h" #include "video/mp_image.h" #include "video/img_format.h" @@ -1127,13 +1126,13 @@ static bool init_rendering_mode(d3d_priv *priv, uint32_t fmt, bool initialize) * @return 0 on failure, device capabilities (not probed * currently) on success. */ -static int query_format(struct vo *vo, uint32_t movie_fmt) +static int query_format(struct vo *vo, int movie_fmt) { d3d_priv *priv = vo->priv; if (!init_rendering_mode(priv, movie_fmt, false)) return 0; - return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW; + return 1; } /**************************************************************************** -- cgit v1.2.3