textoverlay: fix Cb/Cr inversion for colored text overlays
authorRob Clark <rob@ti.com>
Mon, 30 Aug 2010 19:59:22 +0000 (14:59 -0500)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 30 Aug 2010 20:53:26 +0000 (22:53 +0200)
commit54f4aa28c227825e48fd7940b3566630a10cffe9
tree82943b43a1e9129730791920d60afdbe84a4a418
parent6357bdef63b1f6fca0890c1b98132e5ba54f71df
textoverlay: fix Cb/Cr inversion for colored text overlays

In case of odd values for xpos or ypos, the division by two in CbCr
plane would result in an off-by-one error, which in the case of NV12,
NV21, or UYVY would cause inversion of blue and red colors.  (And
would be not so easily noticed for I420 as it would just cause the
chroma to be offset slightly from the luma.)

This patch also fixes a silly typo from the earlier patch which
added NV12 support that broke UYVY support.
ext/pango/gsttextoverlay.c