> I'm looking for a way to use FLTK for an DirectShow video > display. I've found a library which must be called from > within an separate thread. This library waits for a new video > frame (inside the thread) and returns after a frame is > fetched. Now I have a RGB frame, but
Hmmm, when I did this I looked at a lot of libs, but they turned out to be harder to use with fltk than just using DirectShow itself... Which lib have you picked? Anyway, what I ended up with was just deriving from Fl_Window and using fl_xid(this); to get its HWND to pass to my DirectShow code. Worked nice. (Note: the code I wrote is not mine to give away or I would send it to you...) > * whats the fastest way to display the frame with fltk 1.1.* > running windows? Do I have to subclass a widget? Which one? I subclassed from Fl_Window and had DirectShow write directly into this window. > * should I use fltk's thread? Sure - it is just a wrapper for win32 threads. > * can I use fltk to draw (lines/text) into the frame? Probably not... The DirectShow image is not really drawn into the video buffer the same way that the other window items are, so you don't have access to its RGB data, and you can't really draw on top of it... One interesting side effect of this is that I had a little screen-grab application I used, but if I grab a screen dump when the video window is active, the area of the video window just appears as a black rectangle... To grab the video window you need to do that via the DirectShow graph itself, which is a pain (and quite slow). > For now I've always written fixed sized applications with > fltk. How do I resize a main window (note, there are some > buttons below `video frame widget') where the `video frame > widget' depends on the selected video size. I need to resize > it from within the application. The user should not be able > to resize it. The position() and resize() methods allow the program to move / resize the program windows, although you might have to do some work to keep all the widgets in sync if the embedded video window changes its size "spontaneously"! SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
