]> git.sesse.net Git - ffmpeg/commit
lavfi/vf_hwupload: Add support for HW -> HW transfers
authorPhilip Langdale <philipl@overt.org>
Thu, 24 Oct 2019 01:11:37 +0000 (18:11 -0700)
committerLynne <dev@lynne.ee>
Tue, 4 Feb 2020 23:19:48 +0000 (23:19 +0000)
commit88d2ccbe9384a1cba44a2909ef896aac50636d11
tree8f137a7dde99b0f88cc79333b261a41d48b2ceb3
parenta88449ffb2f249e31ecf98f84e7f8c338308e7e4
lavfi/vf_hwupload: Add support for HW -> HW transfers

As we find ourselves wanting a way to transfer frames between
HW devices (or more realistically, between APIs on the same device),
it's desirable to have a way to describe the relationship. While
we could imagine introducing a `hwtransfer` filter, there is
almost no difference from `hwupload`. The main new feature we need
is a way to specify the target device. Having a single device
for the filter chain is obviously insufficient if we're dealing
with two devices.

So let's add a way to specify the upload target device, and if none
is specified, continue with the existing behaviour.

We must also correctly preserve the sw_format on such a transfer.
doc/filters.texi
libavfilter/vf_hwupload.c
libavfilter/vf_hwupload_cuda.c