[FFmpeg-devel] adding RGBA and BGRA to nvenc.c

Timo Rothenpieler timo at rothenpieler.org
Wed Sep 7 14:40:50 EEST 2016

Am 07.09.2016 um 13:27 schrieb Carl Eugen Hoyos:
> 2016-09-07 12:50 GMT+02:00 Sven C. Dack <sven.c.dack at sky.com>:
>> On 07/09/16 11:25, Carl Eugen Hoyos wrote:
>>>> Am 07.09.2016 um 11:40 schrieb "Sven C. Dack" <sven.c.dack at sky.com>:
>>>> On 07/09/16 09:23, Timo Rothenpieler wrote:
>>>> Otherwise will RGBA/BGRA have to
>>>> be converted into RGB0/BGR0
>>>> and you will again get a performance penalty.
>>> What makes you think so?
>> I have tested it. What makes you think it wouldn't?
> This is a bug that should be fixed independently.

libavutil/pixfmt.h defines AV_PIX_FMT_RGB0 and the other ones like this:

packed RGB 8:8:8, 32bpp, XRGBXRGB...   X=unused/undefined

So I would expect the Alpha-Channel to be anything, and converting from
RGBA to RGB0 to be a no-op "conversion".

More information about the ffmpeg-devel mailing list