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