Sunshine master
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 {
28 std::unique_ptr<platf::avcodec_encode_device_t> make_avcodec_encode_device(int width, int height, bool vram);
39 std::unique_ptr<platf::avcodec_encode_device_t> make_avcodec_encode_device(int width, int height, int offset_x, int offset_y, bool vram);
51 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);
52
53 // Ensure the render device pointed to by fd is capable of encoding h264 with the hevc_mode configured
60 bool validate(int fd);
61} // namespace va
Declarations for common platform specific utilities.
std::unique_ptr< platf::avcodec_encode_device_t > make_avcodec_encode_device(int width, int height, bool vram)
Create AVCodec encode device.
Definition cuda.cpp:657
Miscellaneous declarations for Linux.
bool validate(int fd)
Validate that the configured VAAPI device can be used.
Definition vaapi.cpp:687