[FFmpeg-devel] [PATCH] avcodec/cuvid: Add support for P010 as an output surface format
Michael Niedermayer
michael at niedermayer.cc
Sun Nov 20 15:20:21 EET 2016
On Sat, Nov 19, 2016 at 05:18:08PM -0800, Philip Langdale wrote:
> The nvidia 375.xx driver introduces support for P016 output surfaces,
> for 10bit and 12bit HEVC content (it's also the first driver to support
> hardware decoding of 12bit content).
>
> Technically, we don't support P016, but in practice I don't think we
> zero-out the extra bits in P010 so it can be used to carry the data.
>
> This change introduces cuvid decoder support for P010 output for
> output to hardware and system memory surfaces. For simplicity, it
> does not maintain the previous ability to output NV12 for > 8 bit
> input video - the user will need to update their driver to decode
> such videos.
>
> After this change, both cuvid and nvenc support P010, but the
> ffmpeg_cuvid transcoding logic will need more work to connect the
> two together. Similarly, the scale_npp filter still only works with
> 8bit surfaces.
>
> Signed-off-by: Philip Langdale <philipl at overt.org>
> ---
> compat/cuda/dynlink_cuviddec.h | 3 ++-
> libavcodec/cuvid.c | 58 +++++++++++++++++++++++++++++++-----------
> libavutil/hwcontext_cuda.c | 11 +++++++-
> 3 files changed, 55 insertions(+), 17 deletions(-)
seems git doesnt like applying this:
Applying: avcodec/cuvid: Add support for P010 as an output surface format
fatal: sha1 information is lacking or useless (libavcodec/cuvid.c).
error: could not build fake ancestor
Patch failed at 0001 avcodec/cuvid: Add support for P010 as an output surface format
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161120/b8382956/attachment.sig>
More information about the ffmpeg-devel
mailing list