CAMERA.TXT Driver File Contents (upg300.zip)

;-----------------------------------------------------------------------------------------
;
;  Philips SAA7111 Video Decoder application (used in Nogatech's EVB1003).
;
;  Editor: Moshe Haiut, NOGATECH, SEP-15-1998.   Rev.2.0
;  Editor: Arie Gavriely NOGATECH January-18-1998 Rev 2.1 	
;	   Support for svideo/composite video; PAL Still images
;
;-----------------------------------------------------------------------------------------

;***************************************************************************************** 
;
;  The following parameter CAMERA_NAME defines a ASCII string (up to 80 chars). This is
;  to let the user identify the registry setup with a specific camera (or chip-set, or
;  composite video decoder). Default value of this parameter (when not defined) is an
;  empty string.
;
;  EXAMPLE:	CAMERA_NAME	Small camera, ver.1.0
;
;***************************************************************************************** 

CAMERA_NAME	Philips SAA7111 (Nogatech's EVB1003)

;*****************************************************************************************
;
;  NT1003-1 Video-in Registers setup for given camera in Stream operation. The default
;  value of any of these parameters (when not defined) is 0.
;  This block contains 4 groups of video-source characteristic parameters:
;  1st group: define VIN_REG1 register (Reg.27) and DVI_YUV (Reg.49) of NT1003-1.
;  2nd group: define VIN_REG2 register (Reg.28) of NT1003-1.
;  3rd group: define input video frame/field size (regs.29-32)
;  4th group: define camera frame-rate (this is used by S/W driver as a reference).
;  5th group: I/O Register parameters. Reg.6 of NT1003-1.
;  6th group: Video Filter Table. Reg.42 of NT1003-1 - value depends on frame size.
;
;  VIN_REG1 (1st group) parameters
;  ===============================
;  STREAM.VIN_MODE	;This parameter ranges 0-7 (NT1003-1 Reg.27, d2-d0):
;			;0 = 8-bit Y/U/V 4:2:2, using VSNC and HSNC signals to synchronize
;			;1 = 8-bit Y/U/V 4:2:2, using CCIR 656 standard
;			;2 = 16-bit Y,U/V 4:2:2, using VSNC and HSNC signals to synchronize
;			;3 = 16-bit Y/U/V 4:2:2, using CCIR 656 standard
;			;4 = 24-bit Y,U,V 4:4:4, using VSNC and HSNC signals to synchronize
;			;5-7 = spare.
;  STREAM.VSNC_POL	;Vertical pulse polarity bit (NT1003-1 Reg.27, d3). Ignored if CCIR 656:
;			;0 = Frame starts on negative-going edge of VSNC
;			;1 = Frame starts on positive-going edge of VSNC
;  STREAM.HSNC_POL	;Horizontal pulse polarity bit (NT1003-1 Reg.27, d4). Ignored if CCIR 656:
;			;0 = Line starts on negative-going edge of HSNC
;			;1 = Line starts on positive-going edge of HSNC
;  STREAM.FID_POL	;Field Identity. Interlace mode only (NT1003-1 Reg.27, d5).
;			;0 = FID='0' during first (odd) field
;			;1 = FID='0' during second (even) field
;  STREAM.HVALID_POL	;Polarity of HVALID signal. (NT1003-1 Reg.27, d6). Ignored if STREAM.NO_HVALID='1'.
;			;0 = input signal HVALID='1' for active pixels
;			;1 = input signal HVALID='0' for active pixels
;  STREAM.VCLK_POL	;Polarity of VCLK clock input (Pixel Clock):
;			;0 = Data valid on negative-going edge of VCLK
;			;1 = Data valid on positive-going edge of VCLK
;  STREAM.DVI_YUV	;Order of components of pixel-pair (Y0,Y1,U0,V0) in 8-bit mode. Ignored
;                       ;if STREAM.VIN_MODE is different from 0. This parameter (Reg.49) ranges 0-7:
;			; 0:	V0,Y0,U0,Y1
;			; 1:	U0,Y0,V0,Y1
;			; 2:	Y0,V0,U0,Y1
;			; 3:	Y0,U0,V0,Y1
;			; 4:	V0,Y0,Y1,U0
;			; 5:	U0,Y0,Y1,V0
;			; 6:	Y0,V0,Y1,U0
;			; 7:	Y0,U0,Y1,V0
;
;  VIN_REG2 (2nd group) parameters
;  ===============================
;  STREAM.AUTO_FID	;External/Internal Field Identity (NT1003-1 Reg.28, d0):
;			;0 = Use External FID signal
;			;1 = Generate Internal toggling FID. Ignore FID pin.
;  STREAM.NONE_INTERLACE ;Non-Interlace mode  (NT1003-1 Reg.28, d1):
;			;0 = Video Source is Interlace (2 fields in frame)
;			;1 = Video Source is Non-Interlace
;  STREAM.NO_HVALID	;Ignore HVALID input from camera  (NT1003-1 Reg.28, d2):
;			;0 = Use HVALID input as a pixel qualifier
;			;1 = Ignore HVALID input
;  STREAM.UV_ID		;V7 input pin as U/V identifier  (NT1003-1 Reg.28, d3):
;			;0 = Do not use V7 pin as U/V identifier
;			;1 = Use V7 pin as U/V identifier
;  STREAM.FIX_2C	;Signed/Unsigned Color components (NT1003-1 Reg.28, d4):
;			;0 = U and V are unsigned 0-255 (normally)
;			;1 = Invert U[7] and V[7] to fix Unsigned 8-bit inputs
;  STREAM.SEND_FID	;Send FID data to host (NT1003-1 Reg.28, d5):
;			;0 = Do not report FID (normal in stream operation)
;			;1 = Override Frame_Phase[0] by FID bit (this is to be used in Still
;			;	capture mode, to allow S/W to rebuild single frame from two
;			;	interlaced fields).
;  STREAM.KEEP_BLANK	;Drop all incoming frames (NT1003-1 Reg.28, d7):
;			;0 = Allow normal operation
;			;1 = Block all frames. This actually stops video activity in NT1003-1.
;
;  Frame/Field Size (3rd group) parameters
;  =======================================
;  STREAM.XSIZE_IN	;Number of pixels in line (NT1003-1 Regs.29-30). This parameter ranges 1-1023.
;  STREAM.YSIZE_IN	;Number of lines in a frame/field (NT1003-1 Regs.31-32). This parameter
;			;ranges 1-1023.
;			;INTERLACE cameras:  STREAM.YSIZE_IN = Number of lines in a field.
;			;NONE_INTERLACE cameras:  STREAM.YSIZE_IN = Number of lines in a frame.
;
;  Camera Frame-Rate (4th group) parameter
;  =======================================
;  CAM_FRM_RATE		;Number of frames/sec produced by camera. This parameter ranges 1-255.
;			;This parameter is only used by S/W as a reference for the
;			;maximum frame-rate delivered by NT1003-1 (max. frame-rate is
;			;achieved by writing 0x1F in Reg.37 of NT1003-1).
;
;  I/O Register (5th group) parameters
;  =======================================
;  STREAM.IO_1		;Position of IO_1 pin in Stream mode (NT1003-1 Reg.6, d0):
;			;0 = Constant '0'
;			;1 = Constant '1'
;			;2 = Blinking: '0' for 250ms, '1' for 250ms.
;  STREAM.IO_2		;Position of IO_2 pin in Stream mode (NT1003-1 Reg.6, d1):
;			;0 = Constant '0'
;			;1 = Constant '1'
;			;2 = Blinking: '0' for 250ms, '1' for 250ms.
;
;  Video Filter Table (6th group) parameters
;  =========================================
;  XF1L			;Lowest XSIZE_O/XSIZE_IN ratio to select XFILT_CONT='001'.
;			;Optional parameter. Default=0.55
;			;Note: If XSIZE_O/XSIZE_IN == 1, XFILT_CONT='000' selected.
;			;	Else if XSIZE_O/XSIZE_IN >= XF1L, XFILT_CONT='001' selected.
;  XF2L			;Lowest XSIZE_O/XSIZE_IN ratio to select XFILT_CONT='010'.
;			;Optional parameter. Default=0.33
;  XF3L			;Lowest XSIZE_O/XSIZE_IN ratio to select XFILT_CONT='011'.
;			;Optional parameter. Default=0.25
;			;Note: If XSIZE_O/XSIZE_IN < XF3L, XFILT_CONT='100' selected.
;  YF1L			;Lowest YSIZE_O/YSIZE_IN ratio to select YFILT_CONT='01'.
;			;Optional parameter. Default=0.50
;			;Note: If YSIZE_Y/XSIZE_IN == 1, YFILT_CONT='00' selected.
;			;	Else if YSIZE_O/YSIZE_IN >= YF1L, YFILT_CONT='01' selected.
;			;	Else YFILT_CONT='10' selected.
;
;*****************************************************************************************

STREAM.VIN_MODE		2		;4:2:2, 16-bit  (NT1003-1 Reg.27, d2-d0)
STREAM.VSNC_POL		0		;0=Neg,1=Pos vertical pulse  (NT1003-1 Reg.27, d3)
STREAM.HSNC_POL		0		;0=Neg,1=Pos horizontal pulse  (NT1003-1 Reg.27, d4)
STREAM.FID_POL		0		;Field Identity: 0=odd, 1=even  (NT1003-1 Reg.27, d5)
STREAM.HVALID_POL	1		;1=Neg,0=Pos HVALID polarity  (NT1003-1 Reg.27, d6)
STREAM.VCLK_POL		1		;Data-Valid on 1=Up(0=Down)-going clock  (NT1003-1 Reg.27, d7)

STREAM.AUTO_FID		0		;1=YES, 0=NO auto FID  (NT1003-1 Reg.28, d0)
STREAM.NONE_INTERLACE	0		;0=Interlace, 1=Non-Interlace mode  (NT1003-1 Reg.28, d1)
STREAM.NO_HVALID	1		;0=Use, 1=Ignore HVALID input from camera  (NT1003-1 Reg.28, d2)
STREAM.UV_ID		0		;1=use, 0=Ignore V7 as U/V identifier  (NT1003-1 Reg.28, d3)
STREAM.FIX_2C		0		;U and V are unsigned 0-255  (NT1003-1 Reg.28, d4)
STREAM.SEND_FID		0		;Do not report FID  (NT1003-1 Reg.28, d5)
STREAM.KEEP_BLANK	0		;Allow normal operation  (NT1003-1 Reg.28, d7)

STREAM.XSIZE_IN		704		;Number of pixels in line  (NT1003-1 Regs.29-30)
STREAM.YSIZE_IN		240		;Number of lines in field  (NT1003-1 Regs.31-32)

CAM_FRM_RATE		30		;NTSC mode


;*****************************************************************************************
;
;  Serial Bus Parameters for Camera Control (via IICDT & IICCK pins). This refers only to
;  low-level serial communication. The default value of any of these parameters (when not
;  defined) is 0. Chapter 6 of the NT1003-1 data-sheet specifies six essential modes for the
;  camera control serial port. Some cameras can be controlled by just using one of these
;  essential modes (e.g. I2C), but there are camera chip-sets which require some special
;  S/W procedures to communicate with.
;  
;  SERIAL_CONTROL	;This parameter defines if Serial Control by NT1003-1 is required:
;			;0 = Do not use camera Serial Control via NT1003-1
;			;1 = Use camera Serial Control via NT1003-1. Specific mode must be defined.
;  SER_MODE		;This parameter selects the Mode for Serial Control:
;			;
;			; 0x0n, n=0,1,,F:  Use a specific S/W procedure (one of 16, according to n).
;			;			There is only one S/W procedure defined at this
;			;			time, for n=0 (SER_MODE=0x00):
;			;
;			;			SER_MODE=0x00: "26-bit" mode (Toshiba & Panasonic):
;			;				a) Set IO_2 = '1' (used as CS for camera)
;			;				b) Send bits d3 and then d2 from parameter
;			;				   SER_DEVICE_WRITE_ADDR, using "SOFT"
;			;				   mode. IICDT valid on up-going IICCK.
;			;				c) Send 3 bytes of data in "SIO" mode:
;			;				   1st byte: d1 and then d0 from parameter
;			;				   SER_DEVICE_WRITE_ADDR, and then d5-d0
;			;				   from RegAddrs parameter (taken from
;			;				   camera Brigthness, Contrast, etc. tables).
;			;				   2nd byte: MSB from RegDat parameter
;			;				   (taken from camera Brigthness,
;			;				   Contrast, etc. tables). MSbit first.
;			;				   3rd byte: LSB from RegDat parameter
;			;				   (taken from camera Brigthness,
;			;				   Contrast, etc. tables). MSbit first.
;			;				d) Clr IO_2 = '0' (used as CS for camera)
;			;			SER_MODE=0x01-0x0F: TBD (Spare).
;			;
;			; 0x10-0x13:	SIO mode. Send 1-4 bytes with specified clk freq. & polarity.
;			;			Use SER_CONT parameter to specify # of data bytes.
;			;			Use DATA_REG1 to DATA_REG4 to specify constant
;			;			data bytes.
;			;			RegAddrs parameter (taken from camera Brigthness,
;			;			Contrast, etc. tables) automatically copied to
;			;			first DATA_REGn register that was not defined
;			;			as a data byte constant.
;			;			RegDat parameter (taken from camera Brigthness,
;			;			Contrast, etc. tables) automatically copied to
;			;			second DATA_REGn register that was not defined
;			;			as a data byte constant.
;			;
;			; 0x20,0x30:	I2C modes. Send 1-4 data bytes to a given I2C address.
;			;			Use SER_CONT parameter to specify # of data bytes.
;			;			Use SER_DEVICE_WRITE_ADDR parameter to specify
;			;			The I2C Write address of the I2C slave device. It
;			;			will be sent first after I2C "start" condition.
;			;			Use DATA_REG1 to DATA_REG4 to specify constant
;			;			data bytes.
;			;			RegAddrs parameter (taken from camera Brigthness,
;			;			Contrast, etc. tables) automatically copied to
;			;			first DATA_REGn register that was not defined
;			;			as a data byte constant.
;			;			RegDat parameter (taken from camera Brigthness,
;			;			Contrast, etc. tables) automatically copied to
;			;			second DATA_REGn register that was not defined
;			;			as a data byte constant.
;			; 0x40-0x43:	CAM1 mode. Send 8-bit data to a given register of
;			;			camera, with specified clk freq. & polarity.
;			;			SER_CONT=1 is mandatory.
;			;			RegAddrs parameter (taken from camera Brigthness,
;			;			Contrast, etc. tables) specifies the register
;			;			8-bit address in camera to be written.
;			;			RegDat parameter (taken from camera Brigthness,
;			;			Contrast, etc. tables) specifies the 8-bit data
;			;			to be written into specified camera register.
;			; 0x50-0x53:	CAM2 mode. Send 7-bit data to a given register of
;			;			camera, with specified clk freq. & polarity.
;			;			SER_CONT=1 is mandatory.
;			;			RegAddrs parameter (taken from camera Brigthness,
;			;			Contrast, etc. tables) specifies the register
;			;			7-bit address in camera to be written.
;			;			RegDat parameter (taken from camera Brigthness,
;			;			Contrast, etc. tables) specifies the 7-bit data
;			;			to be written into specified camera register.
;
;***************************************************************************************** 

