[vlc-devel] [PATCH] add FM Screen Capture Codec
Paul B Mahol
onemda at gmail.com
Fri Mar 10 11:21:15 CET 2017
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
NEWS | 2 +-
include/vlc_fourcc.h | 1 +
modules/codec/avcodec/fourcc.c | 4 ++++
src/misc/fourcc_list.h | 4 ++++
4 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index 744a9ca..e972abc 100644
--- a/NEWS
+++ b/NEWS
@@ -75,7 +75,7 @@ Decoder:
* New BPG decoder based on libbpg
* Fixed uncompressed DVD-Audio (AOB) LPCM decoding
* Rewrite WPL playlists and add ZPL playlists support (Zune)
- * Support TDSC, Canopus HQX, Cineform, SpeedHQ, Pixlet and QDMC codecs
+ * Support TDSC, Canopus HQX, Cineform, SpeedHQ, Pixlet, QDMC and FMVC codecs
* TTML subtitles support, including EBU-TT-D variant
* Support 9-bit and 10-bit GBR planar formats
* New hardware accelerated decoder for OS X and and iOS based on Video Toolbox
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 810c579..9240f5f 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -84,6 +84,7 @@
#define VLC_CODEC_CSCD VLC_FOURCC('C','S','C','D')
#define VLC_CODEC_ZMBV VLC_FOURCC('Z','M','B','V')
#define VLC_CODEC_VMNC VLC_FOURCC('V','M','n','c')
+#define VLC_CODEC_FMVC VLC_FOURCC('F','M','V','C')
#define VLC_CODEC_FRAPS VLC_FOURCC('F','P','S','1')
#define VLC_CODEC_TRUEMOTION1 VLC_FOURCC('D','U','C','K')
#define VLC_CODEC_TRUEMOTION2 VLC_FOURCC('T','M','2','0')
diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index f4b4c81..81e0357 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -287,6 +287,10 @@ static const struct
{ VLC_CODEC_SPEEDHQ, AV_CODEC_ID_SPEEDHQ, VIDEO_ES },
#endif
+#if LIBAVCODEC_VERSION_CHECK( 57, 999, 999, 79, 100 )
+ { VLC_CODEC_FMVC, AV_CODEC_ID_FMVC, VIDEO_ES },
+#endif
+
/*
* Audio Codecs
*/
diff --git a/src/misc/fourcc_list.h b/src/misc/fourcc_list.h
index 2890907..9d5a477 100644
--- a/src/misc/fourcc_list.h
+++ b/src/misc/fourcc_list.h
@@ -587,6 +587,10 @@ static const staticentry_t p_list_video[] = {
B(VLC_CODEC_VMNC, "VMware Video"),
A("VMnc"),
+
+ B(VLC_CODEC_FMVC, "FM Screen Capture Codec"),
+ A("FMVC"),
+
B(VLC_CODEC_FRAPS, "FRAPS: Realtime Video Capture"),
A("FPS1"),
A("fps1"),
--
2.9.3
More information about the vlc-devel
mailing list