Add CUDA Hardware Decoder (#335)

This commit is contained in:
Marcin Tolysz 2020-10-19 14:44:28 +01:00 committed by GitHub
commit 1b05f07132
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -39,6 +39,7 @@ typedef enum {
HW_DECODE_VAAPI = 1,
HW_DECODE_VDPAU = 2,
HW_DECODE_VIDEOTOOLBOX = 3,
HW_DECODE_CUDA = 4,
} HardwareDecodeEngine;
@ -47,6 +48,7 @@ static const QMap<HardwareDecodeEngine, const char *> hardware_decode_engine_nam
{ HW_DECODE_VAAPI, "vaapi"},
{ HW_DECODE_VDPAU, "vdpau"},
{ HW_DECODE_VIDEOTOOLBOX, "videotoolbox"},
{ HW_DECODE_CUDA, "cuda"},
};
class VideoDecoderException: public Exception