ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 MediaFoundation Camera
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

cpstevenc

USA
125 Posts

Posted - Oct 13 2017 :  00:45:11  Show Profile  Reply
Finally getting around to attempting to reuse the
MediaFoundation camera support over the directshow camera.

Haven't tried it longer term yet to see if crashing went away.

I did switch it over to WinSoft.SK camera weeks back and it uses
directshow, and the crashing went away.

But while it doesn't crash, it has bugs of its own.

So now back to ImageEN to try the MediaFoundation support.

I get more resolutions formats. Which is good.

Some resolutions formats don't work. Which is bad.

Tracing the code while the camera is running leads me here.


function TIEMFReceivedSample.DecodeSample(destBitmap: TIEBitmap): boolean;

..

  if assigned(Sample) then <----- Sample is never assigned with the trouble format selection
   Sample.ConvertToContiguousBuffer(mediaBuffer); 

  if assigned(mediaBuffer) then
..


In this case, a built in web camera on my Dell Precision M4800.

Selecting the "960x540 15fps MJPG" does nothing. mediaBuffer never gets assigned.


2nd issue it seems, is black lines at top or bottom of the image. Certain format selections produce these.
Will have a black line that maybe goes across the first row, but not all the way across.

Included image here you can see a black line on the first row.
Sometimes it comes from the left... or the right... or at the bottom.
Sometimes a bit thicker then 1 pixel.
Sometimes not at all.
But its always repeatable on certain camera/resolution selections.

This hopefully looks like a step in the right direction but it would be nice to get a method maybe
to tell if a format just isn't supported for whatever reason so I can filter them out?

cpstevenc

USA
125 Posts

Posted - Oct 13 2017 :  01:32:32  Show Profile  Reply
Here is YawCam using the 960x540 15fps MJPG

Plus using YawCam , I don't get the issue of the black line.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: