PipeWire: spa/buffer/type-info.h Source File

PipeWire 1.0.7

Loading...
Searching...
No Matches
type-info.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_BUFFER_TYPES_H
6#define SPA_BUFFER_TYPES_H
7
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <spa/buffer/buffer.h>
18#include <spa/buffer/meta.h>
19#include <spa/utils/type.h>
20
21#define SPA_TYPE_INFO_Buffer SPA_TYPE_INFO_POINTER_BASE "Buffer"
22#define SPA_TYPE_INFO_BUFFER_BASE SPA_TYPE_INFO_Buffer ":"
23
25#define SPA_TYPE_INFO_Data SPA_TYPE_INFO_ENUM_BASE "Data"
26#define SPA_TYPE_INFO_DATA_BASE SPA_TYPE_INFO_Data ":"
27
29#define SPA_TYPE_INFO_DATA_Fd SPA_TYPE_INFO_DATA_BASE "Fd"
30#define SPA_TYPE_INFO_DATA_FD_BASE SPA_TYPE_INFO_DATA_Fd ":"
31
32static const struct spa_type_info spa_type_data_type[] = {
33 { SPA_DATA_Invalid, SPA_TYPE_Int, SPA_TYPE_INFO_DATA_BASE "Invalid", NULL },
34 { SPA_DATA_MemPtr, SPA_TYPE_Int, SPA_TYPE_INFO_DATA_BASE "MemPtr", NULL },
35 { SPA_DATA_MemFd, SPA_TYPE_Int, SPA_TYPE_INFO_DATA_FD_BASE "MemFd", NULL },
36 { SPA_DATA_DmaBuf, SPA_TYPE_Int, SPA_TYPE_INFO_DATA_FD_BASE "DmaBuf", NULL },
37 { SPA_DATA_MemId, SPA_TYPE_Int, SPA_TYPE_INFO_DATA_BASE "MemId", NULL },
38 { 0, 0, NULL, NULL },
39};
40
41#define SPA_TYPE_INFO_Meta SPA_TYPE_INFO_POINTER_BASE "Meta"
42#define SPA_TYPE_INFO_META_BASE SPA_TYPE_INFO_Meta ":"
43
44#define SPA_TYPE_INFO_META_Array SPA_TYPE_INFO_META_BASE "Array"
45#define SPA_TYPE_INFO_META_ARRAY_BASE SPA_TYPE_INFO_META_Array ":"
46
47#define SPA_TYPE_INFO_META_Region SPA_TYPE_INFO_META_BASE "Region"
48#define SPA_TYPE_INFO_META_REGION_BASE SPA_TYPE_INFO_META_Region ":"
49
50#define SPA_TYPE_INFO_META_ARRAY_Region SPA_TYPE_INFO_META_ARRAY_BASE "Region"
51#define SPA_TYPE_INFO_META_ARRAY_REGION_BASE SPA_TYPE_INFO_META_ARRAY_Region ":"
52
53 static const struct spa_type_info spa_type_meta_type[] = {
54 { SPA_META_Invalid, SPA_TYPE_Pointer, SPA_TYPE_INFO_META_BASE "Invalid", NULL },
55 { SPA_META_Header, SPA_TYPE_Pointer, SPA_TYPE_INFO_META_BASE "Header", NULL },
56 { SPA_META_VideoCrop, SPA_TYPE_Pointer, SPA_TYPE_INFO_META_REGION_BASE "VideoCrop", NULL },
57 { SPA_META_VideoDamage, SPA_TYPE_Pointer, SPA_TYPE_INFO_META_ARRAY_REGION_BASE "VideoDamage", NULL },
58 { SPA_META_Bitmap, SPA_TYPE_Pointer, SPA_TYPE_INFO_META_BASE "Bitmap", NULL },
59 { SPA_META_Cursor, SPA_TYPE_Pointer, SPA_TYPE_INFO_META_BASE "Cursor", NULL },
60 { SPA_META_Control, SPA_TYPE_Pointer, SPA_TYPE_INFO_META_BASE "Control", NULL },
61 { SPA_META_Busy, SPA_TYPE_Pointer, SPA_TYPE_INFO_META_BASE "Busy", NULL },
62 { SPA_META_VideoTransform, SPA_TYPE_Pointer, SPA_TYPE_INFO_META_BASE "VideoTransform", NULL },
63 { 0, 0, NULL, NULL },
64};
65
70#ifdef __cplusplus
71} /* extern "C" */
72#endif
73
74#endif /* SPA_BUFFER_TYPES_H */
buffer.h
spa/buffer/buffer.h
SPA_TYPE_INFO_META_REGION_BASE
#define SPA_TYPE_INFO_META_REGION_BASE
Definition type-info.h:65
SPA_TYPE_INFO_DATA_FD_BASE
#define SPA_TYPE_INFO_DATA_FD_BASE
Definition type-info.h:41
spa_type_data_type
static const struct spa_type_info spa_type_data_type[]
Definition type-info.h:43
SPA_TYPE_INFO_META_BASE
#define SPA_TYPE_INFO_META_BASE
Definition type-info.h:55
SPA_TYPE_INFO_META_ARRAY_REGION_BASE
#define SPA_TYPE_INFO_META_ARRAY_REGION_BASE
Definition type-info.h:70
SPA_TYPE_INFO_DATA_BASE
#define SPA_TYPE_INFO_DATA_BASE
Definition type-info.h:35
spa_type_meta_type
static const struct spa_type_info spa_type_meta_type[]
Definition type-info.h:72
SPA_META_VideoDamage
@ SPA_META_VideoDamage
array of struct spa_meta_region with damage, where an invalid entry or end-of-array marks the end.
Definition meta.h:29
SPA_META_Bitmap
@ SPA_META_Bitmap
struct spa_meta_bitmap
Definition meta.h:30
SPA_META_VideoTransform
@ SPA_META_VideoTransform
struct spa_meta_transform
Definition meta.h:35
SPA_META_Cursor
@ SPA_META_Cursor
struct spa_meta_cursor
Definition meta.h:31
SPA_META_Busy
@ SPA_META_Busy
don't write to buffer when count > 0
Definition meta.h:34
SPA_META_VideoCrop
@ SPA_META_VideoCrop
struct spa_meta_region with cropping data
Definition meta.h:28
SPA_META_Header
@ SPA_META_Header
struct spa_meta_header
Definition meta.h:27
SPA_META_Control
@ SPA_META_Control
metadata contains a spa_meta_control associated with the data
Definition meta.h:32
SPA_META_Invalid
@ SPA_META_Invalid
Definition meta.h:26
SPA_DATA_MemFd
@ SPA_DATA_MemFd
generic fd, mmap to get to memory
Definition buffer.h:35
SPA_DATA_MemPtr
@ SPA_DATA_MemPtr
pointer to memory, the data field in struct spa_data is set.
Definition buffer.h:33
SPA_DATA_Invalid
@ SPA_DATA_Invalid
Definition buffer.h:32
SPA_DATA_MemId
@ SPA_DATA_MemId
memory is identified with an id
Definition buffer.h:37
SPA_DATA_DmaBuf
@ SPA_DATA_DmaBuf
fd to dmabuf memory
Definition buffer.h:36
SPA_TYPE_Int
@ SPA_TYPE_Int
Definition type.h:34
SPA_TYPE_Pointer
@ SPA_TYPE_Pointer
Definition type.h:47
meta.h
spa/buffer/meta.h
type.h
spa/utils/type.h
spa_type_info
Definition type.h:143