[FFmpeg-devel] [PATCH 0/3] nvdec/nvenc: Better handling for > 10bit content

Philip Langdale philipl at overt.org
Fri Mar 2 06:26:50 EET 2018

nvdec: Declare that nvdec can (potentially) handle 12bit hevc

nvenc: Claim support for p016 as an input format. It will be truncated,
but it would be truncated by swscale anyway, as we don't do any dithering
for 10bit outputs. This allows for full transcoding of 12bit content to
10bit output, and avoids the current problem where yuv420p12 input is
preferrentially converted to yuv444p16 before being passed to nvenc.

Philip Langdale (3):
  avcodec/hevcdec: Declare that nvdec supports 12bit decoding
  swscale: Add p016 output support and generalise yuv420p1x to p010
  avcodec/nvenc: Declare support for P016

 libavcodec/hevcdec.c          |  5 +++++
 libavcodec/nvenc.c            |  5 ++++-
 libswscale/output.c           | 31 +++++++++++++++++++++++++++++++
 libswscale/swscale_unscaled.c | 35 +++++++++++++++++++++++++----------
 libswscale/utils.c            |  4 ++--
 5 files changed, 67 insertions(+), 13 deletions(-)


More information about the ffmpeg-devel mailing list