[vlc-commits] omxil: Recognize some semiplanar 420 formats
Martin Storsjö
git at videolan.org
Wed Sep 21 12:36:07 CEST 2011
vlc | branch: master | Martin Storsjö <martin at martin.st> | Wed Sep 21 11:19:08 2011 +0300| [43f10da8ab7abef995c5d6292419b91abbbed9fb] | committer: Jean-Baptiste Kempf
omxil: Recognize some semiplanar 420 formats
I'm not sure if these officially are NV12 or NV21 - on Nexus One
they correspond to NV21 at least.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43f10da8ab7abef995c5d6292419b91abbbed9fb
---
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 468ba93..5122822 100644
--- a/modules/codec/omxil/utils.c
+++ b/modules/codec/omxil/utils.c
@@ -36,6 +36,8 @@
#include "omxil.h"
+#define OMX_QCOM_COLOR_FormatYVU420SemiPlanar 0x7FA30C00
+
/*****************************************************************************
* Events utility functions
*****************************************************************************/
@@ -347,6 +349,8 @@ static const struct
{
{ VLC_CODEC_I420, OMX_COLOR_FormatYUV420Planar, 3, 1, 2 },
{ VLC_CODEC_I420, OMX_COLOR_FormatYUV420PackedPlanar, 3, 1, 2 },
+ { VLC_CODEC_NV21, OMX_COLOR_FormatYUV420SemiPlanar, 3, 1, 1 },
+ { VLC_CODEC_NV21, OMX_QCOM_COLOR_FormatYVU420SemiPlanar, 3, 1, 1 },
{ 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 },
More information about the vlc-commits
mailing list