SERIAL_CONTROL		1		;Use Serial Control for this camera. Use 0 to disable any serial control.
SER_MODE		0x20		;Use IIC LRACK serial-mode in NT1003-1 address 7
SER_CONT		0x02		;Number of data bytes to send. NT1003-1 address 9. Add 0x10 to send.
SER_DEVICE_WRITE_ADDR	0x48		;IIC WR address of SAA7111 (NT1003-1 address 8)

;*****************************************************************************************
;
;  Camera Initialization. This block specifies a sequence of Write operations to be
;  performed about 100ms after camera power-up, or when changing between main modes
;  of the camera (like PAL, NTSC, etc.). S/W driver will perform the list of Write
;  operations one by one, in the same order that they appear in this file. Each line in
;  the file should contain a single Write operation to a camera register or to a NT1003-1
;  register. It takes about 4-50ms for the USB protocol to complete a single Write operation,
;  depends on how complicated is the communication mode.
;
;  INIT_LEN denotes the number of Write-operation lines in this block. 0 means no Write ops.
;
;  INIT_VALUES is a list of Write operations of the form:
;
;  RegAddrs,RegDat,SEL	@ RegAddrs ranges 0-255, RegDat ranges 0-65535, SEL=0(Cam)/1(NT1003)
;
;  Each line contains a register address, followed by a data value to be written, followed
;  by a Camera/NT1003 binary selector. The Camera/NT1003 binary selector determines if data
;  should be written to camera (using Serial-Bus) or to NT1003-1 (using direct Write). The
;  default value for SEL is 0 when omitted, which selects the Camera.
;  Example:
;  0x1C,0x04,1	;Write 0x04 to NT1003-1 VIN_REG2 register.
;  0x12,0x80	;Write 0x80 to camera register address 0x12. SEL=0 by default.
;
;***************************************************************************************** 

