Re: [FFmpeg-devel] FFmpeg 5.2 ?

2022-11-04 Thread Artem Galin
DTS to PTS reorder bsf, threading changes, ddagrab, oneVPL support with AV1 HW encode for new ARC Gfx as well as DX11 for QSV are valuable items for next 5.2 release On Fri, 4 Nov 2022 at 14:10, Michael Niedermayer wrote: > On Fri, Nov 04, 2022 at 11:30:38AM +0100, Jean-Baptiste Kempf wrote: >

Re: [FFmpeg-devel] [PATCH] libavcodec/hevc_mp4toannexb_bsf: ignore extra data if possible

2021-09-13 Thread Artem Galin
LGTM. On Fri, 10 Sept 2021 at 05:10, Haihao Xiang wrote: > > It is possible that an IRAP frame in input AVPacket has SPS and PPS, and > these headers should take effect. Hence we should not prepend extra data > to IRAP frame in this case, otherwise an IRAP frame in output AVPacket > will have 2

[FFmpeg-devel] [PATCH 9/9] libavfilter/vf_deinterlace_qsv: enabling d3d11va support, added mfxhdlpair

2021-08-20 Thread Artem Galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_deinterlace_qsv.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git

[FFmpeg-devel] [PATCH 8/9] libavfilter/vf_scale_qsv: add MFX_MEMTYPE_FROM_VPPOUT flag to frame_type

2021-08-20 Thread Artem Galin
From: Artem Galin In case of DX11 device type, Media SDK is sensitive to these flags. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c index fe8ed37418

[FFmpeg-devel] [PATCH 7/9] libavfilter/vf_scale_qsv: enabling d3d11va support, added mfxhdlpair

2021-08-20 Thread Artem Galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libavfilter

[FFmpeg-devel] [PATCH 6/9] libavfilter/qsvvpp: add MFX_MEMTYPE_FROM_VPPOUT flag to output frames

2021-08-20 Thread Artem Galin
From: Artem Galin In case of DX11 device type, Media SDK is sensitive to these flags. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 66b8673d4e..135d4c4e36 100644

[FFmpeg-devel] [PATCH 5/9] libavfilter/qsvvpp: enabling d3d11va support, added mfxhdlpair

2021-08-20 Thread Artem Galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libavfilter

[FFmpeg-devel] [PATCH 4/9] libavutil/hwcontext_d3d11va: adding more texture information to the D3D11 hwcontext API

2021-08-20 Thread Artem Galin
From: Artem Galin Microsoft VideoProcessor requires texture with D3DUSAGE_RENDERTARGET flag as output. There is no way to allocate array of textures with D3D11_BIND_RENDER_TARGET flag and .ArraySize > 2 by ID3D11Device_CreateTexture2D due to the Microsoft limitation. Add

[FFmpeg-devel] [PATCH 3/9] libavutil/hwcontext_qsv: add usage child_device_type argument to explicitly select d3d11va/DX11 device type

2021-08-20 Thread Artem Galin
From: Artem Galin UPD: Rebase of last patch set over current master and use DX9 as default device type. Makes selection of dxva2/DX9 device type by default as before with explicit d3d11va/DX11 usage to cover more HW configurations. Added warning message to expect changing default device type

[FFmpeg-devel] [PATCH 2/9] libavutil/hwcontext_qsv: supporting d3d11va device type

2021-08-20 Thread Artem Galin
From: Artem Galin This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated as one texture with array of slices. Signed-off-by: Artem Galin --- libavutil/hwcontext_qsv.c | 326 +++--- 1 file changed, 265 insertions

[FFmpeg-devel] [PATCH 1/9] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2021-08-20 Thread Artem Galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 53

[FFmpeg-devel] [PATCH 3/8] libavutil/hwcontext_qsv: enabling d3d11va usage by default, add usage child_device_type argument

2021-07-22 Thread Artem Galin
From: Artem Galin Rebase of last patch set over current master. Makes selection of d3d11va/DX11 device type by default and over dxva/DX9, helps to cover more HW configurations without explicit parameters need. Fixes TGL / AV1 decode as requires DX11 with default parameters Add headless/multi

[FFmpeg-devel] [PATCH 6/8] libavfilter/vf_scale_qsv: enabling d3d11va support, added mfxhdlpair

2021-07-22 Thread Artem Galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libavfilter

[FFmpeg-devel] [PATCH 5/8] libavfilter/qsvvpp: enabling d3d11va support, added mfxhdlpair

2021-07-22 Thread Artem Galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libavfilter

[FFmpeg-devel] [PATCH 7/8] libavfilter/vf_scale_qsv: add MFX_MEMTYPE_FROM_VPPOUT flag to frame_type

2021-07-22 Thread Artem Galin
From: Artem Galin In case of DX11 device type, Media SDK is sensitive to these flags. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c index c02d98f3db

[FFmpeg-devel] [PATCH 1/8] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2021-07-22 Thread Artem Galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 53

[FFmpeg-devel] [PATCH 8/8] libavfilter/vf_deinterlace_qsv: enabling d3d11va support, added mfxhdlpair

2021-07-22 Thread Artem Galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_deinterlace_qsv.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git

[FFmpeg-devel] [PATCH 4/8] libavutil/hwcontext_d3d11va: adding more texture information to the D3D11 hwcontext API

2021-07-22 Thread Artem Galin
From: Artem Galin Microsoft VideoProcessor requires texture with D3DUSAGE_RENDERTARGET flag as output. There is no way to allocate array of textures with D3D11_BIND_RENDER_TARGET flag and .ArraySize > 2 by ID3D11Device_CreateTexture2D due to the Microsoft limitation. Add

[FFmpeg-devel] [PATCH 2/8] libavutil/hwcontext_qsv: supporting d3d11va device type

2021-07-22 Thread Artem Galin
From: Artem Galin This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated as one texture with array of slices. Signed-off-by: Artem Galin --- libavutil/hwcontext_qsv.c | 323 +++--- 1 file changed, 262 insertions

Re: [FFmpeg-devel] [PATCH v7 8/8] libavfilter/vf_deinterlace_qsv: enabling d3d11va support, added mfxhdlpair

2021-02-25 Thread Artem Galin
On Wed, 24 Feb 2021 at 17:50, Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Artem Galin > > Sent: Tuesday, November 3, 2020 7:46 PM > > To: ffmpeg-devel@ffmpeg.org > > Cc: Artem Galin > > Su

Re: [FFmpeg-devel] Proposal of two projects for GSoC

2021-02-25 Thread Artem Galin
On Wed, 24 Feb 2021 at 17:01, Soft Works wrote: > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Artem Galin > > Sent: Wednesday, February 24, 2021 4:40 PM > > To: FFmpeg development discussions and patches > de...@ffmpeg.or

[FFmpeg-devel] Proposal of two projects for GSoC

2021-02-24 Thread Artem Galin
Hello, Please find the proposal for the following two projects for GSoC this year. The FATE project had been proposed earlier already but I don't know why it didn't happen. I previously got the feedback from Thilo Borgmann and would be happy to get feedback from the community as well.

Re: [FFmpeg-devel] [PATCH] lavf/qsv_scale: add interpolation methods support

2020-12-10 Thread Artem Galin
On Wed, 2 Dec 2020 at 04:25, Xiang, Haihao wrote: > On Tue, 2020-12-01 at 22:42 +0000, Artem Galin wrote: > > Since 1.33 API version > > > > https://github.com/Intel-Media-SDK/MediaSDK/blob/master/api/include/mfxstructures.h#L2088 > > > > Signed-off-by: Arte

[FFmpeg-devel] [PATCH] lavf/qsv_scale: fix green stripe at the bottom

2020-12-01 Thread Artem Galin
Explicitly set region of interest for input surfaces. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c index 5064dcbb60..321adbbb18 100644

[FFmpeg-devel] [PATCH] lavf/qsv_scale: add interpolation methods support

2020-12-01 Thread Artem Galin
Since 1.33 API version https://github.com/Intel-Media-SDK/MediaSDK/blob/master/api/include/mfxstructures.h#L2088 Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 17 + 1 file changed, 17 insertions(+) diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter

[FFmpeg-devel] [PATCH v7 3/8] libavutil/hwcontext_qsv: enabling d3d11va usage by default, add usage child_device_type argument

2020-11-03 Thread Artem Galin
Usage examples: DirectX 11 -init_hw_device qsv:hw,child_device_type=d3d11va DirectX 9 is still supported but requires explicit selection -init_hw_device qsv:hw,child_device_type=dxva2 Signed-off-by: Artem Galin --- doc/ffmpeg.texi | 20 - libavutil/hwcontext_qsv.c | 59

[FFmpeg-devel] [PATCH v7 2/8] libavutil/hwcontext_qsv: supporting d3d11va device type

2020-11-03 Thread Artem Galin
This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated as one texture with array of slices. Signed-off-by: Artem Galin --- libavutil/hwcontext_qsv.c | 323 +++--- 1 file changed, 262 insertions(+), 61 deletions(-) diff

[FFmpeg-devel] [PATCH v7 4/8] libavutil/hwcontext_d3d11va: adding more texture information to the D3D11 hwcontext API

2020-11-03 Thread Artem Galin
ore array of single textures instead of texture with multiple slices resolves this. Signed-off-by: Artem Galin --- libavutil/hwcontext_d3d11va.c | 24 ++- libavutil/hwcontext_d3d11va.h | 9 + libavutil/hwcontext_qsv.c | 37 +++ 3 fi

[FFmpeg-devel] [PATCH v7 8/8] libavfilter/vf_deinterlace_qsv: enabling d3d11va support, added mfxhdlpair

2020-11-03 Thread Artem Galin
Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_deinterlace_qsv.c | 44 ++-- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/libavfilter

[FFmpeg-devel] [PATCH v7 5/8] libavfilter/qsvvpp: enabling d3d11va support, added mfxhdlpair

2020-11-03 Thread Artem Galin
Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter

[FFmpeg-devel] [PATCH v7 7/8] libavfilter/vf_scale_qsv: add MFX_MEMTYPE_FROM_VPPOUT flag to frame_type

2020-11-03 Thread Artem Galin
In case of DX11 device type, Media SDK is sensitive to these flags. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c index 47701c20d0..9eb59325c3 100644

[FFmpeg-devel] [PATCH v7 6/8] libavfilter/vf_scale_qsv: enabling d3d11va support, added mfxhdlpair

2020-11-03 Thread Artem Galin
Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 43 +- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/libavfilter

[FFmpeg-devel] [PATCH v7 1/8] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-11-03 Thread Artem Galin
Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 53 ++- libavcodec/qsv_internal.h

Re: [FFmpeg-devel] [PATCH v4 03/11] libavutil/hwcontext_d3d11va: adding more texture information to the D3D11 hwcontext API

2020-05-23 Thread Artem Galin
New version of patch is available by link https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1253 On Sun, 10 May 2020 at 00:55, Soft Works wrote: > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Artem Galin > > Sent: Sunday, May 10, 202

[FFmpeg-devel] [PATCH v6 7/9] libavfilter/qsvvpp: enabling d3d11va support, added mfxhdlpair

2020-05-18 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libavfilter

[FFmpeg-devel] [PATCH v6 5/9] libavutil/hwcontext_qsv: enabling d3d11va usage by default, add usage child_device_type argument

2020-05-18 Thread artem . galin
From: Artem Galin Makes selection of d3d11va device type by default and over DirectX 9, which might break users with older drivers/systems. DCH driver with Gen6th support should be still fine. Decode, encode, transcode have been validated. child_device_type option is responsible for d3d11va

[FFmpeg-devel] [PATCH v6 8/9] libavfilter/vf_scale_qsv: enabling d3d11va support, added mfxhdlpair

