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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 MediaFoundation Camera

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
cpstevenc Posted - Oct 13 2017 : 00:45:11
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?

1   L A T E S T    R E P L I E S    (Newest First)
cpstevenc Posted - Oct 13 2017 : 01:32:32
Here is YawCam using the 960x540 15fps MJPG

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