From 1be33426e47b444a2db6091db5e4aea44aaa545e Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sun, 18 Jan 2009 23:26:41 +0000 Subject: [PATCH] Reduced the hack level in the test card --- src/gui/controller/playback-controller.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/controller/playback-controller.cpp b/src/gui/controller/playback-controller.cpp index 07a1fbd6d..10e370cd3 100644 --- a/src/gui/controller/playback-controller.cpp +++ b/src/gui/controller/playback-controller.cpp @@ -138,9 +138,9 @@ void rgb_buffer_to_yuy2(unsigned char *in, unsigned char *out) rgb_to_yuv(r1, g1, b1, y1, u1, v1); out[i] = y0; - out[i + 1] = (byte)(((int)u0 + (int)u1) / 2); + out[i + 1] = u0; out[i + 2] = y1; - out[i + 3] = (byte)(((int)v0 + (int)v1) / 2); + out[i + 3] = v0; } } @@ -168,7 +168,6 @@ PlaybackController::pull_frame() else { unsigned char row[320 * 3]; - for(int x = 0; x < 320; x++) {