]> git.sesse.net Git - vlc/commitdiff
omxil: Interpret OMX_COLOR_FormatYUV420SemiPlanar as NV12
authorMartin Storsjö <martin@martin.st>
Wed, 28 Sep 2011 08:44:09 +0000 (11:44 +0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 28 Sep 2011 09:22:08 +0000 (11:22 +0200)
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@videolan.org>
modules/codec/omxil/utils.c

index 110ea4dc5b31b391ed1f37f8865e46fca1f7dc34..a114f09006a498d73cca3ad0cf07c3af40e9273b 100644 (file)
@@ -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 },