--- /dev/null
+$(eval $(call import.MODULE.defs,AMF,amf))
+$(eval $(call import.CONTRIB.defs,AMF))
+
+AMF.FETCH.url = https://download.handbrake.fr/contrib/AMF-1.4.7.0.tar.gz
+AMF.FETCH.url += https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/v1.4.7.0.tar.gz
+AMF.FETCH.sha256 = ea91c8627fb16eaaf66c9c12b88a9fb8969879c244f782e807d2fb78f8f323bd
+AMF.FETCH.basename = AMF-1.4.7.0.tar.gz
+
+AMF.CONFIGURE = $(TOUCH.exe) $@
+AMF.BUILD = $(TOUCH.exe) $@
+
+define AMF.INSTALL
+ $(MKDIR.exe) -p $(CONTRIB.build/)include/AMF
+ $(CP.exe) -R $(AMF.EXTRACT.dir/)AMF/public/include/* $(CONTRIB.build/)include/AMF/
+ $(TOUCH.exe) $@
+endef
+
+define AMF.UNINSTALL
+ $(RM.exe) -rf $(CONTRIB.build/)include/AMF
+ $(RM.exe) -f $(AMF.INSTALL.target)
+endef
h = IfHost( 'enable Intel Quick Sync Video (QSV) hardware acceleration. (Windows and Linux only)', '*-*-linux*', '*-*-mingw*', none=optparse.SUPPRESS_HELP ).value
grp.add_option( '--enable-qsv', default=False, action='store_true', help=h )
+ h = IfHost( 'enable AMD VCE hardware acceleration. (Windows only)', '*-*-mingw*', none=optparse.SUPPRESS_HELP ).value
+ grp.add_option( '--enable-vce', default=False, action='store_true', help=h )
+
h = IfHost( 'enable x265 video encoder', '*-*-*', none=optparse.SUPPRESS_HELP ).value
grp.add_option( '--enable-x265', dest="enable_x265", default=True, action='store_true', help=h )
grp.add_option( '--disable-x265', dest="enable_x265", action='store_false' )
doc.add( 'FEATURE.fdk_aac', int( options.enable_fdk_aac ))
doc.add( 'FEATURE.ffmpeg_aac', int( options.enable_ffmpeg_aac or build.system == 'mingw' ))
doc.add( 'FEATURE.qsv', int( options.enable_qsv ))
+ doc.add( 'FEATURE.vce', int( options.enable_vce ))
doc.add( 'FEATURE.xcode', int( not (Tools.xcodebuild.fail or options.disable_xcode or options.cross) ))
doc.add( 'FEATURE.x265', int( options.enable_x265 ))