2020-05-18 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 43 +- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git

[FFmpeg-devel] [PATCH v6 9/9] libavfilter/vf_deinterlace_qsv: enabling d3d11va support, added mfxhdlpair

2020-05-18 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_deinterlace_qsv.c | 44 ++-- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git

[FFmpeg-devel] [PATCH v6 6/9] libavutil/hwcontext_qsv: pass vendor option to child device

2020-05-18 Thread artem . galin
From: Artem Galin Signed-off-by: Artem Galin --- libavutil/hwcontext_qsv.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 488655b686..e75d4b7c24 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH v6 4/9] libavutil/hwcontext_qsv: supporting d3d11va device type

2020-05-18 Thread artem . galin
From: Artem Galin This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated as one texture with array of slices. Signed-off-by: Artem Galin --- libavutil/hwcontext_qsv.c | 323 +++--- 1 file changed, 262 insertions

[FFmpeg-devel] [PATCH v6 3/9] libavutil/hwcontext_d3d11va: adding the vendor option to d3d11va device creation

2020-05-18 Thread artem . galin
From: Artem Galin Example: --init_hw_device d3d11va:,vendor=0x8086 qsv_device option is still works and has higher priority over vendor option. Signed-off-by: Artem Galin hwctx; HRESULT hr; +AVDictionaryEntry *e; IDXGIAdapter *pAdapter = NULL; ID3D10Multithread

[FFmpeg-devel] [PATCH v6 2/9] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-05-18 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 53

[FFmpeg-devel] [PATCH v6 1/9] fftools/qsv: add device initialization from string

2020-05-18 Thread artem . galin
From: Artem Galin Signed-off-by: Artem Galin --- fftools/ffmpeg_opt.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 60bb437ea7..83f1b53e9d 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -558,7 +558,11

[FFmpeg-devel] [PATCH v5 1/9] fftools/qsv: add device initialization from string

2020-05-18 Thread artem . galin
From: Artem Galin Signed-off-by: Artem Galin --- fftools/ffmpeg_opt.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 60bb437ea7..83f1b53e9d 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -558,7 +558,11

[FFmpeg-devel] [PATCH v5 2/9] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-05-18 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 53

[FFmpeg-devel] [PATCH v5 4/9] libavutil/hwcontext_qsv: supporting d3d11va device type

2020-05-18 Thread artem . galin
From: Artem Galin This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated as one texture with array of slices. Signed-off-by: Artem Galin --- libavutil/hwcontext_qsv.c | 323 +++--- 1 file changed, 262 insertions

[FFmpeg-devel] [PATCH v5 6/9] libavutil/hwcontext_qsv: pass vendor option to child device

2020-05-18 Thread artem . galin
From: Artem Galin Signed-off-by: Artem Galin --- libavutil/hwcontext_qsv.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 036dc94748..d84de696dd 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH v5 7/9] libavfilter/qsvvpp: enabling d3d11va support, added mfxhdlpair

2020-05-18 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libavfilter

[FFmpeg-devel] [PATCH v5 5/9] libavutil/hwcontext_qsv: enabling d3d11va usage by default, add usage child_device_type argument

2020-05-18 Thread artem . galin
From: Artem Galin Makes selection of d3d11va device type by default and over DirectX 9, which might break users with older drivers/systems. DCH driver with Gen6th support should be still fine. Decode, encode, transcode have been validated. child_device_type option is responsible for d3d11va

[FFmpeg-devel] [PATCH v5 9/9] libavfilter/vf_deinterlace_qsv: enabling d3d11va support, added mfxhdlpair

2020-05-18 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_deinterlace_qsv.c | 44 ++-- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git

[FFmpeg-devel] [PATCH v5 3/9] libavutil/hwcontext_d3d11va: adding the vendor option to d3d11va device creation

2020-05-18 Thread artem . galin
From: Artem Galin Example: --init_hw_device d3d11va:,vendor=0x8086 qsv_device option is still works and has higher priority over vendor option. Signed-off-by: Artem Galin hwctx; HRESULT hr; +AVDictionaryEntry *e; IDXGIAdapter *pAdapter = NULL; ID3D10Multithread

[FFmpeg-devel] [PATCH v5 8/9] libavfilter/vf_scale_qsv: enabling d3d11va support, added mfxhdlpair

2020-05-18 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 43 +- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git

Re: [FFmpeg-devel] [PATCH v4 03/11] libavutil/hwcontext_d3d11va: adding more texture information to the D3D11 hwcontext API

2020-05-09 Thread Artem Galin
On Sat, 9 May 2020 at 22:29, Soft Works wrote: > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Max Dmitrichenko > > Sent: Saturday, May 9, 2020 10:42 PM > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Subject: Re: [FFmpeg-devel] [PATCH v4

Re: [FFmpeg-devel] [PATCH v3 1/4] fftools/qsv: enabling d3d11va/dxva2 device selection

2020-05-08 Thread Artem Galin
On Sun, 26 Apr 2020 at 19:20, Mark Thompson wrote: > On 24/04/2020 15:52, artem.ga...@gmail.com wrote: > > From: Artem Galin > > > > child_device_type argument is responsible for selection. > > > > Usage examples: -init_hw_device

Re: [FFmpeg-devel] [PATCH v3 4/4] libavutil/qsv: enabling d3d11va support

2020-05-08 Thread Artem Galin
On Sun, 26 Apr 2020 at 19:54, Mark Thompson wrote: > On 24/04/2020 15:52, artem.ga...@gmail.com wrote: > > From: Artem Galin > > > > Makes selection of d3d11va device type by default and over DirectX 9, > > which is still supported but requires explicit selection

[FFmpeg-devel] [PATCH v4 03/11] libavutil/hwcontext_d3d11va: adding more texture information to the D3D11 hwcontext API

2020-05-08 Thread artem . galin
From: Artem Galin Added AVD3D11FrameDescriptors array to store array of single textures in case if there is no way to allocate array texture with BindFlags = D3D11_BIND_RENDER_TARGET. Signed-off-by: Artem Galin --- libavutil/hwcontext_d3d11va.c | 26 -- libavutil

[FFmpeg-devel] [PATCH v4 10/11] libavfilter/vf_scale_qsv: add MFX_MEMTYPE_FROM_VPPOUT to frame_type

2020-05-08 Thread artem . galin
From: Artem Galin In case of DX11 device type, Media SDK is sensitive to these flags. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c index 47701c20d0

[FFmpeg-devel] [PATCH v4 11/11] libavfilter/vf_deinterlace_qsv: enabling d3d11va support, added mfxhdlpair

2020-05-08 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_deinterlace_qsv.c | 44 ++-- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git

[FFmpeg-devel] [PATCH v4 01/11] fftools/qsv: enabling d3d11va/dxva2 device selection

2020-05-08 Thread artem . galin
From: Artem Galin child_device_type argument is responsible for selection. Usage examples: DirectX 11 -init_hw_device qsv:hw,child_device_type=d3d11va DirectX 9 -init_hw_device qsv:hw,child_device_type=dxva2 Signed-off-by: Artem Galin --- fftools/ffmpeg_opt.c | 6 +- 1 file changed, 5

[FFmpeg-devel] [PATCH v4 09/11] libavfilter/vf_scale_qsv: enabling d3d11va support, added mfxhdlpair

2020-05-08 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/vf_scale_qsv.c | 43 +- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git

[FFmpeg-devel] [PATCH v4 08/11] libavfilter/qsvvpp: add MFX_MEMTYPE_FROM_VPPOUT flag to output frame memory mode

2020-05-08 Thread artem . galin
From: Artem Galin In case of DX11 device type, Media SDK is sensitive to these flags. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 0d3f7fb2f9..c89d4180d0 100644

[FFmpeg-devel] [PATCH v4 04/11] libavutil/hwcontext_d3d11va: adding the vendor option to D3D11 device creation

2020-05-08 Thread artem . galin
From: Artem Galin Example: --init_hw_device d3d11va:,vendor=0x8086 qsv_device option is still works and has higher priority over vendor option. Signed-off-by: Artem Galin hwctx; HRESULT hr; +AVDictionaryEntry *e; IDXGIAdapter *pAdapter = NULL; ID3D10Multithread

[FFmpeg-devel] [PATCH v4 06/11] libavutil/hwcontext_qsv: pass vendor option to child device

2020-05-08 Thread artem . galin
From: Artem Galin Signed-off-by: Artem Galin --- libavutil/hwcontext_qsv.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 38681dfc9b..5ffb8fb437 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH v4 02/11] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-05-08 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 53

