PipeWire  1.4.11
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
14 extern "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 
32 static const struct spa_type_info spa_type_data_type[] = {
39  { 0, 0, NULL, NULL },
40 };
41 
42 #define SPA_TYPE_INFO_Meta SPA_TYPE_INFO_POINTER_BASE "Meta"
43 #define SPA_TYPE_INFO_META_BASE SPA_TYPE_INFO_Meta ":"
44 
45 #define SPA_TYPE_INFO_META_Array SPA_TYPE_INFO_META_BASE "Array"
46 #define SPA_TYPE_INFO_META_ARRAY_BASE SPA_TYPE_INFO_META_Array ":"
47 
48 #define SPA_TYPE_INFO_META_Region SPA_TYPE_INFO_META_BASE "Region"
49 #define SPA_TYPE_INFO_META_REGION_BASE SPA_TYPE_INFO_META_Region ":"
50 
51 #define SPA_TYPE_INFO_META_ARRAY_Region SPA_TYPE_INFO_META_ARRAY_BASE "Region"
52 #define SPA_TYPE_INFO_META_ARRAY_REGION_BASE SPA_TYPE_INFO_META_ARRAY_Region ":"
53 
54 /* VideoTransform meta */
55 #define SPA_TYPE_INFO_META_Transformation SPA_TYPE_INFO_ENUM_BASE "Meta:Transformation"
56 #define SPA_TYPE_INFO_META_TRANSFORMATION_BASE SPA_TYPE_INFO_META_Transformation ":"
57 
58 static const struct spa_type_info spa_type_meta_videotransform_type[] = {
67  { 0, 0, NULL, NULL },
68 };
69 
70 static const struct spa_type_info spa_type_meta_type[] = {
81  { 0, 0, NULL, NULL },
82 };
83 
88 #ifdef __cplusplus
89 } /* extern "C" */
90 #endif
91 
92 #endif /* SPA_BUFFER_TYPES_H */
struct spa_meta_cursor
Definition: meta.h:41
struct spa_meta_sync_timeline
Definition: meta.h:46
static const struct spa_type_info spa_type_data_type[]
Definition: type-info.h:43
spa/buffer/meta.h
static const struct spa_type_info spa_type_meta_videotransform_type[]
Definition: type-info.h:79
Definition: type.h:58
#define SPA_TYPE_INFO_META_ARRAY_REGION_BASE
Definition: type-info.h:71
struct spa_meta_transform
Definition: meta.h:45
#define SPA_TYPE_INFO_DATA_BASE
Definition: type-info.h:35
#define SPA_TYPE_INFO_META_REGION_BASE
Definition: type-info.h:66
struct spa_meta_header
Definition: meta.h:37
metadata contains a spa_meta_control associated with the data
Definition: meta.h:42
spa/utils/type.h
no transform
Definition: meta.h:170
Definition: type.h:154
90 degree counter-clockwise
Definition: meta.h:171
fd to dmabuf memory.
Definition: buffer.h:46
flip then rotate around 180 degree counter-clockwise
Definition: meta.h:178
array of struct spa_meta_region with damage, where an invalid entry or end-of-array marks the end...
Definition: meta.h:39
pointer to memory, the data field in struct spa_data is set.
Definition: buffer.h:43
struct spa_meta_region with cropping data
Definition: meta.h:38
180 degree flipped around the vertical axis.
Definition: meta.h:174
flip then rotate around 90 degree counter-clockwise
Definition: meta.h:177
flip then rotate around 270 degree counter-clockwise
Definition: meta.h:179
#define SPA_TYPE_INFO_META_TRANSFORMATION_BASE
Definition: type-info.h:77
static const struct spa_type_info spa_type_meta_type[]
Definition: type-info.h:91
struct spa_meta_bitmap
Definition: meta.h:40
spa/buffer/buffer.h
don&#39;t write to buffer when count > 0
Definition: meta.h:44
Definition: type.h:45
270 degree counter-clockwise
Definition: meta.h:173
Definition: buffer.h:42
#define SPA_TYPE_INFO_META_BASE
Definition: type-info.h:56
a syncobj, usually requires a spa_meta_sync_timeline metadata with timeline points.
Definition: buffer.h:52
memfd, mmap to get to memory.
Definition: buffer.h:45
#define SPA_TYPE_INFO_DATA_FD_BASE
Definition: type-info.h:41
Definition: meta.h:36
memory is identified with an id.
Definition: buffer.h:49
180 degree counter-clockwise
Definition: meta.h:172