Results 1 to 10 of 10

Thread: Load a sequence of frames

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Posts
    9
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Load a sequence of frames

    Hello to all, I have one problem.

    My situation is the next:
    - I can extract all frames of one video. (I can't use QMovie because I have another format)
    - I would like to view these frames in a QLabel.

    I did these things but when I probe, I only view the last frame of my video, I think that this is a problem of refresh ¿?
    --> data is the bytes in unsigned char format. All the process is ok because I view the last frame perfect. Always I view the last frame perfect, but before this, I didn't see nothing...

    I do the next instructions for each frame:

    Qt Code:
    1. qimg = QImage(data, img_w, img_h, QImage::Format_RGB32);
    2. Label->setPixmap(QPixmap::fromImage(qimg));
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 1st April 2008 at 16:49. Reason: missing [code] tags

Similar Threads

  1. Program not compiling on Fresh install of Leopard
    By dvmorris in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 10:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.