[FFmpeg-devel] [PATCH v4 07/11] libavfilter/qsvvpp: enabling d3d11va support, added mfxhdlpair

2020-05-08 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libavfilter

[FFmpeg-devel] [PATCH v4 05/11] libavutil/hwcontext_qsv: enabling D3D11 usage by default, supporting D3D11 in qsv hwcontext

2020-05-08 Thread artem . galin
From: Artem Galin Makes selection of d3d11va device type by default and over DirectX 9, which might break users with older drivers/systems. DCH driver with Gen6th support should be still fine. This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated

Re: [FFmpeg-devel] [PATCH, v2 1/2] lavc/qsvdec: add decode support for HEVC 4:2:2 8-bit and 10-bit

2020-04-27 Thread Artem Galin
On Wed, 15 Apr 2020 at 05:02, Fu, Linjie wrote: > > From: Zhong Li > > Sent: Wednesday, April 15, 2020 09:58 > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Cc: Fu, Linjie > > Subject: Re: [FFmpeg-devel] [PATCH, v2 1/2] lavc/qsvdec: add decode > > support for HEVC

Re: [FFmpeg-devel] [PATCH v2 1/4] fftools/qsv: enabling d3d11va/dxva2 device selection

2020-04-24 Thread Artem Galin
Hi Steve, The updated review is available by link https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1017 Thanks, Artem. On Wed, 22 Apr 2020 at 15:39, Artem Galin wrote: > Hi Steve, > > On Tue, 21 Apr 2020 at 11:25, Steve Lhomme wrote: > >> Hi, >> >>

[FFmpeg-devel] [PATCH v3 1/4] fftools/qsv: enabling d3d11va/dxva2 device selection

2020-04-24 Thread artem . galin
From: Artem Galin child_device_type argument is responsible for selection. Usage examples: -init_hw_device qsv:hw,child_device_type=d3d11va -init_hw_device qsv:hw,child_device_type=dxva2 Signed-off-by: Artem Galin --- fftools/ffmpeg_opt.c | 12 +++- 1 file changed, 11

[FFmpeg-devel] [PATCH v3 3/4] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-04-24 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 66

[FFmpeg-devel] [PATCH v3 4/4] libavutil/qsv: enabling d3d11va support

2020-04-24 Thread artem . galin
From: Artem Galin Makes selection of d3d11va device type by default and over DirectX 9, which is still supported but requires explicit selection. This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated as one texture with array of slices. Added d3d11va

[FFmpeg-devel] [PATCH v3 2/4] libavfilter/qsvvpp: enabling d3d11va support

2020-04-24 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 35 ++- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/libavfilter

Re: [FFmpeg-devel] [PATCH v2 4/4] libavutil/qsv: enabling d3d11va support

2020-04-22 Thread Artem Galin
On Tue, 21 Apr 2020 at 11:26, Steve Lhomme wrote: > On 2020-04-15 15:07, artem.ga...@gmail.com wrote: > > From: Artem Galin > > > > Makes selection of d3d11va device type by default and over DirectX 9, > > which is still supported but requires explicit selection. &g

