Re: [GnomeMeeting-list] how to support another capture card? (WAS: experience with the V4L1 compatibility of V4L2)
- From: Damien Sandras <dsandras seconix com>
- To: gnomemeeting-list gnome org
- Subject: Re: [GnomeMeeting-list] how to support another capture card? (WAS: experience with the V4L1 compatibility of V4L2)
- Date: Thu, 18 Apr 2002 17:58:48 +0200
On Thu, Apr 18, 2002 at 01:05:50PM -0700, Guilhem Tardy wrote:
> > > I added grabber->SetFrameSize(width, height) in videograbber.cpp, and got
> > > to the bottom of this:
> >
> > You shouldn't have added that method, but used SetFrameSizeConverter
> > and add a HINT in video4linux.cxx for your card to force the size.
> > That way, VerifyHardwareFrameSize will ignore the problem and it will work.
>
> There's no HINT that I can see which matches the problem with Videum
> card/driver: the card is set at 352x240 while PWLib still keeps 352x288
> internally (IMHO it is a bug of VideoInputDevice::VerifyHardwareFrameSize,
> which should update the internal variables to what is returned by the driver).
YOU can add this hint to force the size that you want and VerifyHardwareFrameSieze will not complain!
>
> > You have to add a HINT in PWLib. That works this way because all Video4Linux
> > drivers do not respect the API. So you set a HINT, to force the required size
> > for your specific driver, and then it will work.
>
> I can't force a driver to take 352x288 if it happily falls back on 352x240, can
> I? Now, I elected to modify GnomeMeeting (in videograbber.cpp) like this:
>
Modifying videograbber.cpp is not the way to do it. You have to modify pwlib.
That is the way it works.
> Open()
> SetVideoDeviceParameters()
> -> SetFrameSize(320,240)
> SetColourFormatConverter()
> SetFrameSizeConverter(352, 288)
>
> That was a bad idea, indeed. So I will revert to the original videograbber.cpp,
> and try to add a new size converter (352x240 -> 352x288).
>
> Guilhem.
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> _______________________________________________
> Gnomemeeting-list mailing list
> Gnomemeeting-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnomemeeting-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]