File: vaapi-utils.h

package info (click to toggle)
obs-studio 29.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 35,920 kB
  • sloc: ansic: 182,921; cpp: 98,959; sh: 1,591; python: 945; makefile: 858; javascript: 19
file content (22 lines) | stat: -rw-r--r-- 615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-FileCopyrightText: 2022 tytan652 <tytan652@tytanium.xyz>
//
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <util/base.h>

#include <va/va.h>

VADisplay vaapi_open_device(int *fd, const char *device_path,
			    const char *func_name);
void vaapi_close_device(int *fd, VADisplay dpy);

bool vaapi_device_rc_supported(VAProfile profile, VADisplay dpy, uint32_t rc,
			       const char *device_path);

bool vaapi_display_h264_supported(VADisplay dpy, const char *device_path);

bool vaapi_device_h264_supported(const char *device_path);

const char *vaapi_get_h264_default_device(void);