+ +
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 © 2025 Carlos Rafael Giani */ |
| 3 | /* SPDX-License-Identifier: MIT */ |
| 4 | |
| 5 | #ifndef SPA_AUDIO_DTS_H |
| 6 | #define SPA_AUDIO_DTS_H |
| 7 | |
| 8 | #include <spa/param/audio/raw.h> |
| 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | /** |
| 15 | * \addtogroup spa_param |
| 16 | * \{ |
| 17 | */ |
| 18 | |
| 19 | /** |
| 20 | * Possible high-definition DTS extensions on top of core DTS. |
| 21 | */ |
| 22 | enum spa_audio_dts_ext_type { |
| 23 | SPA_AUDIO_DTS_EXT_UNKNOWN, |
| 24 | SPA_AUDIO_DTS_EXT_NONE, /**< No extension present; this is just regular DTS data */ |
| 25 | SPA_AUDIO_DTS_EXT_HD_HRA, /**< DTS-HD High Resolution Audio (lossy HD audio extension) */ |
| 26 | SPA_AUDIO_DTS_EXT_HD_MA, /**< DTS-HD Master Audio (lossless HD audio extension) */ |
| 27 | }; |
| 28 | |
| 29 | /** |
| 30 | * DTS Coherent Acoustics audio info. Optional extensions on top |
| 31 | * of the DTS content can be present, resulting in what is known |
| 32 | * as DTS-HD. \a ext_type specifies which extension is used in |
| 33 | * combination with the core DTS content (if any). |
| 34 | */ |
| 35 | struct spa_audio_info_dts { |
| 36 | uint32_t rate; /*< sample rate */ |
| 37 | uint32_t channels; /*< number of channels */ |
| 38 | enum spa_audio_dts_ext_type ext_type; /*< DTS-HD extension type */ |
| 39 | }; |
| 40 | |
| 41 | #define SPA_AUDIO_INFO_DTS_INIT(...) ((struct spa_audio_info_dts) { __VA_ARGS__ }) |
| 42 | |
| 43 | /** |
| 44 | * \} |
| 45 | */ |
| 46 | |
| 47 | #ifdef __cplusplus |
| 48 | } /* extern "C" */ |
| 49 | #endif |
| 50 | |
| 51 | #endif /* SPA_AUDIO_DTS_H */ |