[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IC-COMP driver and CCIR cameras
Hello,
> "Pedro J.Garcia -" wrote:
>
> Dear folks,
>
> I have an IC-COMP (well, PC-COMP actually) board intended to grab
> images from a B&W CCIR camera. I have gone through the driver mailing
> list and found another very related discussion: that of Fabien
> Spindler and Matthias regarding how to make the IC-COMP module work
> for a CCIR camera. The issue was that the call "GIOC_GE_SET_CAMCNF"
> can't be performed since the "read_config()" function does not provide
> support for the IC-COMP patch. As a result, the camera configuration
> is set with fixed parameters (those of a NTSC camera according to
> Fabien's statements) in the patched "icpciAM.c" and can't be
> customized by means of a ".cam" file.
>
> Matthias suggested that Fabien should modify the "cmp_def_cam" struct
> settings in "icpciAM.c" by hand as the only way to overcome this
> problem. And I am exactly at that point. The issue is that such
> settings are (it's my guess) board-register-level ones so they are
> unintelligible for a common developer unless you know how the board
> works at the register level (information that the manufacturer does
> not give out for obvious reasons).
It's true !
First of all, you have to use the itifg-0.5.1 driver. It includes
the patch for the IC-comp board. In more recent releases, this patch
is not up to date.
Secondly, as Mathias says, to acquire B&W CCIR (768x576) images you
have to modify the cmp_def_cam structure initialisation in the
icpciAM.c file. Here is the content of my cmp_def_cam :
cmp_def_cam = { /* decoder registers */
CMP_BT829A_STATUS_INIT,
(CMP_BT829A_IFORM_INIT & ~CMP_BT829A_FORMAT_MASK
& ~CMP_BT829A_XTSEL_MASK) | PAL_N | PAL_SECAM_FREQ,
CMP_BT829A_TDEC_INIT,
0x1D + 2, // vdelay
// Nombre de lignes
0x240 - 4, // vactive = 576 lignes
0xA0, //CMP_BT829A_HDLY_LO_INIT,
// Nombre de colonnes
0x300, // hactive
((CMP_BT829A_HSCAL_HI_INIT << 8) | CMP_BT829A_HSCAL_LO_INIT) , //
hscale
CMP_BT829A_BRIGHT_INIT,
CMP_BT829A_CONTROL_INIT,
(((CMP_BT829A_CONTROL_INIT & CMP_BT829A_CON_MSB_MASK) << 6)
| CMP_BT829A_CON_LO_INIT),
(((CMP_BT829A_CONTROL_INIT & CMP_BT829A_SAT_U_MSB_MASK) << 7)
| CMP_BT829A_SAT_U_LO_INIT),
(((CMP_BT829A_CONTROL_INIT & CMP_BT829A_SAT_V_MSB_MASK) << 8)
| CMP_BT829A_SAT_V_LO_INIT),
CMP_BT829A_HUE_INIT,
CMP_BT829A_SCLOOP_INIT,
CMP_BT829A_OFORM_INIT,
CMP_BT829A_VSCAL_HI_INIT,
(((CMP_BT829A_VSCAL_HI_INIT & CMP_BT829A_VSCAL_MASK) << 8)
| CMP_BT829A_VSCAL_LO_INIT),
CMP_BT829A_ADLY_INIT,
CMP_BT829A_BDLY_INIT,
CMP_BT829A_ADC_INIT,
CMP_BT829A_VTC_INIT,
};
Fabien
--
-----------------------------------------------------------------
Fabien Spindler, Tel : 33 2.99.84.75.10
IRISA/INRIA Rennes, Fax : 33 2.99.84.71.71
Campus de Beaulieu, E-mail: fspindle@irisa.fr
35042 Rennes-cedex, France http://www.irisa.fr/vista
-----------------------------------------------------------------