INIT_LEN		30		;Write to 30 Camera-Registers to initialize camera (use 0 if no initialization needed):
INIT_VALUES		0x00,0x00	;CamReg.0x00 = 0x00
			0x01,0x00	;CamReg.0x01 = 0x00
			0x02,0xC0	;CamReg.0x02 = 0xC0
			0x03,0x23
			0x04,0x00
			0x05,0x00
			0x06,0xEB
			0x07,0xE0
			0x08,0x88
			0x09,0x01
			0x0A,0x80
			0x0B,0x47
			0x0C,0x40
			0x0D,0x00
			0x0E,0x01
			0x0F,0x00
			0x10,0x40
			0x11,0x1C
			0x12,0x01
			0x13,0x00
			0x14,0xC0
			0x15,0x00
			0x16,0x00
			0x17,0x00
			0x18,0x00
			0x19,0x00
			0x1D,0x00
			0x1E,0x00
			0x08,0x48
			0x09,0x21

;*****************************************************************************************
;
;  The following blocks define how to control Brightness, Contrast, Color-Saturation, Hue,
;  White-Balance, and Long Exposure of the video source. Normally, the camera DSP uses a
;  dedicated register for each of these control parameters, with a specified range of values.
;  However, there are some cameras which require access to more than one register to control
;  certain parameters. Also, there are cameras that use common registers for multiple parameters.
;  This file uses look-Up-Tables to define to the S/W driver how to control these parameters.
;  Every LUT contains a value(s) to be written to a specified register(s) versus parameter level.
;
;  Example: 
;	COLOR_POSITIONS	3		;Number of different Color positions.
;	COLOR_REGISTERS	0x03,0x04	;Use 2 registers of camera RegAddrs=3,4 for Color Control.
;	COLOR_MASKS	0x1F,0x3F	;Use these bit-masks to modify only certain bits of the
;					;2 registers respectively.
;	COLOR_VALUES	0x05,0x0A	;Index=0, Color RegDat value for low color
;			0x08,0x10	;Index=1, Color RegDat value for medium color
;			0x10,0x20	;Index=2, Color RegDat value for high color
;	COLOR_DEFAULT	1		;Index of Color RegDat default setting
;
;  The following parameters are common to all control parameters. For the different parameters
;  replace the string "param" with "BRIGHTNESS", "CONTRAST", "COLOR", "HUE", "WB", or
;  "LONG_EXPOSURE". User can define additional general purpose controls "GP1", "GP2", "GP3",
;  "GP3", and "GP4". These require appropriate GUI modifications, and are asociated
;  with GUI IDs 0x0800, 0x0801, 0x0802, 0x0803, and 0x0804 respectively.
;
;  param_POSITIONS	specifies the number of entries in the LUT. 0 denotes "no control".
;  param_REGISTERS	specifies the address of camera register(s) to control "param". If
;			more than one register is to be accessed, the different addresses
;			should be separated by commas.
;  param_MASKS		specifies a bit-mask per every control register. S/W driver uses a
;			software "shadow" of the entire value written to each register. This
;			is in order to be able to change only the masked ('1') bits in this
;			table. The default value for param_MASKS is 0xFFFF. If more than one
;			register is accessed, then the mask values should be separated with
;			commas, and their order relates respectively to the param_REGISTERS list.
;  param_VALUES		This is the beginning of LUT. Every line contains one or more values,
;			depending on the number of registers. The data values refer to register
;			contents, and can be 8-bit or 16-bit (depends on camera register width).
;			First entry always refers to "param" being in its minimum level.
;			Last  entry always refers to "param" being in its maximum level.
;  param_DEFAULT	This parameter specifies to S/W driver a default entry to the LUT. It
;			ranges from 0 to param_POSITIONS-1. The param_DEFAULT value is used by
;			the S/W driver when the user presses the "Restore Default" button. If
;			this parameter does not appear in file, S/W value will use 0 as a default.
;
;*****************************************************************************************
 
