[vlc-devel] [PATCH v2 1/3] mmal: Register opaque fourcc in core as fake_fmt

Julian Scheel julian at jusst.de
Tue Apr 8 10:28:16 CEST 2014


Add a new fourcc, which will be used by the mmal decoder and vout plugins for
passing around opaque picture pointers to realize a zerocopy pipeline on mmal
enabled platforms.

Signed-off-by: Julian Scheel <julian at jusst.de>
Signed-off-by: Dennis Hamester <dennis.hamester at gmail.com>
---
Changes in v2:
 - Do not delete empty line after ammended fourcc block

 include/vlc_fourcc.h | 3 +++
 src/misc/fourcc.c    | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 46903ea..62a268d 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -276,6 +276,9 @@
 /* MediaCodec/IOMX opaque buffer type */
 #define VLC_CODEC_ANDROID_OPAQUE  VLC_FOURCC('A','N','O','P')
 
+/* Broadcom MMAL opaque buffer type */
+#define VLC_CODEC_MMAL_OPAQUE     VLC_FOURCC('M','M','A','L')
+
 /* Image codec (video) */
 #define VLC_CODEC_PNG             VLC_FOURCC('p','n','g',' ')
 #define VLC_CODEC_PPM             VLC_FOURCC('p','p','m',' ')
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 5c6bc28..ce0cb5c 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -2068,7 +2068,8 @@ static const struct
     { { VLC_CODEC_VDPAU_VIDEO_420, VLC_CODEC_VDPAU_VIDEO_422,
         VLC_CODEC_VDPAU_VIDEO_444,
         VLC_CODEC_VDPAU_OUTPUT,
-        VLC_CODEC_ANDROID_OPAQUE, 0 },         FAKE_FMT() },
+        VLC_CODEC_ANDROID_OPAQUE,
+        VLC_CODEC_MMAL_OPAQUE, 0 },            FAKE_FMT() },
 
     { { 0 },                                   FAKE_FMT() }
 };
-- 
1.9.1




More information about the vlc-devel mailing list