Results 1 to 2 of 2

Thread: How Compose MNG image target Qmovie

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How Compose MNG image target Qmovie

    Is here a way to compose MNG animate image on the qt3mng plugin? $QTDIR/src/3rdparty

    Like a method append frame time ecc..

    or QImageIOHandler , QBuffer.

    I have a Webcam lib ( opencvlibrary )
    https://qt-webdav.svn.sourceforge.ne...t4_demo_mingw/
    and i like to record this frame .. i display the cam on QGLWidget ...
    +
    Qt Code:
    1. QTimer::singleShot(80, this, SLOT(SelfUpdate()));
    To copy to clipboard, switch view to plain text mode 

    or can you tell me a simpler way?

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How Compose MNG image target Qmovie

    I find only a small perl script on

    http://homepage2.nifty.com/sophia0/soft/png/cyclo.txt

    Qt Code:
    1. &InitCrcTable;
    2.  
    3. $r = "NG\r\n\x1a\n";
    4. $sig_p = "\x89P".$r;
    5. $sig_m = "\x8aM".$r;
    6.  
    7. # Check File
    8. @png = ();
    9. for ($i=0;$i<=$#number;$i++) {
    10. $file = $imgdir.$number[$i].'.png';
    11. $size = -s $file;
    12. open(IN, "< $file") || &Error(1);
    13. binmode(IN);
    14. read(IN, $sig, 8);
    15. if ($sig ne $sig_p) { close(IN); &Error(2); }
    16. read(IN, $png[$i], $size-8);
    17. close(IN);
    18. }
    19.  
    20. $it = ($#number+1) * $b_repeat;
    21. if ($r_repeat) {
    22. srand;
    23. $it += int(rand(($#number+1) * $r_repeat));
    24. }
    25. $ti = $it * ($#number+1) + 1;
    26.  
    27. $|=1;
    28. print "Content-type: $mime\n\n";
    29. binmode(STDOUT);
    To copy to clipboard, switch view to plain text mode 

    Can i this compose on QBuffer and at end save to file... ?

Similar Threads

  1. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.