Declarations for FFmpeg Vulkan Video encoder. More...
Go to the source code of this file.
Functions | |
| std::map< std::uint32_t, std::vector< std::uint64_t > > | vk::get_supported_capture_modifiers () |
| Query DRM format modifiers supported by the Vulkan driver for common capture formats. | |
| std::unique_ptr< platf::avcodec_encode_device_t > | vk::make_avcodec_encode_device_ram (int width, int height) |
| Create a Vulkan encode device for RAM capture. | |
| std::unique_ptr< platf::avcodec_encode_device_t > | vk::make_avcodec_encode_device_vram (int width, int height, int offset_x, int offset_y) |
| Create a Vulkan encode device for VRAM capture. | |
| bool | vk::validate () |
| Check if FFmpeg Vulkan Video encoding is available. | |
| int | vk::vulkan_init_avcodec_hardware_input_buffer (platf::avcodec_encode_device_t *encode_device, AVBufferRef **hw_device_buf) |
| Initialize Vulkan hardware device for FFmpeg encoding. | |
Declarations for FFmpeg Vulkan Video encoder.
| std::map< std::uint32_t, std::vector< std::uint64_t > > vk::get_supported_capture_modifiers | ( | ) |
Query DRM format modifiers supported by the Vulkan driver for common capture formats.
Creates a temporary Vulkan instance and physical device to query modifier support via VK_EXT_image_drm_format_modifier extension.
This queries the Vulkan driver for modifiers it can import via VK_EXT_image_drm_format_modifier. The returned map is keyed by DRM fourcc format code (e.g. DRM_FORMAT_ARGB8888).
| std::unique_ptr< platf::avcodec_encode_device_t > vk::make_avcodec_encode_device_ram | ( | int | width, |
| int | height ) |
Create a Vulkan encode device for RAM capture.
| width | Frame or display width in pixels. |
| height | Frame or display height in pixels. |
| std::unique_ptr< platf::avcodec_encode_device_t > vk::make_avcodec_encode_device_vram | ( | int | width, |
| int | height, | ||
| int | offset_x, | ||
| int | offset_y ) |
Create a Vulkan encode device for VRAM capture.
| width | Frame or display width in pixels. |
| height | Frame or display height in pixels. |
| offset_x | Offset x. |
| offset_y | Offset y. |
| bool vk::validate | ( | ) |
Check if FFmpeg Vulkan Video encoding is available.
| int vk::vulkan_init_avcodec_hardware_input_buffer | ( | platf::avcodec_encode_device_t * | encode_device, |
| AVBufferRef ** | hw_device_buf ) |
Initialize Vulkan hardware device for FFmpeg encoding.
| encode_device | The encode device (vk_t). |
| hw_device_buf | Output hardware device buffer. |