mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
v4l2: add support for buffer import
Add support for buffer import Rename some methods
This commit is contained in:
parent
5fa334a89b
commit
c5a31acf8c
13 changed files with 585 additions and 240 deletions
|
|
@ -276,7 +276,7 @@ spa_audiotestsrc_node_remove_port (SpaHandle *handle,
|
|||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_enum_port_formats (SpaHandle *handle,
|
||||
spa_audiotestsrc_node_port_enum_formats (SpaHandle *handle,
|
||||
uint32_t port_id,
|
||||
unsigned int index,
|
||||
SpaFormat **format)
|
||||
|
|
@ -302,7 +302,7 @@ spa_audiotestsrc_node_enum_port_formats (SpaHandle *handle,
|
|||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_set_port_format (SpaHandle *handle,
|
||||
spa_audiotestsrc_node_port_set_format (SpaHandle *handle,
|
||||
uint32_t port_id,
|
||||
bool test_only,
|
||||
const SpaFormat *format)
|
||||
|
|
@ -330,7 +330,7 @@ spa_audiotestsrc_node_set_port_format (SpaHandle *handle,
|
|||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_get_port_format (SpaHandle *handle,
|
||||
spa_audiotestsrc_node_port_get_format (SpaHandle *handle,
|
||||
uint32_t port_id,
|
||||
const SpaFormat **format)
|
||||
{
|
||||
|
|
@ -351,7 +351,7 @@ spa_audiotestsrc_node_get_port_format (SpaHandle *handle,
|
|||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_get_port_info (SpaHandle *handle,
|
||||
spa_audiotestsrc_node_port_get_info (SpaHandle *handle,
|
||||
uint32_t port_id,
|
||||
const SpaPortInfo **info)
|
||||
{
|
||||
|
|
@ -369,7 +369,7 @@ spa_audiotestsrc_node_get_port_info (SpaHandle *handle,
|
|||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_get_port_props (SpaHandle *handle,
|
||||
spa_audiotestsrc_node_port_get_props (SpaHandle *handle,
|
||||
uint32_t port_id,
|
||||
SpaProps **props)
|
||||
{
|
||||
|
|
@ -377,7 +377,7 @@ spa_audiotestsrc_node_get_port_props (SpaHandle *handle,
|
|||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_set_port_props (SpaHandle *handle,
|
||||
spa_audiotestsrc_node_port_set_props (SpaHandle *handle,
|
||||
uint32_t port_id,
|
||||
const SpaProps *props)
|
||||
{
|
||||
|
|
@ -385,7 +385,7 @@ spa_audiotestsrc_node_set_port_props (SpaHandle *handle,
|
|||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_get_port_status (SpaHandle *handle,
|
||||
spa_audiotestsrc_node_port_get_status (SpaHandle *handle,
|
||||
uint32_t port_id,
|
||||
const SpaPortStatus **status)
|
||||
{
|
||||
|
|
@ -406,7 +406,26 @@ spa_audiotestsrc_node_get_port_status (SpaHandle *handle,
|
|||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_push_port_input (SpaHandle *handle,
|
||||
spa_audiotestsrc_node_port_use_buffers (SpaHandle *handle,
|
||||
uint32_t port_id,
|
||||
SpaBuffer *buffers,
|
||||
uint32_t n_buffers)
|
||||
{
|
||||
return SPA_RESULT_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_port_alloc_buffers (SpaHandle *handle,
|
||||
uint32_t port_id,
|
||||
SpaBuffer **buffers,
|
||||
uint32_t *n_buffers)
|
||||
{
|
||||
return SPA_RESULT_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_port_push_input (SpaHandle *handle,
|
||||
unsigned int n_info,
|
||||
SpaInputInfo *info)
|
||||
{
|
||||
|
|
@ -414,7 +433,7 @@ spa_audiotestsrc_node_push_port_input (SpaHandle *handle,
|
|||
}
|
||||
|
||||
static SpaResult
|
||||
spa_audiotestsrc_node_pull_port_output (SpaHandle *handle,
|
||||
spa_audiotestsrc_node_port_pull_output (SpaHandle *handle,
|
||||
unsigned int n_info,
|
||||
SpaOutputInfo *info)
|
||||
{
|
||||
|
|
@ -470,15 +489,17 @@ static const SpaNode audiotestsrc_node = {
|
|||
spa_audiotestsrc_node_get_port_ids,
|
||||
spa_audiotestsrc_node_add_port,
|
||||
spa_audiotestsrc_node_remove_port,
|
||||
spa_audiotestsrc_node_enum_port_formats,
|
||||
spa_audiotestsrc_node_set_port_format,
|
||||
spa_audiotestsrc_node_get_port_format,
|
||||
spa_audiotestsrc_node_get_port_info,
|
||||
spa_audiotestsrc_node_get_port_props,
|
||||
spa_audiotestsrc_node_set_port_props,
|
||||
spa_audiotestsrc_node_get_port_status,
|
||||
spa_audiotestsrc_node_push_port_input,
|
||||
spa_audiotestsrc_node_pull_port_output,
|
||||
spa_audiotestsrc_node_port_enum_formats,
|
||||
spa_audiotestsrc_node_port_set_format,
|
||||
spa_audiotestsrc_node_port_get_format,
|
||||
spa_audiotestsrc_node_port_get_info,
|
||||
spa_audiotestsrc_node_port_get_props,
|
||||
spa_audiotestsrc_node_port_set_props,
|
||||
spa_audiotestsrc_node_port_use_buffers,
|
||||
spa_audiotestsrc_node_port_alloc_buffers,
|
||||
spa_audiotestsrc_node_port_get_status,
|
||||
spa_audiotestsrc_node_port_push_input,
|
||||
spa_audiotestsrc_node_port_pull_output,
|
||||
};
|
||||
|
||||
static SpaResult
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue