• Philip Langdale's avatar
    avcodec/nvenc: Declare support for P016 · 6a89cdc4
    Philip Langdale authored
    nvenc doesn't support P016, but we have two problems today:
    
    1) We declare support for YUV444P16 which nvenc also doesn't support.
       We do this because it's the only pix_fmt we have that can
       approximate nvenc's internal format that is YUV444P10 with data in
       MSBs instead of LSBs. Because the declared format is a 16bit one,
       it will be preferrentially chosen when encoding >10bit content,
       but that content will normally be YUV420P12 or P016 which should
       get mapped to P010 and not YUV444P10.
    
    2) Transcoding P016 content with nvenc should be possible in a pure
       hardware pipeline, and that can't be done if nvenc doesn't say it
       accepts P016. By mapping it to P010, we can use it, albeit with
       truncation. I have established that swscale doesn't know how to
       dither to 10bits so we'd get truncation anyway, even if we tried
       to do this 'properly'.
    6a89cdc4
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...