PipeWire 0.3.77
Loading...
Searching...
No Matches
format-utils.h
Go to the documentation of this file.
1/* Simple Plugin API */
2/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef SPA_PARAM_FORMAT_UTILS_H
6#define SPA_PARAM_FORMAT_UTILS_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12
18#include <spa/pod/parser.h>
19#include <spa/param/format.h>
20
21static inline int
22spa_format_parse(const struct spa_pod *format, uint32_t *media_type, uint32_t *media_subtype)
23{
24 return spa_pod_parse_object(format,
28}
29
34#ifdef __cplusplus
35} /* extern "C" */
36#endif
37
38#endif /* SPA_PARAM_FORMAT_UTILS_H */
static int spa_format_parse(const struct spa_pod *format, uint32_t *media_type, uint32_t *media_subtype)
Definition: format-utils.h:27
@ SPA_FORMAT_mediaType
media type (Id enum spa_media_type)
Definition: param/format.h:93
@ SPA_FORMAT_mediaSubtype
media subtype (Id enum spa_media_subtype)
Definition: param/format.h:94
#define SPA_POD_Id(val)
Definition: vararg.h:49
#define spa_pod_parse_object(pod, type, id,...)
Definition: parser.h:576
@ SPA_TYPE_OBJECT_Format
Definition: spa/include/spa/utils/type.h:76
spa/param/format.h
spa/pod/parser.h
Definition: pod/pod.h:43