mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	vulkan: tag port as video DSP port
This commit is contained in:
		
							parent
							
								
									c904809e75
								
							
						
					
					
						commit
						4f5a5fc917
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
Subproject commit d4ed1f6832ec1068e4fce2d5910446e303f3c1ae
 | 
					Subproject commit 4f47d6e05221dfd2f9cc5ef16243004a40e56d9a
 | 
				
			||||||
| 
						 | 
					@ -436,6 +436,10 @@ static void emit_port_info(struct impl *this, struct port *port, bool full)
 | 
				
			||||||
	if (full)
 | 
						if (full)
 | 
				
			||||||
		port->info.change_mask = port->info_all;
 | 
							port->info.change_mask = port->info_all;
 | 
				
			||||||
	if (port->info.change_mask) {
 | 
						if (port->info.change_mask) {
 | 
				
			||||||
 | 
							struct spa_dict_item items[1];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							items[0] = SPA_DICT_ITEM_INIT(SPA_KEY_FORMAT_DSP, "32 bit float RGBA video");
 | 
				
			||||||
 | 
							port->info.props = &SPA_DICT_INIT(items, 1);
 | 
				
			||||||
		spa_node_emit_port_info(&this->hooks,
 | 
							spa_node_emit_port_info(&this->hooks,
 | 
				
			||||||
				SPA_DIRECTION_OUTPUT, 0, &port->info);
 | 
									SPA_DIRECTION_OUTPUT, 0, &port->info);
 | 
				
			||||||
		port->info.change_mask = 0;
 | 
							port->info.change_mask = 0;
 | 
				
			||||||
| 
						 | 
					@ -917,7 +921,8 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	port = &this->port;
 | 
						port = &this->port;
 | 
				
			||||||
	port->info_all = SPA_PORT_CHANGE_MASK_FLAGS |
 | 
						port->info_all = SPA_PORT_CHANGE_MASK_FLAGS |
 | 
				
			||||||
			SPA_PORT_CHANGE_MASK_PARAMS;
 | 
								SPA_PORT_CHANGE_MASK_PARAMS |
 | 
				
			||||||
 | 
								SPA_PORT_CHANGE_MASK_PROPS;
 | 
				
			||||||
	port->info = SPA_PORT_INFO_INIT();
 | 
						port->info = SPA_PORT_INFO_INIT();
 | 
				
			||||||
	port->info.flags = SPA_PORT_FLAG_NO_REF | SPA_PORT_FLAG_CAN_ALLOC_BUFFERS;
 | 
						port->info.flags = SPA_PORT_FLAG_NO_REF | SPA_PORT_FLAG_CAN_ALLOC_BUFFERS;
 | 
				
			||||||
	if (this->props.live)
 | 
						if (this->props.live)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue