obs-qsv11: Mark internal functions static
This commit is contained in:
parent
ece8df2ace
commit
fc6a15e13a
1 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue