|
@@ -162,7 +162,7 @@ struct vaapi_device {
|
|
const char *driver;
|
|
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);
|
|
int fd = open(device_path, O_RDWR);
|
|
if (fd < 0) {
|
|
if (fd < 0) {
|
|
@@ -201,7 +201,7 @@ void vaapi_open(char *device_path, struct vaapi_device *device)
|
|
device->driver = driver;
|
|
device->driver = driver;
|
|
}
|
|
}
|
|
|
|
|
|
-void vaapi_close(struct vaapi_device *device)
|
|
|
|
|
|
+static void vaapi_close(struct vaapi_device *device)
|
|
{
|
|
{
|
|
vaTerminate(device->display);
|
|
vaTerminate(device->display);
|
|
close(device->fd);
|
|
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);
|
|
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;
|
|
bool ret = false;
|
|
ret |= vaapi_check_support(display, VAProfileH264ConstrainedBaseline,
|
|
ret |= vaapi_check_support(display, VAProfileH264ConstrainedBaseline,
|
|
@@ -254,7 +254,7 @@ bool vaapi_supports_h264(VADisplay display)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-bool vaapi_supports_av1(VADisplay display)
|
|
|
|
|
|
+static bool vaapi_supports_av1(VADisplay display)
|
|
{
|
|
{
|
|
bool ret = false;
|
|
bool ret = false;
|
|
// Are there any devices with non-LowPower entrypoints?
|
|
// Are there any devices with non-LowPower entrypoints?
|
|
@@ -265,7 +265,7 @@ bool vaapi_supports_av1(VADisplay display)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-bool vaapi_supports_hevc(VADisplay display)
|
|
|
|
|
|
+static bool vaapi_supports_hevc(VADisplay display)
|
|
{
|
|
{
|
|
bool ret = false;
|
|
bool ret = false;
|
|
ret |= vaapi_check_support(display, VAProfileHEVCMain,
|
|
ret |= vaapi_check_support(display, VAProfileHEVCMain,
|