mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
Work on sink
Remove _remove from properties, we can do the same with set of a NULL value. Add signals to the stream API to manage the buffers. Wrap those buffers in a GstBuffer in the pinossrc and pinossink elements and pool them in a bufferpool. Remove SPA_EVENT_TYPE_PULL_INPUT, we can do the same with NEED_INPUT and by using a ringbuffer. Do more complete allocation of buffers in the link. Use the buffer allocator if none of the nodes can allocate. Follow the node state to trigger negotiation and allocation. Remove offset and size when refering to buffers, we want to always deal with the complete buffer and use a ringbuffer for ranges or change the offset/size in the buffer data when needed. Serialize port_info structures as part of the port_update Print both the enum number and the name when debuging properties or formats.
This commit is contained in:
parent
a03352353f
commit
ca7d08c406
45 changed files with 1614 additions and 570 deletions
|
|
@ -31,6 +31,7 @@ typedef struct _SpaNode SpaNode;
|
|||
* @SPA_NODE_STATE_INIT: the node is initializing
|
||||
* @SPA_NODE_STATE_CONFIGURE: the node needs at least one port format
|
||||
* @SPA_NODE_STATE_READY: the node is ready for memory allocation
|
||||
* @SPA_NODE_STATE_PAUSED: the node is paused
|
||||
* @SPA_NODE_STATE_STREAMING: the node is streaming
|
||||
* @SPA_NODE_STATE_ERROR: the node is in error
|
||||
*/
|
||||
|
|
@ -81,8 +82,6 @@ typedef enum {
|
|||
* @port_id: the port id
|
||||
* @flags: extra flags
|
||||
* @buffer_id: a buffer id
|
||||
* @offset: offset of data in @id
|
||||
* @size: size of data in @id
|
||||
* @status: status
|
||||
*
|
||||
* Input information for a node.
|
||||
|
|
@ -91,8 +90,6 @@ typedef struct {
|
|||
uint32_t port_id;
|
||||
SpaInputFlags flags;
|
||||
uint32_t buffer_id;
|
||||
off_t offset;
|
||||
size_t size;
|
||||
SpaResult status;
|
||||
} SpaInputInfo;
|
||||
|
||||
|
|
@ -116,8 +113,6 @@ typedef enum {
|
|||
* @port_id: the port id
|
||||
* @flags: extra flags
|
||||
* @buffer_id: a buffer id will be set
|
||||
* @offset: offset to get
|
||||
* @size: size to get
|
||||
* @event: output event
|
||||
* @status: a status
|
||||
*
|
||||
|
|
@ -127,8 +122,6 @@ typedef struct {
|
|||
uint32_t port_id;
|
||||
SpaOutputFlags flags;
|
||||
uint32_t buffer_id;
|
||||
off_t offset;
|
||||
size_t size;
|
||||
SpaEvent *event;
|
||||
SpaResult status;
|
||||
} SpaOutputInfo;
|
||||
|
|
@ -416,9 +409,7 @@ struct _SpaNode {
|
|||
|
||||
SpaResult (*port_reuse_buffer) (SpaNode *node,
|
||||
uint32_t port_id,
|
||||
uint32_t buffer_id,
|
||||
off_t offset,
|
||||
size_t size);
|
||||
uint32_t buffer_id);
|
||||
|
||||
SpaResult (*port_get_status) (SpaNode *node,
|
||||
uint32_t port_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue