summaryrefslogtreecommitdiff
path: root/client/decoder.cc
diff options
context:
space:
mode:
authordeva <deva>2006-07-20 17:52:52 +0000
committerdeva <deva>2006-07-20 17:52:52 +0000
commita09f1b932560f11caf34a567ee226446a496a584 (patch)
treeadc0a2fc4d8cb91f27077cf06ebfbe27108b0409 /client/decoder.cc
parent3d236d2e7a6501108a9083196500c009226142a1 (diff)
Utilized the global info object.
Diffstat (limited to 'client/decoder.cc')
-rw-r--r--client/decoder.cc20
1 files changed, 1 insertions, 19 deletions
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!
}