From a09f1b932560f11caf34a567ee226446a496a584 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 20 Jul 2006 17:52:52 +0000 Subject: Utilized the global info object. --- client/decoder.cc | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'client/decoder.cc') diff --git a/client/decoder.cc b/client/decoder.cc index 5fdbd80..afc09c9 100644 --- a/client/decoder.cc +++ b/client/decoder.cc @@ -161,24 +161,6 @@ void Decoder::pframeRelease() pmutex.unlock(); } -/* - R = Y + 1.4075 * (V - 128) - G = Y - (0.3455 * (U - 128) - (0.7169 * (V - 128)) - B = Y + 1.7790 * (U - 128) -*/ -//#define RED(y, u, v) (y + 1.4075 * (v - 128)) -//#define GREEN(y, u, v) (y - (0.3455 * (u - 128)) - (0.7169 * (v - 128))) -//#define BLUE(y, u, v) (y + 1.7790 * (u - 128)) - -/* - R = 1.164(Y - 16) + 1.596(V - 128) - G = 1.164(Y - 16) - 0.813(V - 128) - 0.391(U - 128) - B = 1.164(Y - 16) + 2.018(U - 128) -*/ -//#define RED(y, u, v) (1.164 * (y - 16) + 1.596 * (v - 128)) -//#define GREEN(y, u, v) (1.164 * (y - 16) - 0.813 * (v - 128) - 0.391 * (u - 128)) -//#define BLUE(y, u, v) (1.164 * (y - 16) + 2.018 * (u - 128)) - void Decoder::snapshot(unsigned char *rgb) { @@ -187,7 +169,7 @@ void Decoder::snapshot(unsigned char *rgb) Frame frame(pframe, 720*576*2, VF_YUV422); Frame *brg0 = transcode(&frame, VF_BRG0, (char*)rgb, 720*576*4); - if(brg0) delete brg0; // We don't need the actual frameoject + if(brg0) delete brg0; // We don't need the actual frameobject else { // Some error occurred! } -- cgit v1.2.3