[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image decimation




Hello Mr. Kreidler!

If you want to connect a NON-interlaced camera you only have to patch some
lines of code. For interlaced cameras it does not make sense, because the
bma transfer reorders the odd and even lines - so if you have no transfer,
you get no valid image (and the quick patch I have tested today also don't
work).

On Wed, 19 Jan 2000, G. Kreider (minion of evil) wrote:

> 
> 
> Hoi,
> 
> A quick question.  Looking at test_itifg.c, you check that
> umb mode is enabled before allowing decimation (if not, you
> print a warning that "Option -z has no effect if not in umb
> mode."  If I look at the man page, no mention is made of this
> (there is no asterisk after GIOC_CR_SET_HVDEC in the ioctl
> list).
> 
> We've just gotten a PCVision a couple months ago, and would
> like to use decimation while simply reading from the device.
> Is this possible?
>

Now to the patch:

1. comment out the "Option -z ..." 'if' statement (test_itifg.c line 854)
2. move the GIOC_CR_SET_HVDEC ioctl (test_itifg.c line 1095) BEFORE the
   if (... != UMB_MODE) line
3. comment out the 'case GIOC_CR_SET_HVDEC' (itifgIoctl.c line 202)
   
> Thanks in advance,
> 
> Greg Kreider
> PMVS
> 

					matthias