From fc6a15e13a06d76c1d57739fc69c0ca3f2f899ce Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Thu, 24 Aug 2023 19:09:16 -0700 Subject: [PATCH] obs-qsv11: Mark internal functions static --- plugins/obs-qsv11/common_utils_linux.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/obs-qsv11/common_utils_linux.cpp b/plugins/obs-qsv11/common_utils_linux.cpp index 35cbd7f93..0d7d87bd7 100644 --- a/plugins/obs-qsv11/common_utils_linux.cpp +++ b/plugins/obs-qsv11/common_utils_linux.cpp @@ -162,7 +162,7 @@ struct vaapi_device { const char *driver; }; -void vaapi_open(char *device_path, struct vaapi_device *device) +static void vaapi_open(char *device_path, struct vaapi_device *device) { int fd = open(device_path, O_RDWR); if (fd < 0) { @@ -201,7 +201,7 @@ void vaapi_open(char *device_path, struct vaapi_device *device) device->driver = driver; } -void vaapi_close(struct vaapi_device *device) +static void vaapi_close(struct vaapi_device *device) { vaTerminate(device->display); close(device->fd); @@ -231,7 +231,7 @@ static uint32_t vaapi_check_support(VADisplay display, VAProfile profile, return (rc & VA_RC_CBR || rc & VA_RC_CQP || rc & VA_RC_VBR); } -bool vaapi_supports_h264(VADisplay display) +static bool vaapi_supports_h264(VADisplay display) { bool ret = false; ret |= vaapi_check_support(display, VAProfileH264ConstrainedBaseline, @@ -254,7 +254,7 @@ bool vaapi_supports_h264(VADisplay display) return ret; } -bool vaapi_supports_av1(VADisplay display) +static bool vaapi_supports_av1(VADisplay display) { bool ret = false; // Are there any devices with non-LowPower entrypoints? @@ -265,7 +265,7 @@ bool vaapi_supports_av1(VADisplay display) return ret; } -bool vaapi_supports_hevc(VADisplay display) +static bool vaapi_supports_hevc(VADisplay display) { bool ret = false; ret |= vaapi_check_support(display, VAProfileHEVCMain,