Sunshine latest
Self-hosted game stream host for Moonlight.
vaapi.h
Go to the documentation of this file.
1
5#pragma once
6
7// local includes
8#include "misc.h"
10
11namespace egl {
12 struct surface_descriptor_t;
13}
14
15namespace va {
23 std::unique_ptr<platf::avcodec_encode_device_t> make_avcodec_encode_device(int width, int height, bool vram);
24 std::unique_ptr<platf::avcodec_encode_device_t> make_avcodec_encode_device(int width, int height, int offset_x, int offset_y, bool vram);
25 std::unique_ptr<platf::avcodec_encode_device_t> make_avcodec_encode_device(int width, int height, file_t &&card, int offset_x, int offset_y, bool vram);
26
27 // Ensure the render device pointed to by fd is capable of encoding h264 with the hevc_mode configured
28 bool validate(int fd);
29} // namespace va
Declarations for common platform specific utilities.
Miscellaneous declarations for Linux.