Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-12-05 Thread Mironov, Mikhail
Hi Mark, Did you have chance to try this sample? BTW: Alex Karvchenko waits for your review and commit for AMF context for some time. With this commit he can add more interesting things. Could you please take a look? Thanks, Mikhail > -Original Message- > From: ffmpeg-devel On Behalf

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-11-29 Thread Mironov, Mikhail
HI, I've wrote a small sample you can use: https://www.dropbox.com/s/c8m8evoao731tbm/OCLDX11Interop.zip?dl=0 If it doesn’t work - you have conflict of drivers with Intel - saw this before. Thanks, Mikhail > -Original Message- > From: ffmpeg-devel On Behalf Of > Mark Thompson > Sent:

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-11-27 Thread Mark Thompson
On 26/11/2018 15:32, Mironov, Mikhail wrote: > You assume that device ID returned from regular enumeration is the same as > device ID returned from clGetDeviceIDsFromD3D11KHR. It is not guaranteed and > I didn't try this. Ok, that's fair I suppose. Fixing it hasn't changed anything, though. >

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-11-26 Thread Mironov, Mikhail
You assume that device ID returned from regular enumeration is the same as device ID returned from clGetDeviceIDsFromD3D11KHR. It is not guaranteed and I didn't try this. Also I would add tracing to ensure that CL_CONTEXT_D3D11_DEVICE_KHR is actually set and clGetDeviceIDsFromD3D11KHR is

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-11-25 Thread Mark Thompson
On 25/11/2018 22:22, Mark Thompson wrote: > On 25/11/2018 21:28, Mironov, Mikhail wrote: >> It seem that the failure is not in the new extension but before, in the >> interop from D3D11 to OCL. It can happen in two cases: OCL device/context >> are created without D3D11 device or format of the

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-11-25 Thread Mark Thompson
On 25/11/2018 21:28, Mironov, Mikhail wrote: > It seem that the failure is not in the new extension but before, in the > interop from D3D11 to OCL. It can happen in two cases: OCL device/context are > created without D3D11 device or format of the texture is not supported. NV12 > is supported. I

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-11-25 Thread Mironov, Mikhail
It seem that the failure is not in the new extension but before, in the interop from D3D11 to OCL. It can happen in two cases: OCL device/context are created without D3D11 device or format of the texture is not supported. NV12 is supported. I went through the latest ffmpeg snapshot and found

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-11-25 Thread Mark Thompson
On 24/05/2018 15:26, Mironov, Mikhail wrote: > AMD has published OpenCL extension which allows split D3D11 texture interoped > as a single 2D image into two 2D images representing Y and UV planes. > https://www.khronos.org/registry/OpenCL/extensions/amd/cl_amd_planar_yuv.txt I had a go at

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-06-09 Thread Kirill Gavrilov
> Probably the extension is still not enumerated in device/platform > extensions list > Any way it can be used now. > > Thanks, > Alexander > Since it was a private extension it is not visible as device extension but > if one asks for the function pointer it is there. The implementation was >

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-05-31 Thread Mironov, Mikhail
> -Original Message- > From: ffmpeg-devel On Behalf Of > Alexander Kravchenko > Sent: May 27, 2018 11:19 AM > To: 'FFmpeg development discussions and patches' de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension > for NV12 and P010 textures - split

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-05-27 Thread Alexander Kravchenko
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Mark > Thompson > Sent: Sunday, May 27, 2018 3:29 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for > NV12 and P010 textures -

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-05-27 Thread Mark Thompson
On 27/05/18 07:57, Alexander Kravchenko wrote: > сб, 26 мая 2018 г. в 19:45, Mark Thompson : > >> On 24/05/18 15:26, Mironov, Mikhail wrote: >>> AMD has published OpenCL extension which allows split D3D11 texture >> interoped as a single 2D image into two 2D images representing Y

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-05-27 Thread Alexander Kravchenko
Hi Mark. This extension was implemented while ago, so it can be used now. Thanks, Alexander сб, 26 мая 2018 г. в 19:45, Mark Thompson : > On 24/05/18 15:26, Mironov, Mikhail wrote: > > AMD has published OpenCL extension which allows split D3D11 texture > interoped as a single 2D

Re: [FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-05-26 Thread Mark Thompson
On 24/05/18 15:26, Mironov, Mikhail wrote: > AMD has published OpenCL extension which allows split D3D11 texture interoped > as a single 2D image into two 2D images representing Y and UV planes. > https://www.khronos.org/registry/OpenCL/extensions/amd/cl_amd_planar_yuv.txt Nice! That looks like

[FFmpeg-devel] [INFO]AMD D3D11 to OpenCL interop extension for NV12 and P010 textures - split planes

2018-05-24 Thread Mironov, Mikhail
AMD has published OpenCL extension which allows split D3D11 texture interoped as a single 2D image into two 2D images representing Y and UV planes. https://www.khronos.org/registry/OpenCL/extensions/amd/cl_amd_planar_yuv.txt Mikhail ___ ffmpeg-devel