BRIGHTNESS_POSITIONS	32		;Number of different Brightness positions. 0 denotes "no brightness control"
BRIGHTNESS_REGISTERS	0x0A		;Use camera RegAddrs=0x0A for Brightness Control. Single Register.
BRIGHTNESS_VALUES	0x08		;Index=0, Brightness RegDat value for "dark"
			0x10
			0x18
			0x20
			0x28
			0x30
			0x38
			0x40
			0x48
			0x50
			0x58
			0x60
			0x68
			0x70
			0x78
			0x80
			0x88
			0x90
			0x98
			0xA0
			0xA8
			0xB0
			0xB8
			0xC0
			0xC8
			0xD0
			0xD8
			0xE0
			0xE8
			0xF0
			0xF8
			0xFF		;Brightness RegDat value for "bright"
BRIGHTNESS_DEFAULT	20		;Index of Brightness RegDat default setting

CONTRAST_POSITIONS	32		;Number of different Contrast positions. 0 denotes "no contrast control"
CONTRAST_REGISTERS	0x0B		;Use camera RegAddrs=0x0B for Contrast Control. Single Register.
CONTRAST_VALUES		0x04		;Index=0, Contrast RegDat value for lowest contrast
			0x08
			0x0C
			0x10
			0x14
			0x18
			0x1C
			0x20
			0x24
			0x28
			0x2C
			0x30
			0x34
			0x38
			0x3C
			0x40
			0x44
			0x48
			0x4C
			0x50
			0x54
			0x58
			0x5C
			0x60
			0x64
			0x68
			0x6C
			0x70
			0x74
			0x78
			0x7C
			0x7F		;Contrast RegDat value for highest contrast
