<HTML><BODY><span style="font-size: 18px;">Hello!</span><br><br><span style="font-size: 18px;">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 ( <em>my_sws_context = sws_getContext(width, height, AV_PIX_FMT_CUDA , width, height, AV_PIX_FMT_BGRA , SWS_BILINEAR, NULL, NULL, NULL) ) </em>but the function always return NULL.</span><br><br><span style="font-size: 18px;">What is the best way to do this? Are there some examples?</span><br><br><br>-- <br>С уважением, Ахмед Анам.<br>Best regards, Akhmed Anam.</BODY></HTML>