Re: [FFmpeg-devel] [PATCH v2 3/4] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-04-22 Thread Artem Galin
On Tue, 21 Apr 2020 at 11:26, Steve Lhomme wrote: > Mostly the same remarks as for 2/4 regarding the uneeded loop and > uninitialized handle_type, plus comments below. > > Answers on the same remarks in 2/4 > On 2020-04-15 15:07, artem.ga...@gmail.com wrote: > &

Re: [FFmpeg-devel] [PATCH v2 2/4] libavfilter/qsvvpp: enabling d3d11va support

2020-04-22 Thread Artem Galin
On Tue, 21 Apr 2020 at 11:25, Steve Lhomme wrote: > Comments below. > > On 2020-04-15 15:07, artem.ga...@gmail.com wrote: > > From: Artem Galin > > > > Adding DX11 relevant device type checks and adjusting callback with > > proper MediaSDK pair type support. &

Re: [FFmpeg-devel] [PATCH v2 1/4] fftools/qsv: enabling d3d11va/dxva2 device selection

2020-04-22 Thread Artem Galin
Hi Steve, On Tue, 21 Apr 2020 at 11:25, Steve Lhomme wrote: > Hi, > > On 2020-04-15 15:07, artem.ga...@gmail.com wrote: > > From: Artem Galin > > > > child_device_type argument is responsible for selection. > > > > Usage examples: -init_hw_

[FFmpeg-devel] [PATCH v2 2/4] libavfilter/qsvvpp: enabling d3d11va support

2020-04-15 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 40 ++-- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git

[FFmpeg-devel] [PATCH v2 3/4] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-04-15 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 52

[FFmpeg-devel] [PATCH v2 4/4] libavutil/qsv: enabling d3d11va support

2020-04-15 Thread artem . galin
From: Artem Galin Makes selection of d3d11va device type by default and over DirectX 9, which is still supported but requires explicit selection. This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated as one texture with array of slices. Added d3d11va

[FFmpeg-devel] [PATCH v2 1/4] fftools/qsv: enabling d3d11va/dxva2 device selection

2020-04-15 Thread artem . galin
From: Artem Galin child_device_type argument is responsible for selection. Usage examples: -init_hw_device qsv:hw,child_device_type=d3d11va -init_hw_device qsv:hw,child_device_type=dxva2 Signed-off-by: Artem Galin --- fftools/ffmpeg_opt.c | 12 +++- 1 file changed, 11

[FFmpeg-devel] [PATCH 4/4] libavutil/qsv: enabling d3d11va support

2020-04-09 Thread artem . galin
From: Artem Galin Makes selection of d3d11va device type by default and over DirectX 9, which is still supported but requires explicit selection. This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated as one texture with array of slices. Added d3d11va

[FFmpeg-devel] [PATCH 1/4] fftools/qsv: enabling d3d11va/dxva2 device selection

2020-04-09 Thread artem . galin
From: Artem Galin child_device_type argument is responsible for selection. Usage examples: -init_hw_device qsv:hw,child_device_type=d3d11va -init_hw_device qsv:hw,child_device_type=dxva2 Signed-off-by: Artem Galin --- fftools/ffmpeg_opt.c | 12 +++- 1 file changed, 11

[FFmpeg-devel] [PATCH 3/4] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-04-09 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 52

[FFmpeg-devel] [PATCH 2/4] libavfilter/qsvvpp: enabling d3d11va support

2020-04-09 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 40 ++-- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git

Re: [FFmpeg-devel] [PATCH v4] lavc/qsv: adding DX11 support

