;---------------------------------------------------------------------------
; P1080VID.INF -- Creative Camera Model Number P1080 installation
; Copyright (c) 2002-2003 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------

[Version]
LayoutFile= Layout.inf,Layout1.inf,Layout2.inf
Signature=  "$CHICAGO$"
Class=      Image
ClassGUID=  {6bdd1fc6-810f-11d0-bec7-08002be2092f}
CatalogFile=Pd1080.cat
Provider=   %szMfg%
DriverVer=  07/14/2003,%szVersion%

[ControlFlags]
ExcludeFromSelect=*
InteractiveInstall=USB\VID_041E&PID_4015&MI_00

[Manufacturer]
%szMfg%=Creative

[DestinationDirs]
DefaultDestDir=11               ; LDID_SYS
CTL.CopyUserSysFiles=11
CTL.CopyUserSysFiles.SYS=11
CTL.CopyKernDrivers=10,System32\Drivers
CTL.CopyKernDrivers.SYS=10,System32\Drivers
CTL.W98.CopyWinFiles=10
CTL.W2K.CopyWinFiles=10
CTL.CopyCoInstFile=11

[Creative]
%szDeviceDesc%=  CtlCam.Dev,USB\VID_041E&PID_4015&MI_00

[CtlCam.Dev]
DriverVer=     07/14/2003,%szVersion%
Include=       Ks.inf,Kscaptur.inf,Ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
AddReg=        CtlCam.AddReg,CtlCam.Vfw.AddReg,CtlCam.Uns.AddReg,CtlCam.Setup.AddReg.W98,CtlCam.More.AddReg.W98
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CTL.CopyKernDrivers,CTL.CopyKernDrivers.SYS,CTL.W98.CopyWinFiles,CTL.CopyUserSysFiles,CTL.CopyUserSysFiles.SYS

[CtlCam.Dev.NT]
Include=       Ks.inf,Kscaptur.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
AddReg=        CtlCam.AddReg,CtlCam.Vfw.AddReg.NT,CtlCam.Uns.AddReg.NT
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CTL.CopyKernDrivers,CTL.W2K.CopyWinFiles,CTL.CopyUserSysFiles

[CtlCam.Dev.NT.CoInstallers]
AddReg=     CtlCam.CoInst.AddReg
CopyFiles=  CTL.CopyCoInstFile

[CtlCam.CoInst.AddReg]
HKR,,CoInstallers32,0x00010000,"%szInsPlugIn%,CoInstallerEntryPoint"

[CtlCam.Setup.AddReg.W98]
; ** For device setup **
HKLM,%MSRunOnce%,%szDeviceSetup%,,"RunDLL32.exe %szInsPlugIn%,RunDLL32EP 514"

[CtlCam.Uns.AddReg]
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -plugin %szInsPlugIn% -pluginres %szInsPlugInRes% -filelog"

[CtlCam.Uns.AddReg.NT]
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -unsext NT -plugin %szInsPlugIn% -pluginres %szInsPlugInRes% -filelog"

[CtlCam.AddReg]
; ** Driver package version **
HKLM,%szConfigRegistry%,"Version",0,%szVersion%

; ** Device driver **
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szVideoDriver%
HKR,,PageOutWhenUnopened,3,00 ; required for STI support
;HKR,,PowerDownWhenUnopened,3,01
HKR,,UseBulkMode,1,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,PropertySetsID,3,2

HKR,,CtProductName,,%szProductName%       ; Creative

HKR,,WdmDeviceDesc,,%szDeviceDesc%

; This allows TWAIN Driver to support this device
HKLM,"Software\Endpoints\TWAIN Data Source\1.0\Cameras\0x041e4015"
; VfW Extension data for IPL
HKLM,%szConfigRegistry%,"VfW Extension",0,%szHyundaiISP.GUID%
HKLM,%szConfigRegistry%,"Downstream IID",0,%szVfWExt.GUID%

; for ISP
HKLM,%szConfigRegistry%,"Video Prefilter",0,"60"
HKLM,%szConfigRegistry%,"Video Prefilter Compressed",0,"60"
HKLM,%szConfigRegistry%,"Imager Override",0,"1"
HKLM,%szConfigRegistry%,"Bayer Mirror",0,"1"
HKLM,%szConfigRegistry%,"Bayer Start",0,"0"
HKLM,%szConfigRegistry%,"Bayer Invert",0,"1"
HKLM,%szConfigRegistry%,"Video Offset Bayer",0,"0"
HKLM,%szConfigRegistry%,"Video Gamma Select",0,"1"
HKLM,%szConfigRegistry%,"Video Saturation Default",0,"512"

; if last digit is '1', native compressed support (AJPG) NOT available
HKR,,DisableNativeCompressedSupport,1,1

; if last digit is '1' then include ABYR format (FOR ENGINEERING DEBUGGING ONLY)
HKR,,IncludeABYR,1,0

;the last digit overrides the driver's default format according to following table:
; RGB24 = 0
; I420  = 1
; ABYR  = 6
; JBYR  = 16
; AJPG  = 17
; LBYR  = 18
HKR,,DefaultFormat,3,1

