[vlc-devel] [PATCH 07/21] Recognize some semiplanar 420 formats, too
Martin Storsjo
martin at martin.st
Sun Sep 4 14:54:12 CEST 2011
From: Martin Storsjö <martin at martin.st>
Interpret them as normal planar for now, since vlc-android seems
to crash if given anything else than I420.
This patch should be adjusted to use the corresponding VLC pixel
format instead.
---
modules/codec/omxil/utils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/codec/omxil/utils.c b/modules/codec/omxil/utils.c
index 423de38..20283a6 100644
--- a/modules/codec/omxil/utils.c
+++ b/modules/codec/omxil/utils.c
@@ -40,6 +40,8 @@
#include "omxil.h"
+#define OMX_QCOM_COLOR_FormatYVU420SemiPlanar 0x7FA30C00
+
/*****************************************************************************
* Events utility functions
*****************************************************************************/
@@ -344,6 +346,8 @@ static const struct
{
{ VLC_CODEC_I420, OMX_COLOR_FormatYUV420Planar, 3, 1, 2 },
{ VLC_CODEC_I420, OMX_COLOR_FormatYUV420PackedPlanar, 3, 1, 2 },
+ { VLC_CODEC_I420, OMX_COLOR_FormatYUV420SemiPlanar, 3, 1, 2 },
+ { VLC_CODEC_I420, OMX_QCOM_COLOR_FormatYVU420SemiPlanar, 3, 1, 2 },
{ VLC_CODEC_YUYV, OMX_COLOR_FormatYCbYCr, 4, 2, 0 },
{ VLC_CODEC_YVYU, OMX_COLOR_FormatYCrYCb, 4, 2, 0 },
{ VLC_CODEC_UYVY, OMX_COLOR_FormatCbYCrY, 4, 2, 0 },
--
1.7.2.5
More information about the vlc-devel
mailing list