+ +
2da5fe7 OpenAVX v0.2.0 - High-performance open-standard IP audio and video transport suite
saifmukhtar · 2026-11-24
main
| 1 | /* Simple Plugin API */ |
| 2 | /* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */ |
| 3 | /* SPDX-License-Identifier: MIT */ |
| 4 | |
| 5 | #ifndef SPA_PARAM_BUFFERS_TYPES_H |
| 6 | #define SPA_PARAM_BUFFERS_TYPES_H |
| 7 | |
| 8 | #include <spa/param/param-types.h> |
| 9 | #include <spa/node/type-info.h> |
| 10 | |
| 11 | #include <spa/param/buffers.h> |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | /** |
| 18 | * \addtogroup spa_param |
| 19 | * \{ |
| 20 | */ |
| 21 | |
| 22 | #define SPA_TYPE_INFO_PARAM_Meta SPA_TYPE_INFO_PARAM_BASE "Meta" |
| 23 | #define SPA_TYPE_INFO_PARAM_META_BASE SPA_TYPE_INFO_PARAM_Meta ":" |
| 24 | |
| 25 | static const struct spa_type_info spa_type_param_meta[] = { |
| 26 | { SPA_PARAM_META_START, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_META_BASE, spa_type_param }, |
| 27 | { SPA_PARAM_META_type, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_META_BASE "type", spa_type_meta_type }, |
| 28 | { SPA_PARAM_META_size, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_META_BASE "size", NULL }, |
| 29 | { 0, 0, NULL, NULL }, |
| 30 | }; |
| 31 | |
| 32 | /** Base for parameters that describe IO areas to exchange data, |
| 33 | * control and properties with a node. |
| 34 | */ |
| 35 | #define SPA_TYPE_INFO_PARAM_IO SPA_TYPE_INFO_PARAM_BASE "IO" |
| 36 | #define SPA_TYPE_INFO_PARAM_IO_BASE SPA_TYPE_INFO_PARAM_IO ":" |
| 37 | |
| 38 | static const struct spa_type_info spa_type_param_io[] = { |
| 39 | { SPA_PARAM_IO_START, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_IO_BASE, spa_type_param, }, |
| 40 | { SPA_PARAM_IO_id, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_IO_BASE "id", spa_type_io }, |
| 41 | { SPA_PARAM_IO_size, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_IO_BASE "size", NULL }, |
| 42 | { 0, 0, NULL, NULL }, |
| 43 | }; |
| 44 | |
| 45 | #define SPA_TYPE_INFO_PARAM_Buffers SPA_TYPE_INFO_PARAM_BASE "Buffers" |
| 46 | #define SPA_TYPE_INFO_PARAM_BUFFERS_BASE SPA_TYPE_INFO_PARAM_Buffers ":" |
| 47 | |
| 48 | #define SPA_TYPE_INFO_PARAM_BlockInfo SPA_TYPE_INFO_PARAM_BUFFERS_BASE "BlockInfo" |
| 49 | #define SPA_TYPE_INFO_PARAM_BLOCK_INFO_BASE SPA_TYPE_INFO_PARAM_BlockInfo ":" |
| 50 | |
| 51 | static const struct spa_type_info spa_type_param_buffers[] = { |
| 52 | { SPA_PARAM_BUFFERS_START, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_BUFFERS_BASE, spa_type_param, }, |
| 53 | { SPA_PARAM_BUFFERS_buffers, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_BUFFERS_BASE "buffers", NULL }, |
| 54 | { SPA_PARAM_BUFFERS_blocks, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_BUFFERS_BASE "blocks", NULL }, |
| 55 | { SPA_PARAM_BUFFERS_size, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_BLOCK_INFO_BASE "size", NULL }, |
| 56 | { SPA_PARAM_BUFFERS_stride, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_BLOCK_INFO_BASE "stride", NULL }, |
| 57 | { SPA_PARAM_BUFFERS_align, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_BLOCK_INFO_BASE "align", NULL }, |
| 58 | { SPA_PARAM_BUFFERS_dataType, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_BLOCK_INFO_BASE "dataType", NULL }, |
| 59 | { SPA_PARAM_BUFFERS_metaType, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_BLOCK_INFO_BASE "metaType", NULL }, |
| 60 | { 0, 0, NULL, NULL }, |
| 61 | }; |
| 62 | |
| 63 | /** |
| 64 | * \} |
| 65 | */ |
| 66 | |
| 67 | #ifdef __cplusplus |
| 68 | } /* extern "C" */ |
| 69 | #endif |
| 70 | |
| 71 | #endif /* SPA_PARAM_BUFFERS_TYPES_H */ |