CONTRAST_DEFAULT	22		;Index of Contrast RegDat default setting

COLOR_POSITIONS		32		;Number of different Color positions. 0 denotes "no color control"
COLOR_REGISTERS		0x0C		;Use camera RegAddrs=0x0C for Color Control. One Register.
COLOR_VALUES		0x04		;Index=0, Color RegDat values for lowest color saturation
			0x08
			0x0C
			0x10
			0x14
			0x18
			0x1C
			0x20
			0x24
			0x28
			0x2C
			0x30
			0x34
			0x38
			0x3C
			0x40
			0x44
			0x48
			0x4C
			0x50
			0x54
			0x58
			0x5C
			0x60
			0x64
			0x68
			0x6C
			0x70
			0x74
			0x78
			0x7C
			0x7F		;Color RegDat values for highest color saturation
COLOR_DEFAULT		20		;Index of Color RegDat default setting

HUE_POSITIONS		32		;Number of different Hue positions. 0 denotes "no hue control"
HUE_REGISTERS		0x0D		;Use camera RegAddrs=0xD for Hue Control. One Register.
HUE_VALUES		0xC4		;Index=0, Hue RegDat values for Greenish hue
			0xC8
			0xCC
			0xD0
			0xD4
			0xD8
			0xDC
			0xE0
			0xE4
			0xE8
			0xEC
			0xF0
			0xF4
			0xF8
			0xFC
			0x00
			0x04
			0x08
			0x0C
			0x10
			0x14
			0x18
			0x1C
			0x20
			0x24
			0x28
			0x2C
			0x30
			0x34
			0x38
			0x3C
			0x40		;Hue RegDat values for  Reddish hue
