Introduce support for the new hwaccel API for D3D11VA and DXVA2.

This refactors the avconv dxva2/d3d11va code, which in turn was
taken from Steve's WIP patches. Same for d3d11va hw frames support,
which was written by Steve and which my patch partially rewrites.

Please let me know if this is going into the right direction.

Steve Lhomme (6):
  libavutil: add support for AV_HWDEVICE_TYPE_D3D11VA
  avconv: dxva2: factorize some code that can be common with d3d11va
  avconv: dxva2: move the DXVA GUID definitions outside of the template
  avconv_dxva2: remove unused initial values
  avconv: add avconv_d3d11va
  avconv: use the typedefs more to make comparison between dxva2 and
    d3d11va

wm4 (1):
  [WIP] dxva/d3d: add support for new hwaccel API

 Changelog                      |   1 +
 avtools/Makefile               |   2 +-
 avtools/avconv.h               |   2 +
 avtools/avconv_dxva.c          |  28 ++
 avtools/avconv_dxva2.c         | 302 ++++---------------
 avtools/avconv_dxva_template.c | 294 ++++++++++++++++++
 avtools/avconv_guid.c          |  20 ++
 avtools/avconv_opt.c           |   4 +
 configure                      |   6 +
 doc/APIchanges                 |   3 +
 libavcodec/decode.c            |   4 +-
 libavcodec/dxva2.c             | 662 ++++++++++++++++++++++++++++++++++++++++-
 libavcodec/dxva2_h264.c        |  23 +-
 libavcodec/dxva2_hevc.c        |  16 +-
 libavcodec/dxva2_internal.h    |  60 +++-
 libavcodec/dxva2_mpeg2.c       |  16 +-
 libavcodec/dxva2_vc1.c         |  22 +-
 libavcodec/h264_slice.c        |   3 +-
 libavutil/Makefile             |   3 +
 libavutil/hwcontext.c          |   4 +
 libavutil/hwcontext.h          |   1 +
 libavutil/hwcontext_d3d11va.c  | 452 ++++++++++++++++++++++++++++
 libavutil/hwcontext_d3d11va.h  |  99 ++++++
 libavutil/hwcontext_dxva2.h    |   3 +
 libavutil/hwcontext_internal.h |   1 +
 libavutil/pixdesc.c            |   4 +
 libavutil/pixfmt.h             |   4 +-
 libavutil/version.h            |   2 +-
 28 files changed, 1744 insertions(+), 297 deletions(-)
 create mode 100644 avtools/avconv_dxva.c
 create mode 100644 avtools/avconv_dxva_template.c
 create mode 100644 avtools/avconv_guid.c
 create mode 100644 libavutil/hwcontext_d3d11va.c
 create mode 100644 libavutil/hwcontext_d3d11va.h

-- 
2.11.0

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to