From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 29982483DB for ; Sat, 2 Dec 2023 20:57:26 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E1FF668CAAA; Sat, 2 Dec 2023 22:57:23 +0200 (EET) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C3E8368CA34 for ; Sat, 2 Dec 2023 22:57:16 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id E127D40003 for ; Sat, 2 Dec 2023 20:57:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1701550636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NRSJRyVW4i/JPIy3MDLASEa/04mw9uRDNVTzd1Uhz+s=; b=akXGCayIuZEIQz746vOCCKDgD/VHViM8NWvu3ql/N0m0ymQndKMGQWE5Y35MdpUQ/UnYIU mnARpGX3xbKxPJqHafcn31WlN3nPdIc1zk77F0h9xjSI1ciwLxXoywVeKmKicGgW0ETO3T 8s3MzBbqQs8icCttTWVs/qvH2p3Y1pu7eA+teq3MX756XioAEtJO0MNoWUFL7mJ5OVoJL+ b4Bx3HVHw1qYHGjbNgb6W/31wwFS51XduLnMwxWaBPKi6nU9sd3o0XnP+c416uxpOdimlp 9HOtyAJeHMhdyPLyUF9DK6vQjGtqyX0vspx4MKqoavRiN1AjeE78z1he4RAeKw== Date: Sat, 2 Dec 2023 21:57:15 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20231202205715.GU3543730@pb2> References: <20231202101250.1410-1-tong1.wu@intel.com> <20231202101250.1410-2-tong1.wu@intel.com> MIME-Version: 1.0 In-Reply-To: <20231202101250.1410-2-tong1.wu@intel.com> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH v10 2/9] avcodec: add D3D12VA hardware accelerated H264 decoding X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: multipart/mixed; boundary="===============6781690978041048366==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============6781690978041048366== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZorHkA7RTXoNVeSc" Content-Disposition: inline --ZorHkA7RTXoNVeSc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 02, 2023 at 06:12:42PM +0800, Tong Wu wrote: > From: Wu Jianhua >=20 > The implementation is based on: > https://learn.microsoft.com/en-us/windows/win32/medfound/direct3d-12-vide= o-overview >=20 > 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. >=20 > The command below is how to enable d3d12va: > ffmpeg -hwaccel d3d12va -i input.mp4 output.mp4 >=20 > Signed-off-by: Wu Jianhua > Signed-off-by: Tong Wu > --- > 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 =E2=80=98D= 3D12VADecodeContext=E2=80=99; did you mean =E2=80=98AVD3D11VADeviceContext= =E2=80=99? D3D12VADecodeContext *ctx, const AVF= rame *frame, ^~~~~~~~~~~~~~~~~~~~ AVD3D11VADeviceContext src/ffbuild/common.mak:81: recipe for target 'libavcodec/dxva2.o' failed make: *** [libavcodec/dxva2.o] Error 1 [...] --=20 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. --ZorHkA7RTXoNVeSc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZWuaKAAKCRBhHseHBAsP q7YeAJ9KDaTthXo2J8cQfdsNb3NPN02brACgkkFx8mAMjJW9eGEzYnxDw7pY+Sg= =2sr6 -----END PGP SIGNATURE----- --ZorHkA7RTXoNVeSc-- --===============6781690978041048366== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============6781690978041048366==--