Skip to content

Commit

Permalink
cuvid: Support > 8bit input formats
Browse files Browse the repository at this point in the history
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 ff339fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavcodec/cuvid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ff339fa

Please sign in to comment.