Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
pyrowave.h
Go to the documentation of this file.
1
12#pragma once
13
14#ifdef HAVE_PYROWAVE
15
16 // standard includes
17 #include <memory>
18
19 // lib includes
20 // pyrowave.h refuses to compile unless the Vulkan types come first.
21 // clang-format off
22 #include <vulkan/vulkan.h>
23 #include <pyrowave.h>
24 // clang-format on
25
26 // local includes
27 #include "misc.h"
28 #include "src/platform/common.h"
29
30namespace pyrowave {
31
39 class gpu_encode_device_t: public platf::avcodec_encode_device_t {
40 public:
42 virtual pyrowave_device device() const = 0;
43
54 virtual bool planes(pyrowave_gpu_buffers &buffers, const pyrowave_gpu_sync_operation *&acquire, const pyrowave_gpu_sync_operation *&release) = 0;
55
57 virtual void encoded() = 0;
58 };
59
70 std::unique_ptr<gpu_encode_device_t> make_gpu_encode_device(int width, int height, file_t &&render_device, int offset_x, int offset_y);
71
73 std::unique_ptr<gpu_encode_device_t> make_gpu_encode_device(int width, int height, int offset_x, int offset_y);
74
87 std::unique_ptr<platf::avcodec_encode_device_t> make_ram_encode_device(int width, int height, file_t &&render_device, std::uint32_t fourcc = 0);
88
90 std::unique_ptr<platf::avcodec_encode_device_t> make_ram_encode_device(int width, int height, std::uint32_t fourcc = 0);
91
92} // namespace pyrowave
93
94#endif
Declarations for common platform specific utilities.
Miscellaneous declarations for Linux.
GPU conversion for the experimental PyroWave codec.