Browse Source

obs-qsv11: Mark internal functions static

Kurt Kartaltepe 2 năm trước cách đây
mục cha
commit
fc6a15e13a
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      plugins/obs-qsv11/common_utils_linux.cpp

+ 5 - 5
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,