endif
+#
+# NVENC
+#
+
+ifeq (yes,$(CONFIG_NVENC))
+
+EXTRAARG += --enable-nvenc --enable-nonfree
+
+ENCODERS += nvenc_h264 nvenc_hevc
+
+endif
+
#
# MFX Dispatcher (libmfx)
#
"libx265:no"
"libx265_static:yes"
"vdpau:auto"
+ "nvenc:auto"
"libmfx:no"
"libmfx_static:yes"
"inotify:auto"
fi
fi
+ # nvenc
+ if enabled_or_auto nvenc; then
+ if check_cc_header nvEncodeAPI; then
+ enable nvenc
+ elif enabled nvenc; then
+ die "NVENC library (https://developer.nvidia.com/nvidia-video-codec-sdk) not found"
+ fi
+ fi
+
# libmfx
if enabled libmfx; then
check_cc_lib va || die "libva not found"