;these allow the default width/height to be configured (MUST be a supported resolution)
HKR,,DefaultWidth,3,0x40,0x01,0,0
HKR,,DefaultHeight,3,0xf0,0,0,0

;if last digit is '1', zoom is not available and smaller resolutions are not cropped
HKR,,DisableZoom,1,1

;if last digit is '1', these disable corresponding function (only valid if zoom IS AVAILABLE)
HKR,,DisablePan,1,1
HKR,,DisableTilt,1,1

;last number overrides driver's default quality level (1..5)
HKR,,DefaultQuality,1,5

; for STI event support
HKR,,EventsWhileInactive,3,0x0001
HKR,,SupportSTI,3,0x0001

; ** Property pages registration **

; ** Stream format Property Page
HKCR,CLSID\%szCustomStreamConfig.GUID%,,,%szPropPage_CustomStreamConfig%
HKCR,CLSID\%szCustomStreamConfig.GUID%\InprocServer32,,,%szExtPageDLL%
HKCR,CLSID\%szCustomStreamConfig.GUID%\InprocServer32,ThreadingModel,,Both

; ** Custom Banding Property Page
HKCR,CLSID\%szCustomAdvSetting.GUID%,,,%szPropPage_CustomAdvSetting%
HKCR,CLSID\%szCustomAdvSetting.GUID%\InprocServer32,,,%szExtPageDLL%
HKCR,CLSID\%szCustomAdvSetting.GUID%\InprocServer32,ThreadingModel,,Both

; ** Custom Device Setting Property Page
HKCR,CLSID\%szCustomDevSetting.GUID%,,,%szPropPage_CustomDevSetting%
HKCR,CLSID\%szCustomDevSetting.GUID%\InprocServer32,,,%szExtPageDLL%
HKCR,CLSID\%szCustomDevSetting.GUID%\InprocServer32,ThreadingModel,,Both

; ** For Add/Remove Programs applet **
HKLM,%MSUninstall%\%szUninstall%,"DisplayName",0,"%szUninstallDisplay% (%szVersion%)"

[CtlCam.Vfw.AddReg]
; ** For Video For Window driver **
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%,"Description",,%szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%,"FriendlyName",,%szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%,"Driver",,"%szVfwDriverBase%.drv"

[CtlCam.Vfw.AddReg.NT]
; ** For Video For Window driver **
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%,"Description",,%szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%,"FriendlyName",,%szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%szVfwKey%,"Driver",,"%szVfwDriverBase%.dll"

