• Philip Langdale's avatar
    lavfi/vf_hwupload: Add support for HW -> HW transfers · 88d2ccbe
    Philip Langdale authored
    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.
    88d2ccbe
vf_hwupload.c 7.49 KB