[vlc-commits] omxil: Interpret OMX_COLOR_FormatYUV420SemiPlanar as NV12
Martin Storsjö
git at videolan.org
Wed Sep 28 11:22:24 CEST 2011
vlc | branch: master | Martin Storsjö <martin at martin.st> | Wed Sep 28 11:44:09 2011 +0300| [6825a61ca202e4fcf3a3d4187e5479c0d2f4c390] | committer: Jean-Baptiste Kempf
omxil: Interpret OMX_COLOR_FormatYUV420SemiPlanar as NV12
Desire Z and Desire HD use OMX_COLOR_FormatYUV420SemiPlanar,
which when inspected turns out to be NV12, while Nexus One
either reports OMX_QCOM_COLOR_FormatYVU420SemiPlanar (or
falsely reports OMX_COLOR_FormatYUV420Planar) which is NV21.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6825a61ca202e4fcf3a3d4187e5479c0d2f4c390
---
modules/codec/omxil/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/omxil/utils.c b/modules/codec/omxil/utils.c
index 110ea4d..a114f09 100644
--- a/modules/codec/omxil/utils.c
+++ b/modules/codec/omxil/utils.c
@@ -349,7 +349,7 @@ 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_NV12, 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 },
More information about the vlc-commits
mailing list