diff options
author | Nomis101 <[email protected]> | 2019-11-01 21:34:54 +0100 |
---|---|---|
committer | Scott <[email protected]> | 2019-11-04 22:41:20 +0000 |
commit | 20fe4b6ebd371b96af85090b3a23c7a14b405bdf (patch) | |
tree | 57dbfd4f586427c77d71948b7520f5c9215d2543 /libhb/nvenc_common.c | |
parent | da9aa8ba4214c711efaaac54c0d4fec2103cb9a8 (diff) |
Gardening: Clean up trailing whitespace
Remove trailing whitespace in "*.c", "*.m", "*.h" and "*.cpp" files.
Diffstat (limited to 'libhb/nvenc_common.c')
-rw-r--r-- | libhb/nvenc_common.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libhb/nvenc_common.c b/libhb/nvenc_common.c index c6897a84c..15d7969ee 100644 --- a/libhb/nvenc_common.c +++ b/libhb/nvenc_common.c @@ -13,7 +13,7 @@ #if HB_PROJECT_FEATURE_NVENC #include <ffnvcodec/nvEncodeAPI.h> #include <ffnvcodec/dynlink_loader.h> -#endif +#endif int hb_check_nvenc_available(); @@ -23,7 +23,7 @@ int hb_nvenc_h264_available() return hb_check_nvenc_available(); #else return 0; - #endif + #endif } int hb_nvenc_h265_available() @@ -32,21 +32,21 @@ int hb_nvenc_h265_available() return hb_check_nvenc_available(); #else return 0; - #endif + #endif } static int isAvailable = -1; -int hb_check_nvenc_available() +int hb_check_nvenc_available() { if (is_hardware_disabled()) { return 0; - } - + } + if (isAvailable != -1){ return isAvailable; } - + #if HB_PROJECT_FEATURE_NVENC uint32_t nvenc_ver; void *context = NULL; @@ -57,14 +57,14 @@ int hb_check_nvenc_available() isAvailable = 0; return 0; } - + NVENCSTATUS apiErr = nvenc_dl->NvEncodeAPIGetMaxSupportedVersion(&nvenc_ver); if (apiErr != NV_ENC_SUCCESS) { isAvailable = 0; return 0; } - + hb_log("Nvenc version %d.%d\n", nvenc_ver >> 4, nvenc_ver & 0xf); if ((NVENCAPI_MAJOR_VERSION << 4 | NVENCAPI_MINOR_VERSION) > nvenc_ver) { hb_log("NVENC version not supported. Disabling feature."); @@ -76,5 +76,5 @@ int hb_check_nvenc_available() return 1; #else return 0; - #endif + #endif } |