|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Declarations for VA-API hardware accelerated capture. More...
Go to the source code of this file.
Functions | |
| std::unique_ptr< platf::avcodec_encode_device_t > | va::make_avcodec_encode_device (int width, int height, bool vram) |
| std::unique_ptr< platf::avcodec_encode_device_t > | va::make_avcodec_encode_device (int width, int height, file_t &&card, int offset_x, int offset_y, bool vram) |
| Create AVCodec encode device. | |
| std::unique_ptr< platf::avcodec_encode_device_t > | va::make_avcodec_encode_device (int width, int height, int offset_x, int offset_y, bool vram) |
| Create AVCodec encode device. | |
| bool | va::validate (int fd) |
| Validate that the configured VAAPI device can be used. | |
Declarations for VA-API hardware accelerated capture.
| std::unique_ptr< platf::avcodec_encode_device_t > va::make_avcodec_encode_device | ( | int | width, |
| int | height, | ||
| bool | vram ) |
Width --> Width of the image Height --> Height of the image offset_x --> Horizontal offset of the image in the texture offset_y --> Vertical offset of the image in the texture file_t card --> The file descriptor of the render device used for encoding
| width | Frame or display width in pixels. |
| height | Frame or display height in pixels. |
| vram | Whether the image should use GPU memory instead of system memory. |
| std::unique_ptr< platf::avcodec_encode_device_t > va::make_avcodec_encode_device | ( | int | width, |
| int | height, | ||
| file_t && | card, | ||
| int | offset_x, | ||
| int | offset_y, | ||
| bool | vram ) |
Create AVCodec encode device.
| width | Frame or display width in pixels. |
| height | Frame or display height in pixels. |
| card | Video device path or render node used for VAAPI. |
| offset_x | Offset x. |
| offset_y | Offset y. |
| vram | Whether the image should use GPU memory instead of system memory. |
| std::unique_ptr< platf::avcodec_encode_device_t > va::make_avcodec_encode_device | ( | int | width, |
| int | height, | ||
| int | offset_x, | ||
| int | offset_y, | ||
| bool | vram ) |
Create AVCodec encode device.
| width | Frame or display width in pixels. |
| height | Frame or display height in pixels. |
| offset_x | Offset x. |
| offset_y | Offset y. |
| vram | Whether the image should use GPU memory instead of system memory. |
| bool va::validate | ( | int | fd | ) |
Validate that the configured VAAPI device can be used.
| fd | Native file descriptor to wrap or inspect. |