Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: "Wu, Tong1" <tong1.wu-at-intel.com@ffmpeg.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v10 2/9] avcodec: add D3D12VA hardware accelerated H264 decoding
Date: Sun, 3 Dec 2023 00:30:38 +0000
Message-ID: <SN6PR11MB29901511A1CF586A1D2823A5C087A@SN6PR11MB2990.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20231202205715.GU3543730@pb2>


>> The implementation is based on:
>> https://learn.microsoft.com/en-us/windows/win32/medfound/direct3d-12-
>video-overview
>>
>> With the Direct3D 12 video decoding support, we can render or process
>> the decoded images by the pixel shaders or compute shaders directly
>> without the extra copy overhead, which is beneficial especially if you
>> are trying to render or post-process a 4K or 8K video.
>>
>> The command below is how to enable d3d12va:
>> ffmpeg -hwaccel d3d12va -i input.mp4 output.mp4
>>
>> Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
>> Signed-off-by: Tong Wu <tong1.wu@intel.com>
>> ---
>>  configure                   |   2 +
>>  libavcodec/Makefile         |   3 +
>>  libavcodec/d3d11va.h        |   3 -
>>  libavcodec/d3d12va_decode.c | 564
>++++++++++++++++++++++++++++++++++++
>>  libavcodec/d3d12va_decode.h | 179 ++++++++++++
>>  libavcodec/d3d12va_h264.c   | 207 +++++++++++++
>>  libavcodec/dxva2.c          |  29 +-
>>  libavcodec/dxva2.h          |   3 -
>>  libavcodec/dxva2_av1.c      |   4 +-
>>  libavcodec/dxva2_h264.c     |  26 +-
>>  libavcodec/dxva2_hevc.c     |   6 +-
>>  libavcodec/dxva2_internal.h |  74 ++---
>>  libavcodec/dxva2_mpeg2.c    |   6 +-
>>  libavcodec/dxva2_vc1.c      |   6 +-
>>  libavcodec/dxva2_vp9.c      |   6 +-
>>  libavcodec/h264_slice.c     |   4 +
>>  libavcodec/h264dec.c        |   3 +
>>  libavcodec/hwaccels.h       |   1 +
>>  libavcodec/hwconfig.h       |   2 +
>>  19 files changed, 1061 insertions(+), 67 deletions(-)
>>  create mode 100644 libavcodec/d3d12va_decode.c
>>  create mode 100644 libavcodec/d3d12va_decode.h
>>  create mode 100644 libavcodec/d3d12va_h264.c
>
>breaks build with mingw64 here
>
>make
>CC	libavcodec/dxva2.o
>In file included from src/libavcodec/dxva2.c:33:0:
>src/libavcodec/dxva2_internal.h:141:39: error: unknown type name
>‘D3D12VADecodeContext’; did you mean ‘AVD3D11VADeviceContext’?
>                                       D3D12VADecodeContext *ctx, const AVFrame *frame,
>                                       ^~~~~~~~~~~~~~~~~~~~
>                                       AVD3D11VADeviceContext
>src/ffbuild/common.mak:81: recipe for target 'libavcodec/dxva2.o' failed
>make: *** [libavcodec/dxva2.o] Error 1
>

Thanks for pointing this out. I'll add #if CONFIG_D3D12VA for this function int next patch set. BTW it seems CONFIG_D3D12VA was not automatically enabled on your side.

Thanks,
Tong

>
>[...]
>--
>Michael     GnuPG fingerprint:
>9FF2128B147EF6730BADF133611EC787040B0FAB
>
>Old school: Use the lowest level language in which you can solve the problem
>            conveniently.
>New school: Use the highest level language in which the latest supercomputer
>            can solve the problem without the user falling asleep waiting.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

  reply	other threads:[~2023-12-03  0:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-02 10:12 [FFmpeg-devel] [PATCH v10 1/9] libavutil: add hwcontext_d3d12va and AV_PIX_FMT_D3D12 Tong Wu
2023-12-02 10:12 ` [FFmpeg-devel] [PATCH v10 2/9] avcodec: add D3D12VA hardware accelerated H264 decoding Tong Wu
2023-12-02 20:57   ` Michael Niedermayer
2023-12-03  0:30     ` Wu, Tong1 [this message]
2023-12-02 10:12 ` [FFmpeg-devel] [PATCH v10 3/9] avcodec: add D3D12VA hardware accelerated HEVC decoding Tong Wu
2023-12-02 10:12 ` [FFmpeg-devel] [PATCH v10 4/9] avcodec: add D3D12VA hardware accelerated VP9 decoding Tong Wu
2023-12-02 10:12 ` [FFmpeg-devel] [PATCH v10 5/9] avcodec: add D3D12VA hardware accelerated AV1 decoding Tong Wu
2023-12-02 10:12 ` [FFmpeg-devel] [PATCH v10 6/9] avcodec: add D3D12VA hardware accelerated MPEG-2 decoding Tong Wu
2023-12-02 10:12 ` [FFmpeg-devel] [PATCH v10 7/9] avcodec: add D3D12VA hardware accelerated VC1 decoding Tong Wu
2023-12-02 10:12 ` [FFmpeg-devel] [PATCH v10 8/9] Changelog: D3D12VA hardware accelerated H264, HEVC, VP9, AV1, MPEG-2 and " Tong Wu
2023-12-02 10:12 ` [FFmpeg-devel] [PATCH v10 9/9] avcodec/d3d12va_hevc: enable allow_profile_mismatch flag for d3d12va msp profile Tong Wu
2023-12-02 10:23 ` [FFmpeg-devel] [PATCH v10 1/9] libavutil: add hwcontext_d3d12va and AV_PIX_FMT_D3D12 Wu, Tong1

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SN6PR11MB29901511A1CF586A1D2823A5C087A@SN6PR11MB2990.namprd11.prod.outlook.com \
    --to=tong1.wu-at-intel.com@ffmpeg.org \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git