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
 "SetCurrentVideoFormat" Ignored
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

fabiomarcos

2 Posts

Posted - Oct 18 2013 :  20:21:14  Show Profile  Reply
Hi Friends,

I'm trying to set the Width and Height to capture images, but my code:

"iev_preview.IO.DShowParams.SetCurrentVideoFormat(720, 480, '')" 

is being ignored and only 320x240 is being captured.

I'm also tried:

 ImageEnView1.IO.DShowParams.SetVideoInput(ComboBox1.ItemIndex, 0, 720, 240,'YUY2');

But this is ignored as well.

I'm also downloaded the last demo from this site, and I realized that even in your exemple, the size is ignored ! (image attached, see red arrow). But when I use "Format Dialog" button, the size desired is achieved. I need to set it via directShow because in the other way, I need to re-assign the format every time the computer starts....

What to do ?

Windows XP
ImageEN 4.1
PixelView GT8000 capture card

Regars

Fábio Marcos

COMLETE CODE:


iev_preview.IO.DShowParams.SetVideoInput(0);
iev_preview.IO.DShowParams.EnableSampleGrabber := True;
// trying set video size... but this is being ignored
w := 720; 
h := 480; 
iev_preview.IO.DShowParams.SetCurrentVideoFormat(w, h, '');
iev_preview.IO.DShowParams.SetTVStandard(ievsNTSC_M);
iev_preview.IO.DShowParams.VideoInputSource := 0;
iev_preview.IO.DShowParams.Connect;
iev_preview.IO.DShowParams.Run;



fab

1310 Posts

Posted - Nov 24 2013 :  09:32:14  Show Profile  Reply
Unfortunately I haven't this device, so I cannot test it.
Some TV tuners are WDM (supported directly by ImageEn) wrappers over BDA (specific for TV tuners, not supported by ImageEn) drivers: these wrappers (WDM) may not support all resolutions and features of the native driver (BDA). This could be the reason of this problem.
Calling DShowParams.SetCurrentVideoFormat(w, h, '') should work on all devices with native WDM drivers.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: