Skip to content
Permalink
Browse files

cuvid: Support > 8bit input formats

Although cuvid can only output 8bit, it can consume HEVC Main10 if
the bit depth is set properly.

This requires a newer version of cuviddec.h from CUDA 8 (I expect),
although the CUDA 7.5 can be manually updated to enable it as well.
  • Loading branch information
philipl committed Sep 3, 2016
1 parent edc5517 commit ff339fab3a21e1fe7686e19a54f7d74a81684fac
Showing with 1 addition and 0 deletions.
  1. +1 −0 libavcodec/cuvid.c
@@ -157,6 +157,7 @@ static int CUDAAPI cuvid_handle_video_sequence(void *opaque, CUVIDEOFORMAT* form
cuinfo.ulNumDecodeSurfaces = MAX_FRAME_COUNT;
cuinfo.ulNumOutputSurfaces = 1;
cuinfo.ulCreationFlags = cudaVideoCreate_PreferCUVID;
cuinfo.bitDepthMinus8 = format->bit_depth_luma_minus8;

cuinfo.DeinterlaceMode = cudaVideoDeinterlaceMode_Weave;

0 comments on commit ff339fa

Please sign in to comment.