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
 "SetCurrentVideoFormat" Ignored

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
fabiomarcos Posted - Oct 18 2013 : 20:21:14
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;



1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Nov 24 2013 : 09:32:14
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.