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
 VideoFormats problems
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

r.federiconi

Italy
6 Posts

Posted - Jun 21 2013 :  00:20:57  Show Profile  Reply
ImageEn version : 4.1.2

Hi,
we have problems with some integrated cameras, substantially it fails to see the complete list of video formats allowed (there aren't higher resolutions) and consequently the quality of photos is not acceptable.
To extract the list we use the following code:

function GetVideoFormats(ImageEnIO: TImageEnIO; InputDeviceIndex: Integer): TStrings; overload;
var
I: Integer;
begin
Result := TStringList.Create;
try
with ImageEnIO.DShowParams do
begin
SetVideoInput(InputDeviceIndex);
Connect;
for I := 0 to VideoFormatsCount-1 do
if Length(VideoFormats[I].Format) > 0 then
Result.AddObject(FormatString(VideoFormats[I]), TObject(I));
Disconnect;
end;
except
Result.Free;
raise;
end;
end;

Any suggestions?

Regards

Federiconi Roberto
Namirial spa

fab

1310 Posts

Posted - Jun 26 2013 :  12:21:44  Show Profile  Reply
Hi,
please look at VideoCapture\DirectShow2 example. Is your list the same listed in ListBox1?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: