PipeWire: spa/param/audio/aac.h Source File

PipeWire 1.4.7

Loading...
Searching...
No Matches
aac.h
Go to the documentation of this file.
1/* Simple Plugin API */
2/* SPDX-FileCopyrightText: Copyright © 2023 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef SPA_AUDIO_AAC_H
6#define SPA_AUDIO_AAC_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <spa/param/audio/raw.h>
13
18
19enum spa_audio_aac_stream_format {
20 SPA_AUDIO_AAC_STREAM_FORMAT_UNKNOWN,
21 /* Raw AAC frames */
22 SPA_AUDIO_AAC_STREAM_FORMAT_RAW,
23 /* ISO/IEC 13818-7 MPEG-2 Audio Data Transport Stream (ADTS) */
24 SPA_AUDIO_AAC_STREAM_FORMAT_MP2ADTS,
25 /* ISO/IEC 14496-3 MPEG-4 Audio Data Transport Stream (ADTS) */
26 SPA_AUDIO_AAC_STREAM_FORMAT_MP4ADTS,
27 /* ISO/IEC 14496-3 Low Overhead Audio Stream (LOAS) */
28 SPA_AUDIO_AAC_STREAM_FORMAT_MP4LOAS,
29 /* ISO/IEC 14496-3 Low Overhead Audio Transport Multiplex (LATM) */
30 SPA_AUDIO_AAC_STREAM_FORMAT_MP4LATM,
31 /* ISO/IEC 14496-3 Audio Data Interchange Format (ADIF) */
32 SPA_AUDIO_AAC_STREAM_FORMAT_ADIF,
33 /* ISO/IEC 14496-12 MPEG-4 file format */
34 SPA_AUDIO_AAC_STREAM_FORMAT_MP4FF,
35
36 SPA_AUDIO_AAC_STREAM_FORMAT_CUSTOM = 0x10000,
37};
38
39 struct spa_audio_info_aac {
40 uint32_t rate; /*< sample rate */
41 uint32_t channels; /*< number of channels */
42 uint32_t bitrate; /*< stream bitrate */
43 enum spa_audio_aac_stream_format stream_format; /*< AAC audio stream format */
44};
45
46#define SPA_AUDIO_INFO_AAC_INIT(...) ((struct spa_audio_info_aac) { __VA_ARGS__ })
47
50
51
52#ifdef __cplusplus
53} /* extern "C" */
54#endif
55
56#endif /* SPA_AUDIO_AAC_H */
raw.h
spa/param/audio/raw.h
spa_audio_aac_stream_format
spa_audio_aac_stream_format
Definition aac.h:24
SPA_AUDIO_AAC_STREAM_FORMAT_UNKNOWN
@ SPA_AUDIO_AAC_STREAM_FORMAT_UNKNOWN
Definition aac.h:25
SPA_AUDIO_AAC_STREAM_FORMAT_CUSTOM
@ SPA_AUDIO_AAC_STREAM_FORMAT_CUSTOM
Definition aac.h:41
SPA_AUDIO_AAC_STREAM_FORMAT_MP4FF
@ SPA_AUDIO_AAC_STREAM_FORMAT_MP4FF
Definition aac.h:39
SPA_AUDIO_AAC_STREAM_FORMAT_MP4ADTS
@ SPA_AUDIO_AAC_STREAM_FORMAT_MP4ADTS
Definition aac.h:31
SPA_AUDIO_AAC_STREAM_FORMAT_MP2ADTS
@ SPA_AUDIO_AAC_STREAM_FORMAT_MP2ADTS
Definition aac.h:29
SPA_AUDIO_AAC_STREAM_FORMAT_ADIF
@ SPA_AUDIO_AAC_STREAM_FORMAT_ADIF
Definition aac.h:37
SPA_AUDIO_AAC_STREAM_FORMAT_MP4LATM
@ SPA_AUDIO_AAC_STREAM_FORMAT_MP4LATM
Definition aac.h:35
SPA_AUDIO_AAC_STREAM_FORMAT_RAW
@ SPA_AUDIO_AAC_STREAM_FORMAT_RAW
Definition aac.h:27
SPA_AUDIO_AAC_STREAM_FORMAT_MP4LOAS
@ SPA_AUDIO_AAC_STREAM_FORMAT_MP4LOAS
Definition aac.h:33
spa_audio_info_aac
Definition aac.h:44
spa_audio_info_aac::channels
uint32_t channels
Definition aac.h:46
spa_audio_info_aac::bitrate
uint32_t bitrate
Definition aac.h:47
spa_audio_info_aac::rate
uint32_t rate
Definition aac.h:45
spa_audio_info_aac::stream_format
enum spa_audio_aac_stream_format stream_format
Definition aac.h:48