2020-03-12 Thread Artem Galin
On Fri, 6 Mar 2020 at 22:15, Soft Works wrote: > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > Artem Galin > > Sent: Friday, March 6, 2020 2:10 PM > > To: ffmpeg-devel@ffmpeg.org > > Cc: Artem Galin > > Subject: [FFmpeg-devel

Re: [FFmpeg-devel] [PATCH v2] lavc/qsv: adding DX11 support

2020-03-10 Thread Artem Galin
Any comments on updated patch by link below: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200306130954.8938-1-artem.ga...@gmail.com/ Thanks, Artem. On Sat, 1 Feb 2020 at 14:55, Mark Thompson wrote: > On 24/01/2020 19:37, Artem Galin wrote: > > On Fri, 24 Jan 2020 at 00

[FFmpeg-devel] [PATCH v4] lavc/qsv: adding DX11 support

2020-03-06 Thread Artem Galin
with QSV support. Signed-off-by: Artem Galin --- fftools/ffmpeg_opt.c | 12 +- libavcodec/qsv.c | 53 +++- libavcodec/qsv_internal.h | 2 + libavfilter/qsvvpp.c | 36 +++-- libavutil/hwcontext_d3d11va.c | 56 +++- libavutil/hwcontext_qsv.c | 240

[FFmpeg-devel] [PATCH v3] lavc/qsv: adding DX11 support

2020-01-31 Thread Artem Galin
with QSV support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 38 libavcodec/qsv_internal.h | 5 ++ libavcodec/version.h | 2 +- libavfilter/qsvvpp.c | 19 +--- libavutil/hwcontext_d3d11va.c | 55 +++- libavutil/hwcontext_qsv.c

Re: [FFmpeg-devel] [PATCH v2] lavc/qsv: adding DX11 support

2020-01-24 Thread Artem Galin
On Fri, 24 Jan 2020 at 00:46, Mark Thompson wrote: > On 23/01/2020 15:18, Artem Galin wrote: > > This enables DX11 support for QSV with higher priority than DX9. > > In case of multiple GPUs configuration, DX9 API does not allow to get > > access to QSV device in

Re: [FFmpeg-devel] [PATCH] lavc/qsv: adding DX11 support

2020-01-23 Thread Artem Galin
On Fri, 10 Jan 2020 at 10:41, Anton Khirnov wrote: > Quoting Artem Galin (2019-12-23 19:31:04) > > This enables DX11 support for QSV with higher priority than DX9. > > In case of multiple GPUs configuration, DX9 API does not allow to get > > access to QSV device in

[FFmpeg-devel] [PATCH v2] lavc/qsv: adding DX11 support

2020-01-23 Thread Artem Galin
with QSV support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 38 libavcodec/qsv_internal.h | 5 + libavcodec/version.h | 2 +- libavfilter/qsvvpp.c | 19 +--- libavutil/hwcontext_d3d11va.c | 57 +++- libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH v2] lavc/qsv: adding DX11 support

2020-01-23 Thread Artem Galin
with QSV support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 38 libavcodec/qsv_internal.h | 5 + libavcodec/version.h | 2 +- libavfilter/qsvvpp.c | 19 +--- libavutil/hwcontext_d3d11va.c | 57 +++- libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH] lavc/qsv: adding DX11 support

2020-01-23 Thread Artem Galin
with QSV support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 38 libavcodec/qsv_internal.h | 5 + libavcodec/version.h | 2 +- libavfilter/qsvvpp.c | 19 +--- libavutil/hwcontext_d3d11va.c | 57 +++- libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH] lavc/qsv: adding DX11 support

2020-01-23 Thread Artem Galin
with QSV support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 38 libavcodec/qsv_internal.h | 5 + libavcodec/version.h | 2 +- libavfilter/qsvvpp.c | 19 +--- libavutil/hwcontext_d3d11va.c | 57 +++- libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH] lavc/qsv: adding DX11 support

2020-01-23 Thread Artem Galin
with QSV support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 38 libavcodec/qsv_internal.h | 5 + libavcodec/version.h | 2 +- libavfilter/qsvvpp.c | 19 +--- libavutil/hwcontext_d3d11va.c | 57 +++- libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH] lavc/qsv: adding DX11 support

2019-12-23 Thread Artem Galin
with QSV support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 13 +++-- libavcodec/qsv_internal.h | 1 + libavutil/hwcontext_d3d11va.c | 57 +- libavutil/hwcontext_qsv.c | 89 +++ libavutil/hwcontext_qsv.h | 1 + 5