From 72505ff43165cff29d7e0b5e179105b31f3ab982 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 3 Nov 2010 21:31:31 +0000 Subject: [PATCH] Ensure dumpmovie outputs YUVA pictures. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@4703 92316355-f0b4-4df1-b90c-862c8a59935f --- examples/dumpmovie.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/dumpmovie.c b/examples/dumpmovie.c index 7821afc..ee8ef63 100644 --- a/examples/dumpmovie.c +++ b/examples/dumpmovie.c @@ -124,9 +124,10 @@ int main(int argc, char *argv[]) for (x = 0; x < ctx->width; x++, off++) { + /* Reorder components to store YUVA */ data[4 * off] = dst[0][off]; - data[4 * off + 1] = dst[1][off]; - data[4 * off + 2] = dst[2][off]; + data[4 * off + 1] = dst[2][off]; + data[4 * off + 2] = dst[1][off]; data[4 * off + 3] = 0xff; } }