On 2019-02-22 5:24 a.m., Ахмед Анам wrote:
I have to transform AV_PIX_FMT_CUDA image to AV_PIX_FMT_BGRA image. In your code you transform AV_PIX_FMT_RGB24 to AV_PIX_FMT_NV12. I tried to run your code. There are no errors but I can not display images because I need BGRA pixel format to display them. I don't understand how to get BGRA image from AV_PIX_FMT_CUDA image.

AV_PIX_FMT_CUDA is a hardware format, you need to transfer the frame data into a software frame before using it. You can see an example of this in doc/examples/hw_decode.c. Look for av_hwframe_transfer_data.



--
С уважением, Ахмед Анам.
Best regards, Akhmed Anam.

_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".


--
Philippe Gorley
Free Software Consultant | Montréal, Qc
Savoir-faire Linux
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to