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

Rémi Denis-Courmont remi at remlab.net
Mon Feb 27 20:23:39 CET 2017


Le maanantaina 27. helmikuuta 2017, 14.04.47 EET Adrien Maglo a écrit :
> ---
>  include/vlc_es.h | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/include/vlc_es.h b/include/vlc_es.h
> index c8dd4c4..47e7b3f 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;

Fine with me, but that´s just the surface of the tip of the iceberg.

IMO, this should be held until after 3.0 is branched.

-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list