diff options
author | deva <deva> | 2006-06-15 17:35:33 +0000 |
---|---|---|
committer | deva <deva> | 2006-06-15 17:35:33 +0000 |
commit | 897867cc9d3bc869317666993a9cc6ef38c163e2 (patch) | |
tree | 49127ab698c52d0a7a2c7749081f15784cddf4bc /client/player.cc | |
parent | d8404ce282917ef81418387f20fc5ee3607be391 (diff) |
Prepared for the client to use uncompressed frames (YUV422 instead of DV).
Still a lot of work to do though!
Diffstat (limited to 'client/player.cc')
-rw-r--r-- | client/player.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/client/player.cc b/client/player.cc index 44e9cc9..dc3002d 100644 --- a/client/player.cc +++ b/client/player.cc @@ -34,25 +34,21 @@ Player::Player(QWidget *w, Decoder *d) : { widget = w; decoder = d; - dvdecoder = new LibDVWrapper(DV::ColorBest, DV::PAL, DV::YUV_422); connect(this, SIGNAL(timeout()), this, SLOT(show_frame())); - - dvdecoder->setOutputBuffer(render.getDisplayData()); + decoder->setPFrameData(render.getDisplayData()); } Player::~Player() { - delete dvdecoder; + // delete dvdecoder; } void Player::show_frame() { - char *frame; + // char *frame; - frame = decoder->pframeAcquire(); // Acquire frame data - dvdecoder->decode(frame); // Decode the DV frame to YUV - decoder->pframeRelease(); // Release frame data + decoder->pframeAcquire(); // Acquire frame data // Scale the video in aspect: if((double)widget->width() / WIDTH < (double)widget->height() / HEIGHT) { @@ -65,4 +61,6 @@ void Player::show_frame() // Display the YUV frame render.display(WIDTH, HEIGHT); + + decoder->pframeRelease(); // Release frame data } |