PipeWire  0.3.61
type-info.h
Go to the documentation of this file.
1 /* Simple Plugin API
2  *
3  * Copyright © 2018 Wim Taymans
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
25 #ifndef SPA_BUFFER_TYPES_H
26 #define SPA_BUFFER_TYPES_H
27 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 #include <spa/buffer/buffer.h>
38 #include <spa/buffer/meta.h>
39 #include <spa/utils/type.h>
40 
41 #define SPA_TYPE_INFO_Buffer SPA_TYPE_INFO_POINTER_BASE "Buffer"
42 #define SPA_TYPE_INFO_BUFFER_BASE SPA_TYPE_INFO_Buffer ":"
43 
45 #define SPA_TYPE_INFO_Data SPA_TYPE_INFO_ENUM_BASE "Data"
46 #define SPA_TYPE_INFO_DATA_BASE SPA_TYPE_INFO_Data ":"
47 
49 #define SPA_TYPE_INFO_DATA_Fd SPA_TYPE_INFO_DATA_BASE "Fd"
50 #define SPA_TYPE_INFO_DATA_FD_BASE SPA_TYPE_INFO_DATA_Fd ":"
51 
52 static const struct spa_type_info spa_type_data_type[] = {
58  { 0, 0, NULL, NULL },
59 };
60 
61 #define SPA_TYPE_INFO_Meta SPA_TYPE_INFO_POINTER_BASE "Meta"
62 #define SPA_TYPE_INFO_META_BASE SPA_TYPE_INFO_Meta ":"
63 
64 #define SPA_TYPE_INFO_META_Array SPA_TYPE_INFO_META_BASE "Array"
65 #define SPA_TYPE_INFO_META_ARRAY_BASE SPA_TYPE_INFO_META_Array ":"
66 
67 #define SPA_TYPE_INFO_META_Region SPA_TYPE_INFO_META_BASE "Region"
68 #define SPA_TYPE_INFO_META_REGION_BASE SPA_TYPE_INFO_META_Region ":"
69 
70 #define SPA_TYPE_INFO_META_ARRAY_Region SPA_TYPE_INFO_META_ARRAY_BASE "Region"
71 #define SPA_TYPE_INFO_META_ARRAY_REGION_BASE SPA_TYPE_INFO_META_ARRAY_Region ":"
72 
73 static const struct spa_type_info spa_type_meta_type[] = {
82  { 0, 0, NULL, NULL },
83 };
84 
89 #ifdef __cplusplus
90 } /* extern "C" */
91 #endif
92 
93 #endif /* SPA_BUFFER_TYPES_H */
spa/buffer/buffer.h
#define SPA_TYPE_INFO_META_REGION_BASE
Definition: type-info.h:85
#define SPA_TYPE_INFO_DATA_FD_BASE
Definition: type-info.h:61
static const struct spa_type_info spa_type_data_type[]
Definition: type-info.h:63
#define SPA_TYPE_INFO_META_BASE
Definition: type-info.h:75
#define SPA_TYPE_INFO_META_ARRAY_REGION_BASE
Definition: type-info.h:90
#define SPA_TYPE_INFO_DATA_BASE
Definition: type-info.h:55
static const struct spa_type_info spa_type_meta_type[]
Definition: type-info.h:92
@ 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:49
@ SPA_META_Bitmap
struct spa_meta_bitmap
Definition: meta.h:50
@ SPA_META_Cursor
struct spa_meta_cursor
Definition: meta.h:51
@ SPA_META_Busy
don't write to buffer when count > 0
Definition: meta.h:54
@ SPA_META_VideoCrop
struct spa_meta_region with cropping data
Definition: meta.h:48
@ SPA_META_Header
struct spa_meta_header
Definition: meta.h:47
@ SPA_META_Control
metadata contains a spa_meta_control associated with the data
Definition: meta.h:52
@ SPA_META_Invalid
Definition: meta.h:46
@ SPA_DATA_MemFd
generic fd, mmap to get to memory
Definition: buffer.h:54
@ SPA_DATA_MemPtr
pointer to memory, the data field in struct spa_data is set.
Definition: buffer.h:52
@ SPA_DATA_Invalid
Definition: buffer.h:51
@ SPA_DATA_MemId
memory is identified with an id
Definition: buffer.h:56
@ SPA_DATA_DmaBuf
fd to dmabuf memory
Definition: buffer.h:55
@ SPA_TYPE_Int
Definition: type.h:54
@ SPA_TYPE_Pointer
Definition: type.h:67
spa/buffer/meta.h
spa/utils/type.h
Definition: type.h:162