MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_common_global_hw_init

Function hb_common_global_hw_init

libhb/common.c:592–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592static void hb_common_global_hw_init()
593{
594#ifdef __APPLE__
595 hb_register_hwaccel(&hb_hwaccel_videotoolbox);
596#endif
597#if HB_PROJECT_FEATURE_NVDEC
598 hb_register_hwaccel(&hb_hwaccel_nvdec);
599#endif
600#if HB_PROJECT_FEATURE_NVENC
601 hb_nvenc_h264_available();
602#endif
603#if HB_PROJECT_FEATURE_VCE
604 hb_vce_h264_available();
605#endif
606#if HB_PROJECT_FEATURE_MF
607 hb_directx_available();
608 hb_register_hwaccel(&hb_hwaccel_mf);
609#endif
610#if HB_PROJECT_FEATURE_QSV
611 // First initialization and QSV adapters list collection should happen
612 // after other hw vendors initializations to prevent device order issues
613 hb_qsv_available();
614 hb_register_hwaccel(&hb_hwaccel_qsv);
615#endif
616
617 hb_hwaccel_common_hwaccel_init();
618}
619
620void hb_common_global_init(int disable_hardware)
621{

Callers 1

hb_common_global_initFunction · 0.85

Calls 6

hb_register_hwaccelFunction · 0.85
hb_nvenc_h264_availableFunction · 0.85
hb_vce_h264_availableFunction · 0.85
hb_directx_availableFunction · 0.85
hb_qsv_availableFunction · 0.85

Tested by

no test coverage detected