summaryrefslogtreecommitdiffstats
path: root/filters/f_lavfi.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2022-04-03 20:12:50 -0700
committerPhilip Langdale <github.philipl@overt.org>2022-09-21 09:39:34 -0700
commitf221666ade9a60195a37d809973fbc18391306ed (patch)
tree787e48c1ba96a02ec5d11644352fe2fa442b1b2b /filters/f_lavfi.c
parent7b84e6fa8988f31e297cbc3adcd8a81e18e63bc8 (diff)
downloadmpv-f221666ade9a60195a37d809973fbc18391306ed.tar.bz2
mpv-f221666ade9a60195a37d809973fbc18391306ed.tar.xz
f_hwtransfer: mp_image_pool: support HW -> HW mapping
Certain combinations of hardware formats require the use of hwmap to transfer frames between the formats, rather than hwupload, which will fail if attempted. To keep the usage of vf_format for HW -> HW transfers as intuitive as possible, we should detect these cases and do the map operation instead of uploading. For now, the relevant cases are moving between VAAPI and Vulkan, and VAAPI and DRM Prime, in both directions. I have introduced the IMGFMT entry for Vulkan here so that I can put in the complete mapping table. It's actually not useless, as you can map to Vulkan, use a Vulkan filter and then map back to VAAPI for display output.
Diffstat (limited to 'filters/f_lavfi.c')
-rw-r--r--filters/f_lavfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/filters/f_lavfi.c b/filters/f_lavfi.c
index cbb3066430..41a3ea4eac 100644
--- a/filters/f_lavfi.c
+++ b/filters/f_lavfi.c
@@ -561,8 +561,8 @@ static void init_graph(struct lavfi *c)
hwdec_ctx = hwdec_devices_get_first(info->hwdec_devs);
}
if (hwdec_ctx && hwdec_ctx->av_device_ref) {
- MP_VERBOSE(c, "Configuring hwdec_interop=%s for filters\n",
- hwdec_ctx->driver_name);
+ MP_VERBOSE(c, "Configuring hwdec_interop=%s for filter graph: %s\n",
+ hwdec_ctx->driver_name, c->graph_string);
for (int n = 0; n < c->graph->nb_filters; n++) {
AVFilterContext *filter = c->graph->filters[n];
filter->hw_device_ctx =