;
; MR97310.INF (Windows 98 , Windows ME , Windows 2000)
;

[Version]
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%MSFT%
catalogFile=mr97310v.cat
DriverVer=10/14/2002,1.2.9.0

[SourceDisksNames]
1 = "MR97310 Installation Disk",,,

[SourceDisksFiles]
mr97310v.inf	=1
mr97310v.sys	=1
mr310exd.dll	=1
mr310exv.dll	=1

[Manufacturer]
%MarsMfg%=MARS

[DestinationDirs]
DefaultDestDir=11
MARS.USBDCam.CopyDrivers=10,system32\drivers
MARS.USBDCam.CopyVfwExt=11
MARS.USBDCam.CopyDshowExt=11
MARS.USBDCam.copytwain=10,twain_32\marscam
MARS.USBDCam.copytwainIni=10

[MARS]
%USB\VID_093a&PID_010e.DeviceDesc%=MARS.USBDCam,USB\VID_093a&PID_010f

[MARS.USBDCam]
Include=    ks.inf,kscaptur.inf,ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration,MSPCLOCK.Installation
AddReg=     MARS.USBDCam.AddReg,MARS.USBDCam.AddReg.InitVal,MARS.USBDCam.Addreg.DSExt
CopyFiles=  MARS.USBDCam.CopyDrivers,MARS.USBDCam.CopyVfwExt,MARS.USBDCam.CopyDshowExt,MARS.USBDCam.copytwain,MARS.USBDCam.copytwainIni

[MARS.USBDCam.NTx86]
Include=    ks.inf,kscaptur.inf,ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     MARS.USBDCam.AddReg,MARS.USBDCam.AddReg.InitVal,MARS.USBDCam.Addreg.DSExt
CopyFiles=  MARS.USBDCam.CopyDrivers,MARS.USBDCam.CopyVfwExt,MARS.USBDCam.CopyDshowExt,MARS.USBDCam.copytwain,MARS.USBDCam.copytwainIni

