[vlc-commits] Add DSD FourCCs

Marvin Scholz git at videolan.org
Fri Jun 15 18:27:40 CEST 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun May 27 04:01:21 2018 +0200| [8b1217f8a95a76c99635f0a8b47c797f3ecb59a9] | committer: Marvin Scholz

Add DSD FourCCs

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b1217f8a95a76c99635f0a8b47c797f3ecb59a9
---

 include/vlc_fourcc.h           | 4 ++++
 modules/codec/avcodec/fourcc.c | 8 ++++++++
 src/misc/fourcc_list.h         | 8 ++++++++
 3 files changed, 20 insertions(+)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 40adfeed69..1a880c2f0f 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -529,6 +529,10 @@
 #define VLC_CODEC_ADPCM_IMA_EA_SEAD          VLC_FOURCC('S','E','A','D')
 #define VLC_CODEC_ADPCM_EA_R1                VLC_FOURCC('E','A','R','1')
 #define VLC_CODEC_ADPCM_IMA_APC              VLC_FOURCC('A','I','P','C')
+#define VLC_CODEC_DSD_LSBF                   VLC_FOURCC('D','S','D','l')
+#define VLC_CODEC_DSD_LSBF_PLANAR            VLC_FOURCC('D','S','F','l')
+#define VLC_CODEC_DSD_MSBF                   VLC_FOURCC('D','S','D',' ')
+#define VLC_CODEC_DSD_MSBF_PLANAR            VLC_FOURCC('D','S','F','m')
 
 /* Subtitle */
 #define VLC_CODEC_SPU       VLC_FOURCC('s','p','u',' ')
diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index 311ee69b19..0844ca7013 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -464,6 +464,14 @@ static const struct vlc_avcodec_fourcc audio_codecs[] =
     /* AV_CODEC_ID_PAF_AUDIO */
     { VLC_CODEC_ON2AVC, AV_CODEC_ID_ON2AVC },
 
+    /* DSD (FFmpeg only) */
+#if LIBAVCODEC_VERSION_MICRO >= 100
+    { VLC_CODEC_DSD_LSBF, AV_CODEC_ID_DSD_LSBF },
+    { VLC_CODEC_DSD_MSBF, AV_CODEC_ID_DSD_MSBF },
+    { VLC_CODEC_DSD_LSBF_PLANAR, AV_CODEC_ID_DSD_LSBF_PLANAR },
+    { VLC_CODEC_DSD_MSBF_PLANAR, AV_CODEC_ID_DSD_MSBF_PLANAR },
+#endif
+
     /* ffmpeg only: AV_CODEC_ID_FFWAVESYNTH */
     /* ffmpeg only: AV_CODEC_ID_SONIC */
     /* ffmpeg only: AV_CODEC_ID_SONIC_LS */
diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h
index eb304f5161..ab218ce8ba 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -1557,6 +1557,14 @@ static const staticentry_t p_list_audio[] = {
     B(VLC_CODEC_ADPCM_EA_R1, "ADPCM Electronic Arts R1"),
 
     B(VLC_CODEC_ADPCM_IMA_APC, "ADPCM APC"),
+
+    B(VLC_CODEC_DSD_LSBF, "DSD (Direct Stream Digital) LSB first"),
+
+    B(VLC_CODEC_DSD_MSBF, "DSD (Direct Stream Digital) MSB first"),
+
+    B(VLC_CODEC_DSD_LSBF_PLANAR, "DSD (Direct Stream Digital) LSB first, planar"),
+
+    B(VLC_CODEC_DSD_MSBF_PLANAR, "DSD (Direct Stream Digital) MSB first, planar"),
 };
 
 static const staticentry_t p_list_spu[] = {



More information about the vlc-commits mailing list