Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: What is the usage of "use Gtk2 -init -threads-init"?

by zentara (Archbishop)
on Nov 10, 2009 at 13:03 UTC ( [id://806214]=note: print w/replies, xml ) Need Help??


in reply to Re^2: What is the usage of "use Gtk2 -init -threads-init"?
in thread What is the usage of "use Gtk2 -init -threads-init"?

... the big picture is this..... maintaining smooth event flow in the program's mainloop, and preventing memory usage from climbing ( mem cleanup)

... Perl will tend to hang onto memory, figuring if you used it once you will use it again....so tell the system to keep it allocated as yours, even though temporarily it is idle space

...and if you try to run a resource heavy video driver from your main program directly, it will bog down and become unresponsive...thus the IPC

.. the display basics are this....iirc gstreamer will launch in it's own window, but i can't recall how many controls they give you...like stop ,start, rewind, go to frame, etc. .....so you can embed the gstreamer output into one of your own windows, where you can include buttons and enties for control ..... you will have to read the gstreamer docs and examples ( the c library ), and google for gstreamer tutorials

... see Perl/Tk front-end to mplayer for a Tk app which would do something similar....however, Wx is a different program...but it should give you some control ideas


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
  • Comment on Re^3: What is the usage of "use Gtk2 -init -threads-init"?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://806214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-18 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found