[CtlCam.Dev.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,CtlCam.Interface

[CtlCam.Dev.NT.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,CtlCam.Interface

[CtlCam.Interface]
AddReg=CtlCam.Intf.AddReg
         
[CtlCam.Intf.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%szDeviceDesc%
HKR,,ExtensionDLL,,%szExtPageDLL%

; Overrides the standard StreamConfig property page with custom one.
HKR,PageAliases,"{71F96467-78F3-11d0-A18C-00A0C9118956}",1, 0xc7,0x02,0xe6,0x99,0x48,0x1f,0x5c,0x44,0xb8,0x6e,0xa9,0x74,0xfe,0x02,0x8b,0x04
; Overrides the standard VideoProcAmp property page with custom one.
HKR,PageAliases,"{71F96464-78F3-11d0-A18C-00A0C9118956}",1, 0xf9,0x55,0x7c,0x2c,0x40,0x84,0xc4,0x40,0x95,0x46,0xee,0x32,0x52,0x29,0x43,0xda
; Overrides the standard CameraControl property page with custom one.
HKR,PageAliases,"{71F96465-78F3-11d0-A18C-00A0C9118956}",1, 0xe4,0x40,0x8a,0x5c,0xf3,0x29,0x1e,0x4f,0x8a,0x70,0x80,0xfb,0xfd,0xaa,0x9c,0x4f

; IAMVideoCompression - Install this as a static interface on our video capture pin
HKR,PinFactory\0\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}

[CtlCam.Dev.NT.Services]
AddService= %szVideoServiceName%,0x00000002,CtlCam.ServiceInstall

[CtlCam.ServiceInstall]
DisplayName=   %szDeviceDesc%
ServiceType=   %SERVICE_KERNEL_DRIVER%
StartType=     %SERVICE_DEMAND_START%
ErrorControl=  %SERVICE_ERROR_NORMAL%
ServiceBinary= %12%\%szVideoDriver%


[CtlCam.UpdateIni]
System.ini,drivers32,,"VIDC.I420=msh263.drv",0
System.ini,drivers32,,"VIDC.UV12=p1080dex.ax",0
System.ini,drivers,,"MsVideo.%szVfwKey%=%szVfwDriverBase%.drv",0  ; Needed for Win98


; ----------------------------- FILES COPY ---------------------------------

[CTL.CopyKernDrivers]
P1080vid.sys
P1080cam.sys

[CTL.CopyKernDrivers.SYS] ; Required in Win98
Stream.sys        ; from Microsoft

[CTL.CopyUserSysFiles]
P1080Dex.ax       ; from Creative
P1080Pin.dll      ; from Creative
P1080Pin.crl      ; from Creative
P1080Hwx.dll      ; from Creative
P1080Foa.dll      ; from Creative
P1080Vfw.dll      ; from Creative
P1080Vfw.drv      ; from Creative
P1080Ext.dll      ; from Creative
P1080Ext.crl      ; from Creative
P1080Img.dll      ; from Creative
P1080Cfg.crl      ; from Creative
CtRegApp.dll      ; from Creative
CtCamMgr.dll      ; from Creative

[CTL.CopyUserSysFiles.SYS]
Msh263.drv        ; from Microsoft

[CTL.W2K.CopyWinFiles]
CtDrvIns.exe      ; from Creative
P1080Cfg.exe      ; from Creative
PD1080.uns        ; from Creative

[CTL.W98.CopyWinFiles]
CtDrvIns.exe      ; from Creative
P1080Cfg.exe      ; from Creative
VfwUpd.exe        ; from Creative
PD1080.uns        ; from Creative

[CTL.CopyCoInstFile]


[SourceDisksNames]
1=%szDiskName%,P1080vid.inf,,

[SourceDisksFiles]
CtDrvIns.exe =1,,
CtCamMgr.dll =1,,
CtRegApp.dll =1,,
P1080vid.sys =1,,
P1080cam.sys =1,,
P1080Dex.ax  =1,,
P1080Dex.crl =1,,
P1080pin.dll =1,,
P1080pin.crl =1,,
P1080Hwx.dll =1,,
P1080Foa.dll =1,,
P1080Img.dll =1,,
P1080vfw.dll =1,,
P1080Vfw.drv =1,,
P1080Ext.dll =1,,
P1080Ext.crl =1,,
P1080Cfg.exe =1,,
P1080Cfg.crl =1,,
VfwUpd.exe   =1,,
PD1080.uns   =1,,

;-----------------------  STRINGS DEFINITION ---------------------------------

[Strings]
;--------------------------------
; System related. Do not change.
;--------------------------------
; ** Note: only register value is case sensitive, key is not. **
ProxyVCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
SERVICE_KERNEL_DRIVER=1

; PnP should use demand start
SERVICE_DEMAND_START=3
SERVICE_AUTO_START=2
SERVICE_ERROR_NORMAL=1

MSMediaResMSVideo      ="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSRun                  ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSRunOnce              ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSUninstall            ="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
MSMediaSets            ="System\CurrentControlSet\Control\MediaSets"
MSMediaInterfaces      ="System\CurrentControlSet\Control\MediaInterfaces"
MSMediaCategories      ="System\CurrentControlSet\Control\MediaCategories"
MSDefStreamConfig.GUID ="{71F96467-78F3-11d0-A18C-00A0C9118956}"
MSVideoCapturePin.GUID ="{FB6C4281-0353-11d1-905F-0000C0CC16BA}"

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szMfg             ="Creative Labs"
szDeviceDesc      ="Creative CardCam Value (Video)"

szProductName     ="Creative CardCam Value"
szConfigRegistry  ="Software\Creative Tech\Dual Mode Cameras\PD1080"
szDeviceSetup     ="Creative CardCam Value Setup"
szDiskName        ="Creative CardCam Value Driver Disk"
szUninstall       ="Creative PD1080"
szUninstallDisplay="Creative CardCam Value Driver"
szVfwDeviceDesc   ="Creative CardCam Value (VFW)"
szHALSvcDeviceDesc="Creative PD1080 HAL Service"
szVideoServiceName="P1080VID"
szVfwKey          ="P1080VFW"

szInsPlugIn       ="P1080pin.dll"
szInsPlugInRes    ="P1080pin.crl"
szExtensionDLL    ="P1080Ext.dll"
szVideoDriver     ="P1080Vid.sys"
szVfwDriverBase   ="P1080Vfw"
szUNSScript       ="PD1080.uns"

; Custom Property pages
szExtPageDLL                   ="P1080Ext.dll"
szPlugIn_CustomCameraProp      ="PD1080 Custom Camera Interface handler"
szPropPage_CustomDevSetting    ="PD1080 Custom Device Setting Property Page"
szPropPage_CustomAdvSetting    ="PD1080 Custom Advanced Setting Property Page"
szPropPage_CustomStreamConfig  ="PD1080 Custom Stream Format Property Page"
szCustomInterface.GUID         ="{0590D4C0-B6D6-11d2-9D67-00A0CC242499}"
szCustomStreamConfig.GUID      ="{99E602C7-1F48-445c-B86E-A974FE028B04}"
szCustomDevSetting.GUID        ="{2C7C55F9-8440-40c4-9546-EE32522943DA}"
szCustomAdvSetting.GUID        ="{5C8A40E4-29F3-4f1e-8A70-80FBFDAA9C4F}"
szHyundaiISP.GUID              ="{90334840-CC22-11d2-9D67-00A0CC242499}"
szVfWExt.GUID                  ="{A33E54E0-1504-11d3-9D6A-00104B6DC9C2}"

;----------------------
; Version information
;----------------------
szVersion         =1.02.01.1024  ; Vendor build 02-10-24
