<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Webcam control with WPF or how to create high framerate player with DirectShow by using InteropBitmap in WPF application</title>
	<atom:link href="http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/</link>
	<description>Take care of the sense, and the sounds will take care of themselves.</description>
	<lastBuildDate>Wed, 08 Feb 2012 19:14:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dominic Mertz</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4881</link>
		<dc:creator>Dominic Mertz</dc:creator>
		<pubDate>Wed, 18 Jan 2012 21:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4881</guid>
		<description>some really    excellent  info  ,  Gladiolus  I found  this.</description>
		<content:encoded><![CDATA[<p>some really    excellent  info  ,  Gladiolus  I found  this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Free graphics, 3d, code snippets, PHP, HTML, JavaScript and more!</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4738</link>
		<dc:creator>Free graphics, 3d, code snippets, PHP, HTML, JavaScript and more!</dc:creator>
		<pubDate>Sun, 20 Nov 2011 15:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4738</guid>
		<description>You actually make it seem so easy together with your presentation however I to find this topic to be really something that I feel I&#039;d never understand. It seems too complex and extremely huge for me. I am looking ahead in your next submit, I?ll try to get the dangle of it!</description>
		<content:encoded><![CDATA[<p>You actually make it seem so easy together with your presentation however I to find this topic to be really something that I feel I&#8217;d never understand. It seems too complex and extremely huge for me. I am looking ahead in your next submit, I?ll try to get the dangle of it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4381</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Mon, 30 May 2011 13:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4381</guid>
		<description>Anybody, know answer to next question:
How I can fix in C# code problem: the video being upside down?</description>
		<content:encoded><![CDATA[<p>Anybody, know answer to next question:<br />
How I can fix in C# code problem: the video being upside down?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tosin</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4376</link>
		<dc:creator>Tosin</dc:creator>
		<pubDate>Tue, 24 May 2011 06:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4376</guid>
		<description>in case this can help someone.
On the problem of the camera not being disposed properly, the problem is that the worker thread  
 is not properly receiving the stop signal I tried Holy&#039;s post and it did not work for me. What worked for me if by replacing the thread abort logic in Runworker()   // Wait for the stop signal
                    while (!_stopSignal.WaitOne(10, true))
                    {
                        Thread.Sleep(10);
                    }

with                     while (!_stopSignal.WaitOne(10, true))
                    {
                        //Thread.Sleep(10);
                    }
This way it waits for the stop signal at least 10mil secs before aborting. I hope this helps</description>
		<content:encoded><![CDATA[<p>in case this can help someone.<br />
On the problem of the camera not being disposed properly, the problem is that the worker thread<br />
 is not properly receiving the stop signal I tried Holy&#8217;s post and it did not work for me. What worked for me if by replacing the thread abort logic in Runworker()   // Wait for the stop signal<br />
                    while (!_stopSignal.WaitOne(10, true))<br />
                    {<br />
                        Thread.Sleep(10);<br />
                    }</p>
<p>with                     while (!_stopSignal.WaitOne(10, true))<br />
                    {<br />
                        //Thread.Sleep(10);<br />
                    }<br />
This way it waits for the stop signal at least 10mil secs before aborting. I hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4358</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Fri, 06 May 2011 05:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4358</guid>
		<description>How I can fix in C# code problem: the video being upside down?</description>
		<content:encoded><![CDATA[<p>How I can fix in C# code problem: the video being upside down?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maven</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-4352</link>
		<dc:creator>maven</dc:creator>
		<pubDate>Thu, 05 May 2011 00:25:31 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-4352</guid>
		<description>Hi, 
Can this hook up to Kinect Camera?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Can this hook up to Kinect Camera?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holy</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-3920</link>
		<dc:creator>Holy</dc:creator>
		<pubDate>Fri, 27 Aug 2010 09:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-3920</guid>
		<description>For the problem of cindex (the camera lamp is not turned off when window is closed), I solved by replacing the code (thanks Peter) code of stop routine in capdevice.cs

I know for cindex it&#039;s too late but can be helpful to someone.

HTH,
Holy

        public void Stop()
        {
            if (IsRunning)
            {
                stopSignal.Set();
                try
                {
                    worker.Abort();

                }
                catch (ThreadAbortException) { }
                finally
                {
                    if (worker != null)
                    {
                        //worker.Join();
                        Release();
                    }
                }



            }
        }</description>
		<content:encoded><![CDATA[<p>For the problem of cindex (the camera lamp is not turned off when window is closed), I solved by replacing the code (thanks Peter) code of stop routine in capdevice.cs</p>
<p>I know for cindex it&#8217;s too late but can be helpful to someone.</p>
<p>HTH,<br />
Holy</p>
<p>        public void Stop()<br />
        {<br />
            if (IsRunning)<br />
            {<br />
                stopSignal.Set();<br />
                try<br />
                {<br />
                    worker.Abort();</p>
<p>                }<br />
                catch (ThreadAbortException) { }<br />
                finally<br />
                {<br />
                    if (worker != null)<br />
                    {<br />
                        //worker.Join();<br />
                        Release();<br />
                    }<br />
                }</p>
<p>            }<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edwin</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-3694</link>
		<dc:creator>edwin</dc:creator>
		<pubDate>Tue, 23 Mar 2010 22:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-3694</guid>
		<description>Hi, I&#039;ve been testing and I still see 12%CPU usage. Which is a lot higher than 2%. I would like to know why this is so much higher than with your example? Any thoughts?
Ps.
I&#039;m looking to implement IP cameras on a WPF control. Why: WPF gives a lot of new features which would take forever to program in winform.
Ps2.
Process explorer indicates that ksproxy.ax is using 10% CPU.</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve been testing and I still see 12%CPU usage. Which is a lot higher than 2%. I would like to know why this is so much higher than with your example? Any thoughts?<br />
Ps.<br />
I&#8217;m looking to implement IP cameras on a WPF control. Why: WPF gives a lot of new features which would take forever to program in winform.<br />
Ps2.<br />
Process explorer indicates that ksproxy.ax is using 10% CPU.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Federico</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-3646</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Fri, 05 Mar 2010 14:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-3646</guid>
		<description>Hello.
Can anybody send me more information about:
- Config Image Resolution
- Use Zoom
Thanks.</description>
		<content:encoded><![CDATA[<p>Hello.<br />
Can anybody send me more information about:<br />
- Config Image Resolution<br />
- Use Zoom<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/comment-page-1/#comment-3625</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 24 Feb 2010 08:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/#comment-3625</guid>
		<description>Thanks, you know so much more about it then I do.

The while (!stopSignal.WaitOne(0, true)) { Thread.Sleep(10); } loop in CapDevice.captureImage could be replaced by a single call to stopSignal.WaitOne();

Then you won&#039;t get a ThreadAbortException either when CapDevice.Stop calls worker.Abort().

I don&#039;t think calling worker.Abort (unconditionally) is necessary.
This call also prevents execution of control.StopWhenReady();


My 2nd, much less important, remark is that I would keep the variables graph, grabber, sourceObject, grabberObject, control, map and section of CapDevice should all local to the captureImage function.</description>
		<content:encoded><![CDATA[<p>Thanks, you know so much more about it then I do.</p>
<p>The while (!stopSignal.WaitOne(0, true)) { Thread.Sleep(10); } loop in CapDevice.captureImage could be replaced by a single call to stopSignal.WaitOne();</p>
<p>Then you won&#8217;t get a ThreadAbortException either when CapDevice.Stop calls worker.Abort().</p>
<p>I don&#8217;t think calling worker.Abort (unconditionally) is necessary.<br />
This call also prevents execution of control.StopWhenReady();</p>
<p>My 2nd, much less important, remark is that I would keep the variables graph, grabber, sourceObject, grabberObject, control, map and section of CapDevice should all local to the captureImage function.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

