mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
vulkan: Add pixel-formats to query format properties
We need a database of pixel format properties to remove hardcoded magic numbers. This commit creates a simple function to query the bytes per pixel for common RGBA formats. This should be promoted to or superseeded by a common spa namespaced version.
This commit is contained in:
parent
49b67742c6
commit
c3327742cc
6 changed files with 57 additions and 3 deletions
|
|
@ -33,6 +33,8 @@ struct vulkan_stream {
|
|||
uint32_t busy_buffer_id;
|
||||
uint32_t ready_buffer_id;
|
||||
|
||||
uint32_t format;
|
||||
|
||||
struct vulkan_buffer buffers[MAX_BUFFERS];
|
||||
struct spa_buffer *spa_buffers[MAX_BUFFERS];
|
||||
uint32_t n_buffers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue