mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Add new pod parser and builder
Add a new pod builder and parser that is less verbose and a little more powerful.
This commit is contained in:
parent
3e49aec61b
commit
24d80e5c00
54 changed files with 3616 additions and 2817 deletions
|
|
@ -680,12 +680,11 @@ spa_v4l2_enum_format(struct impl *this,
|
|||
|
||||
if (media_subtype == this->type.media_subtype.raw) {
|
||||
spa_pod_builder_add(&b,
|
||||
PROP(&f[1], this->type.format_video.format, SPA_POD_TYPE_ID,
|
||||
video_format), 0);
|
||||
":", this->type.format_video.format, "I", video_format, 0);
|
||||
}
|
||||
spa_pod_builder_add(&b,
|
||||
PROP(&f[1], this->type.format_video.size, SPA_POD_TYPE_RECTANGLE,
|
||||
state->frmsize.discrete.width, state->frmsize.discrete.height), 0);
|
||||
":", this->type.format_video.size, "R", &SPA_RECTANGLE(state->frmsize.discrete.width,
|
||||
state->frmsize.discrete.height), 0);
|
||||
|
||||
spa_pod_builder_push_prop(&b, &f[1], this->type.format_video.framerate,
|
||||
SPA_POD_PROP_RANGE_NONE | SPA_POD_PROP_FLAG_UNSET);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue