[FFmpeg-devel] [PATCH 2/2] libavcodec/cuviddec: adding HEVC YUV444P decoding support

Timo Rothenpieler timo at rothenpieler.org
Wed Feb 13 20:47:27 EET 2019


On 13.02.2019 09:56, Roman Arzumanyan wrote:
> Hello,
> 
> Please find attached patch, it adds HEVC YUV444P decoding support.
> 
> Supported formats are AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV444P10LE, 
> AV_PIX_FMT_YUV444P12LE.
> 
> This feature requires Video Codec SDK 9.

There is one big issue with this.
And that is, that ffmpeg expects the data for YUV444P10 and YUV444P12 to 
be in the least significant bits.
Nvenc (and I hope/assume as does nvdec/cuvid) on the other hand put the 
data into the most significant bits.

As a workaround we have so far resorted to using the 16 bit pix_fmt 
everywhere, as it happens to match up.
That has the issue of losing the information about the bit depth.
So far every attempt at solving it (like, adding new pix_fmts that match 
what nvenc/dec uses) have not found consent.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4538 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190213/5c7bd833/attachment.bin>


More information about the ffmpeg-devel mailing list