+ +
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_PROPS_H |
| 6 | #define SPA_PARAM_PROPS_H |
| 7 | |
| 8 | #include <spa/param/param.h> |
| 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | /** |
| 15 | * \addtogroup spa_param |
| 16 | * \{ |
| 17 | */ |
| 18 | |
| 19 | /** properties of SPA_TYPE_OBJECT_PropInfo */ |
| 20 | enum spa_prop_info { |
| 21 | SPA_PROP_INFO_START, |
| 22 | SPA_PROP_INFO_id, /**< associated id of the property */ |
| 23 | SPA_PROP_INFO_name, /**< name of the property */ |
| 24 | SPA_PROP_INFO_type, /**< type and range/enums of property */ |
| 25 | SPA_PROP_INFO_labels, /**< labels of property if any, this is a |
| 26 | * struct with pairs of values, the first one |
| 27 | * is of the type of the property, the second |
| 28 | * one is a string with a user readable label |
| 29 | * for the value. */ |
| 30 | SPA_PROP_INFO_container, /**< type of container if any (Id) */ |
| 31 | SPA_PROP_INFO_params, /**< is part of params property (Bool) */ |
| 32 | SPA_PROP_INFO_description, /**< User readable description */ |
| 33 | }; |
| 34 | |
| 35 | /** predefined properties for SPA_TYPE_OBJECT_Props */ |
| 36 | enum spa_prop { |
| 37 | SPA_PROP_START, |
| 38 | |
| 39 | SPA_PROP_unknown, /**< an unknown property */ |
| 40 | |
| 41 | SPA_PROP_START_Device = 0x100, /**< device related properties */ |
| 42 | SPA_PROP_device, |
| 43 | SPA_PROP_deviceName, |
| 44 | SPA_PROP_deviceFd, |
| 45 | SPA_PROP_card, |
| 46 | SPA_PROP_cardName, |
| 47 | |
| 48 | SPA_PROP_minLatency, |
| 49 | SPA_PROP_maxLatency, |
| 50 | SPA_PROP_periods, |
| 51 | SPA_PROP_periodSize, |
| 52 | SPA_PROP_periodEvent, |
| 53 | SPA_PROP_live, |
| 54 | SPA_PROP_rate, |
| 55 | SPA_PROP_quality, |
| 56 | SPA_PROP_bluetoothAudioCodec, |
| 57 | SPA_PROP_bluetoothOffloadActive, |
| 58 | SPA_PROP_clockId, |
| 59 | SPA_PROP_clockDevice, |
| 60 | SPA_PROP_clockInterface, |
| 61 | |
| 62 | SPA_PROP_START_Audio = 0x10000, /**< audio related properties */ |
| 63 | SPA_PROP_waveType, |
| 64 | SPA_PROP_frequency, |
| 65 | SPA_PROP_volume, /**< a volume (Float), 0.0 silence, 1.0 no attenutation */ |
| 66 | SPA_PROP_mute, /**< mute (Bool) */ |
| 67 | SPA_PROP_patternType, |
| 68 | SPA_PROP_ditherType, |
| 69 | SPA_PROP_truncate, |
| 70 | SPA_PROP_channelVolumes, /**< a volume array, one (linear) volume per channel |
| 71 | * (Array of Float). 0.0 is silence, 1.0 is |
| 72 | * without attenuation. This is the effective |
| 73 | * volume that is applied. It can result |
| 74 | * in a hardware volume and software volume |
| 75 | * (see softVolumes) */ |
| 76 | SPA_PROP_volumeBase, /**< a volume base (Float) */ |
| 77 | SPA_PROP_volumeStep, /**< a volume step (Float) */ |
| 78 | SPA_PROP_channelMap, /**< a channelmap array |
| 79 | * (Array (Id enum spa_audio_channel)) */ |
| 80 | SPA_PROP_monitorMute, /**< mute (Bool) */ |
| 81 | SPA_PROP_monitorVolumes, /**< a volume array, one (linear) volume per |
| 82 | * channel (Array of Float) */ |
| 83 | SPA_PROP_latencyOffsetNsec, /**< delay adjustment */ |
| 84 | SPA_PROP_softMute, /**< mute (Bool) applied in software */ |
| 85 | SPA_PROP_softVolumes, /**< a volume array, one (linear) volume per channel |
| 86 | * (Array of Float). 0.0 is silence, 1.0 is without |
| 87 | * attenuation. This is the volume applied in |
| 88 | * software, there might be a part applied in |
| 89 | * hardware. */ |
| 90 | |
| 91 | SPA_PROP_iec958Codecs, /**< enabled IEC958 (S/PDIF) codecs, |
| 92 | * (Array (Id enum spa_audio_iec958_codec) */ |
| 93 | SPA_PROP_volumeRampSamples, /**< Samples to ramp the volume over */ |
| 94 | SPA_PROP_volumeRampStepSamples, /**< Step or incremental Samples to ramp |
| 95 | * the volume over */ |
| 96 | SPA_PROP_volumeRampTime, /**< Time in millisec to ramp the volume over */ |
| 97 | SPA_PROP_volumeRampStepTime, /**< Step or incremental Time in nano seconds |
| 98 | * to ramp the */ |
| 99 | SPA_PROP_volumeRampScale, /**< the scale or graph to used to ramp the |
| 100 | * volume */ |
| 101 | |
| 102 | SPA_PROP_START_Video = 0x20000, /**< video related properties */ |
| 103 | SPA_PROP_brightness, |
| 104 | SPA_PROP_contrast, |
| 105 | SPA_PROP_saturation, |
| 106 | SPA_PROP_hue, |
| 107 | SPA_PROP_gamma, |
| 108 | SPA_PROP_exposure, |
| 109 | SPA_PROP_gain, |
| 110 | SPA_PROP_sharpness, |
| 111 | |
| 112 | SPA_PROP_START_Other = 0x80000, /**< other properties */ |
| 113 | SPA_PROP_params, /**< simple control params |
| 114 | * (Struct( |
| 115 | * (String : key, |
| 116 | * Pod : value)*)) */ |
| 117 | |
| 118 | |
| 119 | SPA_PROP_START_CUSTOM = 0x1000000, |
| 120 | }; |
| 121 | |
| 122 | /** |
| 123 | * \} |
| 124 | */ |
| 125 | |
| 126 | #ifdef __cplusplus |
| 127 | } /* extern "C" */ |
| 128 | #endif |
| 129 | |
| 130 | #endif /* SPA_PARAM_PROPS_H */ |