[MARS.USBDCam.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,mr97310v.sys
HKR,,PageOutWhenUnopened,3,00
HKR,,PowerDownWhenUnopened,3,00
HKR,,DontSuspendIfStreamsAreRunning,3,01


[MARS.USBDCam.AddReg.InitVal]
;AWB
HKLM,"Software%SettingRegistryPath%\AWB",IUpbound			,0x00010001,   80
HKLM,"Software%SettingRegistryPath%\AWB",ILowbound			,0x00010001,  -80
HKLM,"Software%SettingRegistryPath%\AWB",QUpbound			,0x00010001,   30
HKLM,"Software%SettingRegistryPath%\AWB",QLowbound			,0x00010001,  -30
HKLM,"Software%SettingRegistryPath%\AWB",YUpbound			,0x00010001,  255
HKLM,"Software%SettingRegistryPath%\AWB",YLowbound			,0x00010001,   50
HKLM,"Software%SettingRegistryPath%\AWB",RGainUpbound_x1000		,0x00010001, 1300
HKLM,"Software%SettingRegistryPath%\AWB",RGainLowbound_x1000		,0x00010001,  700
HKLM,"Software%SettingRegistryPath%\AWB",BGainUpbound_x1000		,0x00010001, 1300
HKLM,"Software%SettingRegistryPath%\AWB",BGainLowbound_x1000		,0x00010001,  700
HKLM,"Software%SettingRegistryPath%\AWB",AWBEnable			,0x00010001,    1
HKLM,"Software%SettingRegistryPath%\AWB",AWBValue			,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\AWB",DscAWBMode			,0x00010001,    1
HKLM,"Software%SettingRegistryPath%\AWB",ManualRGain_x1000		,0x00010001, 1000
HKLM,"Software%SettingRegistryPath%\AWB",ManualBGain_x1000		,0x00010001, 1000

;AE
HKLM,"Software%SettingRegistryPath%\AE"	,YSumTol			,0x00010001, 500000   
HKLM,"Software%SettingRegistryPath%\AE"	,YSumBal_d1000			,0x00010001, 2600   
HKLM,"Software%SettingRegistryPath%\AE"	,AEEnable			,0x00010001,   1   
HKLM,"Software%SettingRegistryPath%\AE" ,GlobalGainLB			,0x00010001,   6
HKLM,"Software%SettingRegistryPath%\AE" ,GlobalGainUB			,0x00010001,   24

;Defect
HKLM,"Software%SettingRegistryPath%\DEFECT",NumberThd_Light		,0x00010001,    8
HKLM,"Software%SettingRegistryPath%\DEFECT",ValueThd_Light		,0x00010001,   18
HKLM,"Software%SettingRegistryPath%\DEFECT",NumberThd_Dark		,0x00010001,    8
HKLM,"Software%SettingRegistryPath%\DEFECT",ValueThd_Dark		,0x00010001,   18
HKLM,"Software%SettingRegistryPath%\DEFECT",ScanIntervalFrames		,0x00010001,   20
HKLM,"Software%SettingRegistryPath%\DEFECT",DefectEnable		,0x00010001,    1 
         
;ColorProcess
HKLM,"Software%SettingRegistryPath%\COLORPROCESS",Hue			,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\COLORPROCESS",Satu_x100		,0x00010001,  120
HKLM,"Software%SettingRegistryPath%\COLORPROCESS",ContrastGain_x100	,0x00010001,  110
HKLM,"Software%SettingRegistryPath%\COLORPROCESS",Brightness_add30	,0x00010001,   30 

;Sharpness
HKLM,"Software%SettingRegistryPath%\SHARPNESS",SharpnessEnable		,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\SHARPNESS",SharpnessMode		,0x00010001,    2
HKLM,"Software%SettingRegistryPath%\SHARPNESS",Sharpness		,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\SHARPNESS",SupressUpbound		,0x00010001,   20
HKLM,"Software%SettingRegistryPath%\SHARPNESS",SupressLowbound		,0x00010001,  -20
HKLM,"Software%SettingRegistryPath%\SHARPNESS",Sharpness_dMu_x1000	,0x00010001,  500

;Gamma
HKLM,"Software%SettingRegistryPath%\GAMMA",GammaEnable			,0x00010001,    1
HKLM,"Software%SettingRegistryPath%\GAMMA",GammaCurveModel		,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\GAMMA",GammaValue_x100		,0x00010001,   95

;Dac
HKLM,"Software%SettingRegistryPath%\DAC",DacSignForSubtract		,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\DAC",IsManualDacSetting		,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\DAC",ManualDacValue			,0x00010001,    6

;Shell
HKLM,"Software%SettingRegistryPath%\Shell",UpdownInverse		,0x00010001,    1

;Misc
HKLM,"Software%SettingRegistryPath%\Misc", AESpeed			,0x00010001,    1
HKLM,"Software%SettingRegistryPath%\Misc", Flicker			,0x00010001,   60
HKLM,"Software%SettingRegistryPath%\Misc", LightSoure			,0x00010001,    1

;Snap
;HKLM,"Software\Mars\MR97310\VGA\SNAP", HEVENT				,0x00010001,    0

;DSC.1 DSC\SHELL
HKLM,"Software%SettingRegistryPath%\DSC\Shell",NoImageProcess		,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\DSC\Shell",InterpolationOnly	,0x00010001,    1
HKLM,"Software%SettingRegistryPath%\DSC\Shell",UpdownInverse		,0x00010001,    1

;DSC.2 DSC\GAMMA
HKLM,"Software%SettingRegistryPath%\DSC\GAMMA",GammaEnable		,0x00010001,    1
HKLM,"Software%SettingRegistryPath%\DSC\GAMMA",GammaCurveModel		,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\DSC\GAMMA",GammaValue_x100		,0x00010001,  110

;DSC.3 DSC\Defect
HKLM,"Software%SettingRegistryPath%\DSC\DEFECT",NumberThd_Light		,0x00010001,    8
HKLM,"Software%SettingRegistryPath%\DSC\DEFECT",ValueThd_Light		,0x00010001,   18
HKLM,"Software%SettingRegistryPath%\DSC\DEFECT",NumberThd_Dark		,0x00010001,    8
HKLM,"Software%SettingRegistryPath%\DSC\DEFECT",ValueThd_Dark		,0x00010001,   18
HKLM,"Software%SettingRegistryPath%\DSC\DEFECT",ScanIntervalFrames	,0x00010001,   20
HKLM,"Software%SettingRegistryPath%\DSC\DEFECT",DefectEnable		,0x00010001,    1 

;DSC.4 DSC\AWB
HKLM,"Software%SettingRegistryPath%\DSC\AWB",IUpbound			,0x00010001,   80
HKLM,"Software%SettingRegistryPath%\DSC\AWB",ILowbound			,0x00010001,  -80
HKLM,"Software%SettingRegistryPath%\DSC\AWB",QUpbound			,0x00010001,   30
HKLM,"Software%SettingRegistryPath%\DSC\AWB",QLowbound			,0x00010001,  -30
HKLM,"Software%SettingRegistryPath%\DSC\AWB",YUpbound			,0x00010001,  235
HKLM,"Software%SettingRegistryPath%\DSC\AWB",YLowbound			,0x00010001,  150
HKLM,"Software%SettingRegistryPath%\DSC\AWB",RGainUpbound_x1000		,0x00010001, 1400
HKLM,"Software%SettingRegistryPath%\DSC\AWB",RGainLowbound_x1000	,0x00010001,  800
HKLM,"Software%SettingRegistryPath%\DSC\AWB",BGainUpbound_x1000		,0x00010001, 1400
HKLM,"Software%SettingRegistryPath%\DSC\AWB",BGainLowbound_x1000	,0x00010001,  800
HKLM,"Software%SettingRegistryPath%\DSC\AWB",AWBEnable			,0x00010001,    1
HKLM,"Software%SettingRegistryPath%\DSC\AWB",AWBValue			,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\DSC\AWB",AWBMode			,0x00010001,    1
HKLM,"Software%SettingRegistryPath%\DSC\AWB",ManualRGain_x1000		,0x00010001, 1000
HKLM,"Software%SettingRegistryPath%\DSC\AWB",ManualBGain_x1000		,0x00010001, 1000

;DSC.5 DCS\Sharpness
HKLM,"Software%SettingRegistryPath%\DSC\SHARPNESS",SharpnessEnable	,0x00010001,    1
HKLM,"Software%SettingRegistryPath%\DSC\SHARPNESS",SharpnessMode	,0x00010001,    2
HKLM,"Software%SettingRegistryPath%\DSC\SHARPNESS",Sharpness		,0x00010001,   50
HKLM,"Software%SettingRegistryPath%\DSC\SHARPNESS",SupressUpbound	,0x00010001,   20
HKLM,"Software%SettingRegistryPath%\DSC\SHARPNESS",SupressLowbound	,0x00010001,  -20
HKLM,"Software%SettingRegistryPath%\DSC\SHARPNESS",Sharpness_dMu_x1000	,0x00010001,  500

;DSC.6 DSC\ColorProcess
HKLM,"Software%SettingRegistryPath%\DSC\COLORPROCESS",Hue		,0x00010001,    0
HKLM,"Software%SettingRegistryPath%\DSC\COLORPROCESS",Satu_x100		,0x00010001,  200
HKLM,"Software%SettingRegistryPath%\DSC\COLORPROCESS",ContrastGain_x100	,0x00010001,  100
HKLM,"Software%SettingRegistryPath%\DSC\COLORPROCESS",Brightness_add30	,0x00010001,   30 



[MARS.USBDCam.Addreg.DSExt]
HKCR,CLSID\%IAMPCCameraControl.CLSID%,,,%Plugin_IAMPCCameraControl%
HKCR,CLSID\%IAMPCCameraControl.CLSID%\InprocServer32,,,%Mars.Device.DShowExtPage%
HKCR,CLSID\%IAMPCCameraControl.CLSID%\InprocServer32,ThreadingModel,,Both
; This IID is aggregated for the filter given the CLSID of the property set
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%IAMPCCameraControl.CLSID%,,,%Plugin_IAMPCCameraControl%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%IAMPCCameraControl.CLSID%,IID,1,5b,b0,62,16,1b,fb,bc,4b,bc,1f,fd,de,ef,6b,63,b9

HKCR,CLSID\%PropPage_PCCameraControl.CLSID%,,,%PropPage_CameraControl%
HKCR,CLSID\%PropPage_PCCameraControl.CLSID%\InprocServer32,,,%Mars.Device.DShowExtPage%
HKCR,CLSID\%PropPage_PCCameraControl.CLSID%\InprocServer32,ThreadingModel,,Both
; Associate the property set with the above property page
HKLM,System\CurrentControlSet\Control\MediaSets\%IAMPCCameraControl.CLSID%\PropertyPages\%PropPage_PCCameraControl.CLSID%,,,%PropPage_PCCameraControl%



[MARS.USBDCam.CopyDrivers]
mr97310v.sys
stream.sys
;usbcamd.sys

[MARS.USBDCam.copytwain]
;mr310twn.ds,,,4
;mr310twn.dll,,,4

[MARS.USBDCam.copytwainIni]
;mr310twn.ini,,,4
;mr310twn.src,,,4

[MARS.USBDCam.CopyVfwExt]
mr310exv.dll,,,0x0004

[MARS.USBDCam.CopyDshowExt]
mr310exd.dll,,,0x0004

[MARS.USBDCam.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,MARS.USBDCam.Interface

[MARS.USBDCam.NTx86.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,MARS.USBDCam.Interface

[MARS.USBDCam.Interface]
AddReg=MARS.USBDCam.Intf.AddReg
         
[MARS.USBDCam.Intf.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%USB\VID_093a&PID_010e.DeviceDesc%
HKR,,ExtensionDLL,,%Mars.Device.VfwExtDLL%

[MARS.USBDCam.NTx86.Services]
AddService = %MarsUsbDevice%,0x00000002,MARS.USBDCam.ServiceInstall

[MARS.USBDCam.ServiceInstall]
DisplayName   = %USB\VID_093a&PID_010e.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\mr97310v.sys

[Strings]
ProxyVCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"

IAMPCCameraControl.CLSID = "{1662B05B-FB1B-4bbc-BC1F-FDDEEF6B63B9}"
PropPage_PCCameraControl.CLSID = "{A58C576B-3102-45ab-ABAF-32E591D967AC}"
Plugin_IAMPCCameraControl = "WDM Streaming IAMPCCameraControl Interface Handler"
PropPage_CameraControl = "PCCameraControl Property Page"

SERVICE_KERNEL_DRIVER=1
; PnP should use demand start
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1

;----------------
; Localizable
;----------------
CameraClassName="Camera device"
MSFT="MARS"
MarsMfg="MARS"
USB\VID_093a&PID_010e.DeviceDesc = "MR97310 VGA Dual Mode Camera"
Mars.Device.VfwExtDLL="mr310exv"
Mars.Device.DShowExtPage= "mr310exd.dll"
SettingRegistryPath = "\MARS\MR97310\VGA\SETTING"
MarsUsbDevice="MR97310_VGA_DUAL_CAMERA"