HUE_DEFAULT		15		;Index of Hue RegDat default setting

WB_POSITIONS		0		;Number of different White-Balance positions. 0 denotes "no WB control"
GP1_POSITIONS		2		; Selection of s-video and composite video
GP1_REGISTERS		0x02		;
GP1_VALUES			0xC0            ; Composite video AI11					;	
				0xC5		; S-video AI12+AI22
GP1_DEFAULT			0		;
GUI_Type			0x01		;S-video/composite video GUI
;*****************************************************************************************
;
;  The following blocks define the legal settings for Horizontal and Vertical Offsets.
;  These parameters are controlled via dedicated registers of the NT1003-1 (Regs.33-36).
;  This file uses look-Up-Tables to define to the S/W driver how to control the Horizontal
;  Offset ("X_OFFSET") and the Vertical Offset ("Y_OFFSET").
;  Every LUT contains a value to be written to the appropriate registers of the NT1003-1,
;  versus parameter level.
;
;  The following parameters are common to Horizontal and Vertical offsets.
;  Replace the string "param" with "X_OFFSET" or "Y_OFFSET":
;
;  param_POSITIONS	specifies the number of entries in the LUT. 0 denotes "no control".
;  param_VALUES		This is the beginning of LUT. Every line contains an offset value.
;			First value should be the smallest one (most left or most upper).
;			Last value should be the biggest one (most right or most lower).
;  param_DEFAULT	This parameter specifies to S/W driver a default entry to the LUT. It
;			ranges from 0 to param_POSITIONS-1. The param_DEFAULT value is used by
;			the S/W driver when the user presses the "Restore Default" button. If
;			this parameter does not appear in file, S/W value will use 0 as a default.
;
;*****************************************************************************************

X_OFFSET_POSITIONS	10		;Number of different Horizontal Offset positions.
X_OFFSET_VALUES		76		;Index=0, Most left. (NT1003-1 Regs.33-34)
			78
			80
			82
			84
			86
			88
			90
			92
			94		;Most right.
X_OFFSET_DEFAULT	4		;Index of Horiz. Offset default setting

Y_OFFSET_POSITIONS	8		;Number of different Vertical Offset positions.
Y_OFFSET_VALUES		13		;Index=0, Most up. (NT1003-1 Regs.35-36)
			14
			15
			16
			17
			18
			19
			20		;Most down.
Y_OFFSET_DEFAULT        5               ;Index of Vertic. Offset default setting


;*****************************************************************************************
;
;  NT1003-1 setup for Still-Capture operation. A command to capture a Still picture can
;  be received either from S/W application (when user presses mouse button), or from
;  the NT1003-1 (when user presses camera CAPTURE button). To capture a still, the S/W
;  driver first stops the stream, then reprogram the NT1003-1 according to the still parameters
;  in the following block, then receives a single frame from the NT1003-1 (2 fields for
;  Interlace video), then processes the data to produce a 640x480 image.
;  
;
;  The default value of any parameters (when not defined) is 0.
;  This block contains 5 groups of video-source characteristic parameters:
;  1st group: define global behavior of the S/W required for Still Capture.
;  2nd group: define VIN_REG1 register (Reg.27) and DVI_YUV (Reg.49) of NT1003-1.
;  3rd group: define VIN_REG2 register (Reg.28) of NT1003-1.
;  4th group: define input video frame/field size (regs.29-32)
;  5th group: define values of additional registers of the NT1003-1.
;  6th group: I/O Register parameters. Reg.6 of NT1003-1.
;
;  Global Behavior (1st group) parameters
;  ======================================
;  CaptureCommandSource	;1 => Can use camera Capture Button.  0 => Button disabled.   
;  InterlaceFields	;1 => Must combine 2 fields to produce a still frame. 0 otherwise
;  SourceWindow		;0 => Always use STILL.XSIZE,STILL.YSIZE,STILL.X_OFFST, and
;			;	STILL.Y_OFFST parameters
;			;1 => These parameters are taken from the STREAM values ...
;
;  VIN_REG1 (2nd group) parameters
;  ===============================
;  These parameters are the same as the appropriate group of parameters in the STREAM section.
;  Replace the string "STREAM" with "STILL". Normally, the values assigned to the STILL
;  parameters in this group is the same as for the STREAM parameters, else the camera chip-set
;  can be utilize in some different way for a still image.
;
;  VIN_REG2 (3rd group) parameters
;  ===============================
;  These parameters are the same as the appropriate group of parameters in the STREAM section.
;  Replace the string "STREAM" with "STILL". Normally, the values assigned to the STILL
;  parameters in this group is the same as for the STREAM parameters.
;  Note that in Interlace cameras, the parameter STILL.NONE_INTERLACE should be set to '1' in
;  order that the NT1003-1 will not ignore the even field. Also STILL.SEND_FID should be set
;  to '1', in order that the host computer will be able to recognize the 2 fields as Odd and
;  Even (Incorrect value in STILL.FID_POL will result in bad order of the Odd and Even lines).
;
;  Frame/Field Size (4th group) parameters
;  =======================================
;  STREAM.XSIZE_IN	;Number of pixels in line (NT1003-1 Regs.29-30). This parameter ranges 1-1023.
;  STREAM.YSIZE_IN	;Number of lines in a frame/field (NT1003-1 Regs.31-32). This parameter
;			;ranges 1-1023.
;			;INTERLACE cameras:  STREAM.YSIZE_IN = Number of lines in a field.
;			;NONE_INTERLACE cameras:  STREAM.YSIZE_IN = Number of lines in a frame.
;
;  Additional registers (5th group) parameters
;  ===========================================
;  STILL.FILT_CONT	;LPF settings for Still Image (Value for NT1003-1 Reg.42). Normally 0x00.
;  STILL.VO_MODE	;Video Out mode for Still Image (Value for NT1003-1 Reg.43). Normally 0x14.
;  STILL.BUF_THR	;Value for NT1003-1 Reg.48. Normally 0x80.
;
;  I/O Register (5th group) parameters
;  =======================================
;  Same as the appropriate group of parameters in the STREAM section.
;
;***************************************************************************************** 

