[vlc-devel] [PATCH] Add SpeedHQ FourCCs.

Steinar H. Gunderson steinar+vlc at gunderson.no
Fri Jan 13 20:01:21 CET 2017


This is not in libav yet, just in ffmpeg.
---
 include/vlc_fourcc.h           |  1 +
 modules/codec/avcodec/fourcc.c |  3 +++
 src/misc/fourcc_list.h         | 10 ++++++++++
 3 files changed, 14 insertions(+)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index a9d5ce9bf1..09c22cb62a 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -181,6 +181,7 @@
 #define VLC_CODEC_HAP             VLC_FOURCC('H','A','P','1')
 #define VLC_CODEC_DXV             VLC_FOURCC('D','X','D','3')
 #define VLC_CODEC_CINEFORM        VLC_FOURCC('C','F','H','D')
+#define VLC_CODEC_SPEEDHQ         VLC_FOURCC('S','H','Q','2')
 
 /***********
  * Chromas
diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index 1e97185e27..dd7a3669b2 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -279,6 +279,9 @@ static const struct
     /* ffmpeg only: AV_CODEC_ID_SNOW */
     /* ffmpeg only: AV_CODEC_ID_SMVJPEG */
 
+#if LIBAVCODEC_VERSION_CHECK( 57, 71, 101, 999, 999 )
+    { VLC_CODEC_SPEEDHQ, AV_CODEC_ID_SPEEDHQ, VIDEO_ES },
+#endif
 
     /*
      *  Audio Codecs
diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h
index c54f923ef8..d2fc6831f1 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -1097,6 +1097,16 @@ static const staticentry_t p_list_video[] = {
     B(VLC_CODEC_HNM4_VIDEO, "Cryo Interactive Entertainment HNM4"),
 
     B(VLC_CODEC_CINEFORM, "CineForm" ),
+
+    B(VLC_CODEC_SPEEDHQ, "NewTek SpeedHQ" ),
+        A("SHQ0"),
+        A("SHQ1"),
+        A("SHQ2"),
+        A("SHQ3"),
+        A("SHQ4"),
+        A("SHQ5"),
+        A("SHQ7"),
+        A("SHQ9"),
 };
 
 static const staticentry_t p_list_audio[] = {
-- 
2.11.0



More information about the vlc-devel mailing list