| 590 | } |
| 591 | |
| 592 | static 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 | |
| 620 | void hb_common_global_init(int disable_hardware) |
| 621 | { |
no test coverage detected