I'm using ffmpeg's libav to decode video files on Mac. For supported codecs, it says it can use the Mac VideoToolbox framework to hardware-accelerate the decoding. Can I get the result of that decode directly as a Metal or CoreVideo buffer or texture, in GPU memory? My plan is to process it with compute shaders before sending it to the screen and I'd like to maximize framerate by removing CPU<->GPU transfers.
Is there an example of doing this anywhere?