• wm4's avatar
    dxva: preparations for new hwaccel API · 4dec101a
    wm4 authored
    The actual hwaccel code will need to access an internal context instead
    of avctx->hwaccel_context, so add a new DXVA_CONTEXT() macro, that will
    dispatch between the "old" external and the new internal context.
    
    Also, the new API requires a new D3D11 pixfmt, so all places which check
    for the pixfmt need to be adjusted. Introduce a ff_dxva2_is_d3d11()
    function, which does the check.
    Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
    4dec101a
dxva2_mpeg2.c 13.2 KB