2017-10-29 15:54 GMT+01:00 Mironov, Mikhail <[email protected]>: >> -----Original Message----- >> From: ffmpeg-devel [mailto:[email protected]] On Behalf >> Of Carl Eugen Hoyos >> Sent: October 28, 2017 3:19 PM >> To: FFmpeg development discussions and patches <ffmpeg- >> [email protected]> >> Subject: Re: [FFmpeg-devel] Added - HW accelerated H.264 and HEVC >> encoding for AMD GPUs based on AMF SDK >> >> 2017-10-27 20:09 GMT+02:00 mmironov <[email protected]>: >> > +const enum AVPixelFormat ff_amf_pix_fmts[] = { >> > + AV_PIX_FMT_NV12, >> >> > + AV_PIX_FMT_BGRA, >> > + AV_PIX_FMT_ARGB, >> > + AV_PIX_FMT_RGBA, >> >> This is wrong, your encoders do not convert transparency information, there >> are 32 rgb formats without alpha channel.
> In addition, the encoder has built-in shader-based color converter. It can > accept BGRA and RGBA formats and convert them into NV12 Yes, I understood. > dropping alpha channel. Which is why using AV_PIX_FMT_BGRA is wrong, use AV_PIX_FMT_BGR0 (and friends). Carl Eugen _______________________________________________ ffmpeg-devel mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
