home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
[Neues Plugin] Atmolight plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="angie05" data-source="post: 747321" data-attributes="member: 103460"><p><strong>AW: Re: [Neues Plugin] Atmolight plugin</strong></p><p></p><p></p><p></p><p>Ich hab hier nur eine ältere Version gefunden. Am Patchcode sollte sich aber nichts geändert haben. Musst halt nur die Zeilennummern anpassen oder von Hand patchen.</p><p></p><p>[CODE]Index: Core/Player/FrameGrabber.cs</p><p>===================================================================</p><p>--- Core/Player/FrameGrabber.cs (revision 24717)</p><p>+++ Core/Player/FrameGrabber.cs (working copy)</p><p>@@ -45,6 +45,9 @@</p><p> </p><p> private FrameGrabber() {}</p><p> </p><p>+ public delegate void NewFrameHandler(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface);</p><p>+ public event NewFrameHandler OnNewFrame;</p><p>+</p><p> public static FrameGrabber GetInstance()</p><p> {</p><p> if (instance == null)</p><p>@@ -120,6 +123,16 @@</p><p> /// <param name="pSurface"></param></p><p> public void OnFrame(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface)</p><p> {</p><p>+ if (OnNewFrame != null)</p><p>+ {</p><p>+ try</p><p>+ {</p><p>+ OnNewFrame(width, height, arWidth, arHeight, pSurface);</p><p>+ }</p><p>+ catch(Exception)</p><p>+ {</p><p>+ }</p><p>+ }</p><p> // Is GetCurrentImage() requesting a frame grab?</p><p> if (!grabSample)</p><p> {</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="angie05, post: 747321, member: 103460"] [b]AW: Re: [Neues Plugin] Atmolight plugin[/b] Ich hab hier nur eine ältere Version gefunden. Am Patchcode sollte sich aber nichts geändert haben. Musst halt nur die Zeilennummern anpassen oder von Hand patchen. [CODE]Index: Core/Player/FrameGrabber.cs =================================================================== --- Core/Player/FrameGrabber.cs (revision 24717) +++ Core/Player/FrameGrabber.cs (working copy) @@ -45,6 +45,9 @@ private FrameGrabber() {} + public delegate void NewFrameHandler(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface); + public event NewFrameHandler OnNewFrame; + public static FrameGrabber GetInstance() { if (instance == null) @@ -120,6 +123,16 @@ /// <param name="pSurface"></param> public void OnFrame(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface) { + if (OnNewFrame != null) + { + try + { + OnNewFrame(width, height, arWidth, arHeight, pSurface); + } + catch(Exception) + { + } + } // Is GetCurrentImage() requesting a frame grab? if (!grabSample) { [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
[Neues Plugin] Atmolight plugin
Contact us
RSS
Top
Bottom