There is one potential way to do it:
Decode using AMF on Vulkan, then Vulkan has interop to OpenGL and OpenGL has 
interop to OpenCL.
AMF on Vulkan on Linux was released (decoder and encoder). 
To integrate it to FFmpeg we need FFmpeg AMF context committed. It is waiting 
for Mark to commit for quite a while. AMF has wrapped - up interop between 
OpenGL to OpenCL and we are working to add Vulkan to OpenGL, though all these 
interop are public APIs.

Mikhail

> -----Original Message-----
> From: ffmpeg-devel <[email protected]> On Behalf Of
> James Courtier-Dutton
> Sent: December 9, 2018 11:07 AM
> To: FFmpeg development discussions and patches <ffmpeg-
> [email protected]>
> Subject: Re: [FFmpeg-devel] AMD Vega 56, UVD and OpenCL
> 
> On Sun, 9 Dec 2018 at 13:37, Mark Thompson <[email protected]> wrote:
> 
> > On 09/12/2018 01:22, James Courtier-Dutton wrote:
> > > Hi,
> > >
> > > I little off topic, but hopefully someone here might be able to help
> > > me
> > as
> > > it is video processing related.
> > >
> > > I wish to use UVD to send a video stream to the GPU, and then have
> > > OpenCL process the output video frames.
> > >
> > > Can anyone point me to example source code to achieve this in Linux.
> >
> > AMD does not support any GPU-side OpenCL interop on Linux - you will
> > need to copy using the CPU.
> >
> >
> Just to clarify.
> Does the hardware (Vega 56) support it?
> Is it just that the Linux drivers do not have that functionality yet?
> 
> Kind Regards
> 
> James
> _______________________________________________
> ffmpeg-devel mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to