[Gambas-devel] V4L2 for Gambas ...

Gareth Bult gareth at ...560...
Wed Jan 21 03:26:18 CET 2009


>Could be because not every hardware video device _has_ these controls.

Urm, no.

Otherwise things like "Hue" and "Whiteness" would be there too (!)


----- Original Message -----
From: "Ron_1st" <ronstk at ...124...>
To: gambas-devel at lists.sourceforge.net
Sent: Wednesday, 21 January, 2009 12:23:53 AM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Gambas-devel] V4L2 for Gambas ...

On Wednesday 21 January 2009, Gareth Bult wrote:
> Sorry, my question was, why were some (arbitrary) properties put into a subclass called "features" rather than just being properties of the class. For example;
> 
> Why do we use;
> 
> webcam.Features.Name
> 
> Rather than;
> 
> webcam.Name
> 
> It just seems to add a layer of complication for no apparent reason ??
> 
> Gareth.
> 
> 
> ----- Original Message -----
> From: "Benoit Minisini" <gambas at ...1...>
> To: "mailing list for gambas developers" <gambas-devel at lists.sourceforge.net>
> Sent: Tuesday, 20 January, 2009 11:34:56 PM GMT +00:00 GMT Britain, Ireland, Portugal
> Subject: Re: [Gambas-devel] V4L2 for Gambas ...
> 
> On mercredi 21 janvier 2009, Gareth Bult wrote:
> > Ok,
> >
> > I can do this .. can you tell me whether "Features" should exist ... and if
> > it should;
> >
> > a. Why?
> > b. Should the "Max" / "Min" 's be put there .. ?
> >
> > Gareth.
> >
> >
> 

Could be because not every hardware video device _has_ these controls.
the /dev/videoX is the link to the stream.
Features are a dev_sub thing on the /dev/videoX
My videocard has some Features that not all cards have too

if webcam.Features then
	webcam.Features.Bright=1
else
	print "No Features!! (bright/contrast/saturation etc.)"
endif

I had pain in brain reading the v4l2 C-code stuff :)


Best regards,

Ron_1st

-- 
 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Gambas-devel mailing list
Gambas-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel

-- 
Managing Director, Encryptec Limited
Tel: 0845 5082719, Mob: 0785 3305393
Email: gareth at ...560... 
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.




More information about the Devel mailing list