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). --- common/encode_lavc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/encode_lavc.c b/common/encode_lavc.c index 92af771d61..4cb653d511 100644 --- a/common/encode_lavc.c +++ b/common/encode_lavc.c @@ -26,7 +26,6 @@ #include "common/global.h" #include "common/msg.h" #include "common/msg_control.h" -#include "video/vfcap.h" #include "options/m_option.h" #include "options/options.h" #include "osdep/timer.h" @@ -836,12 +835,12 @@ int encode_lavc_supports_pixfmt(struct encode_lavc_context *ctx, return 0; if (!ctx->vc->pix_fmts) - return VFCAP_CSP_SUPPORTED; + return 1; else { const enum AVPixelFormat *p; for (p = ctx->vc->pix_fmts; *p >= 0; ++p) { if (pix_fmt == *p) - return VFCAP_CSP_SUPPORTED; + return 1; } } return 0; -- cgit v1.2.3