Try CUDA hardware decoding on Linux.

This commit is contained in:
John Preston 2022-04-11 12:58:59 +04:00
parent 1e5f18bfe8
commit 9933d1ff3a
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@ void PremultiplyLine(uchar *dst, const uchar *src, int intsCount) {
#else // Q_OS_WIN || Q_OS_MAC
case AV_PIX_FMT_VAAPI: return AV_HWDEVICE_TYPE_VAAPI;
case AV_PIX_FMT_VDPAU: return AV_HWDEVICE_TYPE_VDPAU;
case AV_PIX_FMT_CUDA: return AV_HWDEVICE_TYPE_CUDA;
#endif // Q_OS_WIN || Q_OS_MAC
}
return AV_HWDEVICE_TYPE_NONE;