diff options
author | deva <deva> | 2006-04-14 14:37:56 +0000 |
---|---|---|
committer | deva <deva> | 2006-04-14 14:37:56 +0000 |
commit | afdd0a07be6a669cdd8343fc033f170395b470c0 (patch) | |
tree | f5422200c992ae43e9aef42136aab24578fbbfd0 /client/player.cc | |
parent | e5dc1f42337228bf367ae8ea28469a8eef4861bd (diff) |
*** empty log message ***
Diffstat (limited to 'client/player.cc')
-rw-r--r-- | client/player.cc | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/client/player.cc b/client/player.cc index 5ee0ccd..ba2250f 100644 --- a/client/player.cc +++ b/client/player.cc @@ -56,33 +56,10 @@ void Player::show_frame() frame = decoder->getFrame(); if(frame) { dvdecoder.decode(frame); - free(frame); + // free(frame); } render.width = widget->width(); render.height = widget->height(); render.display(WIDTH, HEIGHT); } - -//Hmm ... is this how it should work? -void Player::getScreenShot(QImage *image) -{ - double R, G, B; - double Y, U, V; - - char *yuv = render.getDisplayData(); - - for(int x = 0; x < WIDTH; x++) { - for(int y = 0; y < HEIGHT; y++) { - Y = yuv[(x + y * WIDTH)]; - U = yuv[(x + y * WIDTH)]; - V = yuv[(x + y * WIDTH)]; - - R = Y + 1.4075 * (V - 128); - G = Y - (0.3455 * (U - 128)) - (0.7169 * (V - 128)); - B = Y + 1.7790 * (U - 128); - // QRgb qRgb((unsigned int)R,(unsigned int)G,(unsigned int)B); - image->setPixel(x, y, qRgb((unsigned int)R,(unsigned int)G,(unsigned int)B)); - } - } - } |