CaptureCommandSource	1		;1 => Can use camera Capture Button.  0 => Button disabled   
InterlaceFields		1		;1 => Must combine 2 fields to produce a still frame. 0 otherwise
SourceWindow		0	    	;0 => Always use STILL.XSIZE,STILL.YSIZE,STILL.X_OFFST, and STILL.Y_OFFST parameters
					;1 => These parameters are taken from the STREAM values ...

STILL.VIN_MODE		2		;4:2:2, 16-bit  (NT1003-1 Reg.27, d2-d0)
STILL.VSNC_POL		0		;Negative vertical pulse  (NT1003-1 Reg.27, d3)
STILL.HSNC_POL		0		;Negative horizontal pulse  (NT1003-1 Reg.27, d4)
STILL.FID_POL		0		;Field Identity: 0=odd, 1=even  (NT1003-1 Reg.27, d5)
STILL.HVALID_POL	1		;Negative HVALID polarity  (NT1003-1 Reg.27, d6)
STILL.VCLK_POL		1		;Data-Valid on Up-going clock  (NT1003-1 Reg.27, d7)

STILL.AUTO_FID		0		;No auto FID  (NT1003-1 Reg.28, d0)
STILL.NONE_INTERLACE    0               ;None-Interlace mode  (NT1003-1 Reg.28, d1)
STILL.NO_HVALID		1		;No HVALID input from camera  (NT1003-1 Reg.28, d2)
STILL.UV_ID		0		;Do not use V7 as U/V identifier  (NT1003-1 Reg.28, d3)
STILL.FIX_2C		0		;U and V are unsigned 0-255  (NT1003-1 Reg.28, d4)
STILL.SEND_FID          0               ;Report FID  (NT1003-1 Reg.28, d5)
STILL.KEEP_BLANK	0		;Allow normal operation  (NT1003-1 Reg.28, d7)

STILL.XSIZE_IN		704		;Number of pixels in line  (NT1003-1 Regs.29-30)
STILL.YSIZE_IN		240		;Number of lines in field  (NT1003-1 Regs.31-32)
STILL.XSIZE_OUT		640		;number of outputted pixels after scaling

StillOutputX		640		; Default value for X, interpolates only if images is smaller than this value
StillOutputX_P		768		; Interpolate to PAL size
 
STILL.FILT_CONT		0x00		;No LPF  (NT1003-1 Reg.42)
STILL.VO_MODE		0x14		;YUV 420 Planaric  (NT1003-1 Reg.43)
STILL.BUF_THR		0x80		;Sample 2 fields at least (NT1003-1 Reg.48)


