mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	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.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			574 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			574 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
spa_vulkan_sources = [
 | 
						|
  'plugin.c',
 | 
						|
  'pixel-formats.c',
 | 
						|
  'vulkan-compute-filter.c',
 | 
						|
  'vulkan-compute-source.c',
 | 
						|
  'vulkan-compute-utils.c',
 | 
						|
  'vulkan-utils.c',
 | 
						|
  'utils.c',
 | 
						|
]
 | 
						|
 | 
						|
drm = dependency('libdrm')
 | 
						|
 | 
						|
if cc.has_header('linux/dma-buf.h') and target_machine.system() == 'linux'
 | 
						|
  spa_vulkan_sources += files('dmabuf_linux.c')
 | 
						|
else
 | 
						|
  spa_vulkan_sources += files('dmabuf_fallback.c')
 | 
						|
endif
 | 
						|
 | 
						|
spa_vulkan = shared_library('spa-vulkan',
 | 
						|
  spa_vulkan_sources,
 | 
						|
  dependencies : [ spa_dep, vulkan_dep, mathlib, drm ],
 | 
						|
  install : true,
 | 
						|
  install_dir : spa_plugindir / 'vulkan')
 |