[vlc-devel] [PATCH 01/16] ES: add a property to audio_format_t for Ambisonics support

Rémi Denis-Courmont remi at remlab.net
Fri Jul 7 17:10:38 CEST 2017


Le 7 juillet 2017 17:02:47 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>From: Adrien Maglo <magsoft at videolan.org>
>
>Signed-off-by: Thomas Guillem <thomas at gllm.fr>
>---
> include/vlc_es.h | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
>diff --git a/include/vlc_es.h b/include/vlc_es.h
>index bc55bdd1e4..a7eac28bc5 100644
>--- a/include/vlc_es.h
>+++ b/include/vlc_es.h
>@@ -65,6 +65,16 @@ typedef struct
>     float      pf_gain[AUDIO_REPLAY_GAIN_MAX];
> } audio_replay_gain_t;
> 
>+
>+/**
>+ * audio channel type
>+ */
>+typedef enum audio_channels_type_t
>+{
>+    AUDIO_CHANNELS_TYPE_PHYSICAL,
>+    AUDIO_CHANNELS_TYPE_AMBISONICS,
>+} audio_channels_type_t;
>+
> /**
>  * audio format description
>  */
>@@ -81,6 +91,9 @@ struct audio_format_t
>      * buffer is derived. */
>     uint32_t     i_original_channels;
> 
>+    /* Channel type */
>+    audio_channels_type_t channels_type;
>+
>     /* Optional - for A/52, SPDIF and DTS types : */
>     /* Bytes used by one compressed frame, depends on bitrate. */
>     unsigned int i_bytes_per_frame;
>@@ -138,6 +151,7 @@ struct audio_format_t
> #define AOUT_CHAN_DOLBYSTEREO       0x10000
> #define AOUT_CHAN_DUALMONO          0x20000
> #define AOUT_CHAN_REVERSESTEREO     0x40000
>+#define AOUT_CHAN_BINAURAL          0x80000
> 
> #define AOUT_CHAN_PHYSMASK          0xFFFF
> #define AOUT_CHAN_MAX               9
>-- 
>2.11.0
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

Original channels is a weird thing that is unspecified and, AFAIK, understood by nobody. Better keep away from it.
-- 
Rémi Denis-Courmont
Typed on an inconvenient virtual keyboard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170707/518fd6e7/attachment.html>


More information about the vlc-devel mailing list