;*****************************************************************************************
;
;  Analog Video applications may operate in PAL, NTSC, or SECAM modes. The following
;  parameters define which of these is selectable in this application. S/W driver can
;  switch between different operation modes. When doing so, it always initializes the
;  camera as done soon after power-up. Anyway, not all registers of the camera and NT1003-1
;  must be initiated, because power is not turned off.
;  This block specifies which modes are supported, and what is the initialization
;  sequence for each mode.
;
;  Parameters in this block:
;
;  NTSC		; 0 = Not Supported
;		; 1 = Selectable in this application (S/W should enable check box).
;		; 2 = Selectable in this application and also used as default mode. 
;  PAL		; 0 = Not Supported
;		; 1 = Selectable in this application (S/W should enable check box).
;		; 2 = Selectable in this application and also used as default mode. 
;  SECAM	; 0 = Not Supported
;		; 1 = Selectable in this application (S/W should enable check box).
;		; 2 = Selectable in this application and also used as default mode.
;
;  To define the switching initialization for each of these modes, use the following
;  pseudo parameters:
;
;  [NTSC]
;  followed by NTSC specific parameters.
; 
;  [PAL]
;  followed by PAL specific parameters.
; 
;  [SECAM]
;  followed by SECAM specific parameters.
; 
;  Any regular parameter in this file becomes a mode specific parameter by just
;  adding "mode." before the parameter name, where "mode" stands for "NTSC", "PAL",
;  or "SECAM".
;
;  Example:
;
;	[NTSC]					;Setup when switching to NTSC
;	NTSC.STREAM.YSIZE_IN	240		;Number of lines in field  (NT1003-1 Regs.31-32)
;	NTSC.CAM_FRM_RATE	30		;NTSC mode
;	NTSC.INIT_LEN		2
;	NTSC.INIT_VALUES	0x08,0x48
;				0x09,0x21
;	NTSC.X_OFFSET_POSITIONS	3		;Number of different Horizontal Offset positions.
;	NTSC.X_OFFSET_VALUES	68		;Index=0, Most left. (NT1003-1 Regs.33-34)
;				70
;				72		;Most right.
;	NTSC.X_OFFSET_DEFAULT	1		;Index of Horiz. Offset default setting
;	
;	NTSC.Y_OFFSET_POSITIONS	2		;Number of different Vertical Offset positions.
;	NTSC.Y_OFFSET_VALUES	14		;Index=0, Most up. (NT1003-1 Regs.35-36)
;				15		;Most down.
;	NTSC.Y_OFFSET_DEFAULT	0		;Index of Vertic. Offset default setting
;	NTSC.STILL.YSIZE_IN	240		;Number of lines in field  (NT1003-1 Regs.31-32)
;
;*****************************************************************************************

NTSC			2		;Default mode in this application
PAL			1		;Selectable, but not the default
SECAM			0		;Does not exist in this application

[NTSC]					;Setup when switching to NTSC
NTSC.STREAM.YSIZE_IN	240		;Number of lines in field  (NT1003-1 Regs.31-32)
NTSC.CAM_FRM_RATE	30		;NTSC mode
NTSC.INIT_LEN		2
NTSC.INIT_VALUES	0x08,0x48
			0x09,0x21
NTSC.X_OFFSET_POSITIONS	10		;Number of different Horizontal Offset positions.
NTSC.X_OFFSET_VALUES	76		;Index=0, Most left. (NT1003-1 Regs.33-34)
			78
			80
			82
			84
			86
			88
			90
			92
			94		;Most right.
NTSC.X_OFFSET_DEFAULT	4		;Index of Horiz. Offset default setting

NTSC.Y_OFFSET_POSITIONS	8		;Number of different Vertical Offset positions.
NTSC.Y_OFFSET_VALUES	12		;Index=0, Most up. (NT1003-1 Regs.35-36)
			13
			14
			15
			16
			17
			18
			19		;Most down.
NTSC.Y_OFFSET_DEFAULT	6		;Index of Vertic. Offset default setting
NTSC.STILL.YSIZE_IN	240		;Number of lines in field  (NT1003-1 Regs.31-32)
NTSC.STILL.XSIZE_OUT	640		;Number of outputted pixels in still mode

[PAL]					;Setup when switching to NTSC
PAL.STREAM.YSIZE_IN	288		;Number of lines in field  (NT1003-1 Regs.31-32)
PAL.CAM_FRM_RATE	25		;PAL mode
PAL.INIT_LEN		2
PAL.INIT_VALUES		0x08,0x08
			0x09,0x01
PAL.X_OFFSET_POSITIONS	10		;Number of different Horizontal Offset positions.
PAL.X_OFFSET_VALUES	86		;Index=0, Most left. (NT1003-1 Regs.33-34)
			88
			90
			92
			94
			96
			98
			100
			102
			104		;Most right.
PAL.X_OFFSET_DEFAULT	5		;Index of Horiz. Offset default setting

PAL.Y_OFFSET_POSITIONS	2		;Number of different Vertical Offset positions.
PAL.Y_OFFSET_VALUES	19		;Index=0, Most up. (NT1003-1 Regs.35-36)
                        20              ; 
PAL.Y_OFFSET_DEFAULT	1		;Index of Vertic. Offset default setting
PAL.STILL.YSIZE_IN	288		;Number of lines in field  (NT1003-1 Regs.31-32)
PAL.STILL.XSIZE_OUT	600		;number of outputted pixel in PAL mode.
 

Download Driver Pack

How To Update Drivers Manually

After your driver has been downloaded, follow these simple steps to install it.

  • Expand the archive file (if the download file is in zip or rar format).

  • If the expanded file has an .exe extension, double click it and follow the installation instructions.

  • Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.

  • Find the device and model you want to update in the device list.

  • Double-click on it to open the Properties dialog box.

  • From the Properties dialog box, select the Driver tab.

  • Click the Update Driver button, then follow the instructions.

Very important: You must reboot your system to ensure that any driver updates have taken effect.

For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.

server: ftp, load: 1.10