[Libav-user] Converting AV_PIX_FMT_CUDA image (AVFrame) to AV_PIX_FMT_BGRA image

Ахмед Анам ahmedanam at mail.ru
Thu Feb 21 15:12:45 EET 2019


I am trying to use libav API with hardware accelaration (CUDA). I need to transform an AVFrame with AV_PIX_FMT_CUDA pixel format to the frame with AV_PIX_FMT_BGRA pixel format. I tried to create Sws_Context for this purpose (  my_sws_context = sws_getContext(width, height, AV_PIX_FMT_CUDA , width, height, AV_PIX_FMT_BGRA , SWS_BILINEAR, NULL, NULL, NULL) )  but the function always return NULL.

What is the best way to do this? Are there some examples?

С уважением, Ахмед Анам.
Best regards, Akhmed Anam.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20190221/001f4ac0/attachment.html>

More information about the Libav-user mailing list