mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: libcamera: source: fix mapping of libcamera::ColorSpace::TransferFunction::Linear
				
					
				
			`SPA_VIDEO_TRANSFER_GAMMA10` should be used to represent a
linear transfer function.
Fixes: 7e202a3844 ("spa: libcamera: add colorimetry support")
			
			
This commit is contained in:
		
							parent
							
								
									938195b19f
								
							
						
					
					
						commit
						07a4e593bb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -476,7 +476,7 @@ color_space_to_colorimetry(const libcamera::ColorSpace& colorspace)
 | 
			
		|||
 | 
			
		||||
	switch (colorspace.transferFunction) {
 | 
			
		||||
	case ColorSpace::TransferFunction::Linear:
 | 
			
		||||
		res.transfer = SPA_VIDEO_TRANSFER_UNKNOWN;
 | 
			
		||||
		res.transfer = SPA_VIDEO_TRANSFER_GAMMA10;
 | 
			
		||||
		break;
 | 
			
		||||
	case ColorSpace::TransferFunction::Srgb:
 | 
			
		||||
		res.transfer = SPA_VIDEO_TRANSFER_SRGB;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue