+ +
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 © 2019 Wim Taymans */ |
| 3 | /* SPDX-License-Identifier: MIT */ |
| 4 | |
| 5 | #ifndef SPA_UTILS_NAMES_H |
| 6 | #define SPA_UTILS_NAMES_H |
| 7 | |
| 8 | #ifdef __cplusplus |
| 9 | extern "C" { |
| 10 | #endif |
| 11 | |
| 12 | /** \defgroup spa_names Factory Names |
| 13 | * SPA plugin factory names |
| 14 | */ |
| 15 | |
| 16 | /** |
| 17 | * \addtogroup spa_names |
| 18 | * \{ |
| 19 | */ |
| 20 | |
| 21 | /** for factory names */ |
| 22 | #define SPA_NAME_SUPPORT_CPU "support.cpu" /**< A CPU interface */ |
| 23 | #define SPA_NAME_SUPPORT_DBUS "support.dbus" /**< A DBUS interface */ |
| 24 | #define SPA_NAME_SUPPORT_LOG "support.log" /**< A Log interface */ |
| 25 | #define SPA_NAME_SUPPORT_LOOP "support.loop" /**< A Loop/LoopControl/LoopUtils |
| 26 | * interface */ |
| 27 | #define SPA_NAME_SUPPORT_SYSTEM "support.system" /**< A System interface */ |
| 28 | |
| 29 | #define SPA_NAME_SUPPORT_NODE_DRIVER "support.node.driver" /**< A dummy driver node */ |
| 30 | |
| 31 | /* control mixer */ |
| 32 | #define SPA_NAME_CONTROL_MIXER "control.mixer" /**< mixes control streams */ |
| 33 | |
| 34 | /* audio mixer */ |
| 35 | #define SPA_NAME_AUDIO_MIXER "audio.mixer" /**< mixes the raw audio on N input |
| 36 | * ports together on the output |
| 37 | * port */ |
| 38 | #define SPA_NAME_AUDIO_MIXER_DSP "audio.mixer.dsp" /**< mixes mono audio with fixed input |
| 39 | * and output buffer sizes. supported |
| 40 | * formats must include f32 and |
| 41 | * optionally f64 and s24_32 */ |
| 42 | |
| 43 | /** audio processing */ |
| 44 | #define SPA_NAME_AUDIO_PROCESS_FORMAT "audio.process.format" /**< processes raw audio from one format |
| 45 | * to another */ |
| 46 | #define SPA_NAME_AUDIO_PROCESS_CHANNELMIX \ |
| 47 | "audio.process.channelmix" /**< mixes raw audio channels and applies |
| 48 | * volume change. */ |
| 49 | #define SPA_NAME_AUDIO_PROCESS_RESAMPLE \ |
| 50 | "audio.process.resample" /**< resamples raw audio */ |
| 51 | #define SPA_NAME_AUDIO_PROCESS_DEINTERLEAVE \ |
| 52 | "audio.process.deinterleave" /**< deinterleave raw audio channels */ |
| 53 | #define SPA_NAME_AUDIO_PROCESS_INTERLEAVE \ |
| 54 | "audio.process.interleave" /**< interleave raw audio channels */ |
| 55 | |
| 56 | |
| 57 | /** audio convert combines some of the audio processing */ |
| 58 | #define SPA_NAME_AUDIO_CONVERT "audio.convert" /**< converts raw audio from one format |
| 59 | * to another. Must include at least |
| 60 | * format, channelmix and resample |
| 61 | * processing */ |
| 62 | #define SPA_NAME_AUDIO_ADAPT "audio.adapt" /**< combination of a node and an |
| 63 | * audio.convert. Does clock slaving */ |
| 64 | |
| 65 | #define SPA_NAME_AEC "audio.aec" /**< Echo canceling */ |
| 66 | |
| 67 | /** video processing */ |
| 68 | #define SPA_NAME_VIDEO_PROCESS_FORMAT "video.process.format" /**< processes raw video from one format |
| 69 | * to another */ |
| 70 | #define SPA_NAME_VIDEO_PROCESS_SCALE "video.process.scale" /**< scales raw video */ |
| 71 | |
| 72 | /** video convert combines some of the video processing */ |
| 73 | #define SPA_NAME_VIDEO_CONVERT "video.convert" /**< converts raw video from one format |
| 74 | * to another. Must include at least |
| 75 | * format and scaling */ |
| 76 | #define SPA_NAME_VIDEO_CONVERT_DUMMY "video.convert.dummy" /**< a dummy converter as fallback for the |
| 77 | * videoadapter node */ |
| 78 | #define SPA_NAME_VIDEO_ADAPT "video.adapt" /**< combination of a node and a |
| 79 | * video.convert. */ |
| 80 | /** keys for alsa factory names */ |
| 81 | #define SPA_NAME_API_ALSA_ENUM_UDEV "api.alsa.enum.udev" /**< an alsa udev Device interface */ |
| 82 | #define SPA_NAME_API_ALSA_PCM_DEVICE "api.alsa.pcm.device" /**< an alsa Device interface */ |
| 83 | #define SPA_NAME_API_ALSA_PCM_SOURCE "api.alsa.pcm.source" /**< an alsa Node interface for |
| 84 | * capturing PCM */ |
| 85 | #define SPA_NAME_API_ALSA_PCM_SINK "api.alsa.pcm.sink" /**< an alsa Node interface for |
| 86 | * playback PCM */ |
| 87 | #define SPA_NAME_API_ALSA_SEQ_DEVICE "api.alsa.seq.device" /**< an alsa Midi device */ |
| 88 | #define SPA_NAME_API_ALSA_SEQ_SOURCE "api.alsa.seq.source" /**< an alsa Node interface for |
| 89 | * capture of midi */ |
| 90 | #define SPA_NAME_API_ALSA_SEQ_SINK "api.alsa.seq.sink" /**< an alsa Node interface for |
| 91 | * playback of midi */ |
| 92 | #define SPA_NAME_API_ALSA_SEQ_BRIDGE "api.alsa.seq.bridge" /**< an alsa Node interface for |
| 93 | * bridging midi ports */ |
| 94 | #define SPA_NAME_API_ALSA_ACP_DEVICE "api.alsa.acp.device" /**< an alsa ACP Device interface */ |
| 95 | #define SPA_NAME_API_ALSA_COMPRESS_OFFLOAD_DEVICE "api.alsa.compress.offload.device" /**< an alsa Device interface for |
| 96 | * compressed audio */ |
| 97 | #define SPA_NAME_API_ALSA_COMPRESS_OFFLOAD_SINK "api.alsa.compress.offload.sink" /**< an alsa Node interface for |
| 98 | * compressed audio */ |
| 99 | |
| 100 | /** keys for bluez5 factory names */ |
| 101 | #define SPA_NAME_API_BLUEZ5_ENUM_DBUS "api.bluez5.enum.dbus" /**< a dbus Device interface */ |
| 102 | #define SPA_NAME_API_BLUEZ5_DEVICE "api.bluez5.device" /**< a Device interface */ |
| 103 | #define SPA_NAME_API_BLUEZ5_MEDIA_SINK "api.bluez5.media.sink" /**< a playback Node interface for A2DP/BAP profiles */ |
| 104 | #define SPA_NAME_API_BLUEZ5_MEDIA_SOURCE "api.bluez5.media.source" /**< a capture Node interface for A2DP/BAP profiles */ |
| 105 | #define SPA_NAME_API_BLUEZ5_A2DP_SINK "api.bluez5.a2dp.sink" /**< alias for media.sink */ |
| 106 | #define SPA_NAME_API_BLUEZ5_A2DP_SOURCE "api.bluez5.a2dp.source" /**< alias for media.source */ |
| 107 | #define SPA_NAME_API_BLUEZ5_SCO_SINK "api.bluez5.sco.sink" /**< a playback Node interface for HSP/HFP profiles */ |
| 108 | #define SPA_NAME_API_BLUEZ5_SCO_SOURCE "api.bluez5.sco.source" /**< a capture Node interface for HSP/HFP profiles */ |
| 109 | #define SPA_NAME_API_BLUEZ5_MIDI_ENUM "api.bluez5.midi.enum" /**< a dbus midi Device interface */ |
| 110 | #define SPA_NAME_API_BLUEZ5_MIDI_NODE "api.bluez5.midi.node" /**< a midi Node interface */ |
| 111 | |
| 112 | /** keys for codec factory names */ |
| 113 | #define SPA_NAME_API_CODEC_BLUEZ5_MEDIA "api.codec.bluez5.media" /**< Bluez5 Media codec plugin */ |
| 114 | |
| 115 | /** keys for v4l2 factory names */ |
| 116 | #define SPA_NAME_API_V4L2_ENUM_UDEV "api.v4l2.enum.udev" /**< a v4l2 udev Device interface */ |
| 117 | #define SPA_NAME_API_V4L2_DEVICE "api.v4l2.device" /**< a v4l2 Device interface */ |
| 118 | #define SPA_NAME_API_V4L2_SOURCE "api.v4l2.source" /**< a v4l2 Node interface for |
| 119 | * capturing */ |
| 120 | |
| 121 | /** keys for libcamera factory names */ |
| 122 | #define SPA_NAME_API_LIBCAMERA_ENUM_CLIENT "api.libcamera.enum.client" /**< a libcamera client Device interface */ |
| 123 | #define SPA_NAME_API_LIBCAMERA_ENUM_MANAGER "api.libcamera.enum.manager" /**< a libcamera manager Device interface */ |
| 124 | #define SPA_NAME_API_LIBCAMERA_DEVICE "api.libcamera.device" /**< a libcamera Device interface */ |
| 125 | #define SPA_NAME_API_LIBCAMERA_SOURCE "api.libcamera.source" /**< a libcamera Node interface for |
| 126 | * capturing */ |
| 127 | |
| 128 | /** keys for jack factory names */ |
| 129 | #define SPA_NAME_API_JACK_DEVICE "api.jack.device" /**< a jack device. This is a |
| 130 | * client connected to a server */ |
| 131 | #define SPA_NAME_API_JACK_SOURCE "api.jack.source" /**< a jack source */ |
| 132 | #define SPA_NAME_API_JACK_SINK "api.jack.sink" /**< a jack sink */ |
| 133 | |
| 134 | /** keys for vulkan factory names */ |
| 135 | #define SPA_NAME_API_VULKAN_COMPUTE_SOURCE \ |
| 136 | "api.vulkan.compute.source" /**< a vulkan compute source. */ |
| 137 | #define SPA_NAME_API_VULKAN_COMPUTE_FILTER \ |
| 138 | "api.vulkan.compute.filter" /**< a vulkan compute filter. */ |
| 139 | #define SPA_NAME_API_VULKAN_BLIT_FILTER \ |
| 140 | "api.vulkan.blit.filter" /**< a vulkan blit filter. */ |
| 141 | #define SPA_NAME_API_VULKAN_BLIT_DSP_FILTER \ |
| 142 | "api.vulkan.blit.dsp-filter" /**< a vulkan blit dsp-filter. */ |
| 143 | |
| 144 | /** |
| 145 | * \} |
| 146 | */ |
| 147 | |
| 148 | #ifdef __cplusplus |
| 149 | } /* extern "C" */ |
| 150 | #endif |
| 151 | |
| 152 | #endif /* SPA_UTILS_NAMES_H */ |