1. 28 6月, 2017 3 次提交
    • W
      dxva: preparations for new hwaccel API · ab28108a
      wm4 提交于
      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.
      
      Merges Libav commit 4dec101a.
      Adds changes to vp9 over the Libav patch.
      Signed-off-by: NDiego Biurrun <diego@biurrun.de>
      ab28108a
    • W
      lavc: set avctx->hwaccel before init · 865360ba
      wm4 提交于
      So a hwaccel can access avctx->hwaccel in init for whatever reason. This
      is for the new d3d hwaccel API. We could create separate entrypoints for
      each of the 3 hwaccel types (dxva2, d3d11va, new d3d11va), but this
      seems nicer.
      
      Merges Libav commit bd747b92.
      Signed-off-by: NDiego Biurrun <diego@biurrun.de>
      865360ba
    • W
      lavu: add new D3D11 pixfmt and hwcontext · 3303511f
      wm4 提交于
      To be used with the new d3d11 hwaccel decode API.
      
      With the new hwaccel API, we don't want surfaces to depend on the
      decoder (other than the required dimension and format). The old D3D11VA
      pixfmt uses ID3D11VideoDecoderOutputView pointers, which include the
      decoder configuration, and thus is incompatible with the new hwaccel
      API. This patch introduces AV_PIX_FMT_D3D11, which uses ID3D11Texture2D
      and an index. It's simpler and compatible with the new hwaccel API.
      
      The introduced hwcontext supports only the new pixfmt.
      
      Frame upload code untested.
      
      Significantly based on work by Steve Lhomme <robux4@gmail.com>, but with
      heavy changes/rewrites.
      
      Merges Libav commit fff90422.
      Signed-off-by: NDiego Biurrun <diego@biurrun.de>
      3303511f
  2. 27 6月, 2017 14 次提交
  3. 26 6月, 2017 9 次提交
  4. 25 6月, 2017 14 次提交