; Localized     11/22/2017 14:00 (GMT+08:00) 3.7.8.2  SPUVCbv2.inf 
; Video Capture Driver installation information 
; Copyright (c) 2011-2017 Sunplus Tech 
; Manufacturer: Sunplus Tech

[OEMInf]
VerifyMark="SunplusIT HP HD Webcam [Fixed]"

[Version]
signature="$CHICAGO$"
Class=Camera
ClassGuid={ca3e7ab9-b4c3-4ae6-8251-579ef933890f}
Provider=%ProviderName%
DriverVer=11/22/2017,3.7.8.2
CatalogFile=SPUVCB.cat

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
DefaultDestDir=11
CAMERA.CopyDrivers64=12

[SourceDisksNames]
1=%DiskName%,,,,

[SourceDisksFiles]
SPUVCbv64.sys=1

; =================== Table of content =========================

[Manufacturer]
%Chicony.MfgName%=Chicony.Section,NTamd64.10.0...16000

; =================== Sunplus ==================================

[Chicony.Section.NTamd64.10.0...16000]
%CAMERA.DeviceDesc%=SPUVCb.Device_x64,USB\VID_04F2&PID_B500&MI_00
%CAMERA.DeviceDesc%=SPUVCb.Device_x64,USB\VID_04F2&PID_B508&MI_00

;==========================================================================
; USB 2.0 Camera
;==========================================================================
[SPUVCB.Device_x64.ntamd64]
Include=    ks.inf,kscaptur.inf,ksfilter.inf,sti.inf,machine.inf 
Needs=      KS.Registration,KSCAPTUR.Registration.NT,PciD3ColdSupported  ;,SPUVCB.DSHEXT.Registration.NT
AddReg=     SPUVCB64.AddReg,SPUVCB_PROPERTY.AddReg
CopyFiles=  CAMERA.CopyDrivers64

SubClass=StillImage
DeviceType=3
DeviceSubType=0x1
Capabilities=0x00000031
DeviceData=CAMERA.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"

[CAMERA.DeviceData]
Server=local
UI DLL=sti.dll
UI Class ID={5d8ef5a3-ac13-11d2-a093-00c04f72dc3c}

; --------------------------------------------------------------

[SPUVCB64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DriverFullName64%
HKR,,PageOutWhenUnopened,3,00
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,HardwareConfig,1,1
HKR,,USDClass,,"{0527d1d0-88c2-11d2-82c7-00c04f8ec183}"
HKR,,OkToHibernate,3,01
HKR,,UvcFlags,0x00010001,0x00000010

[SPUVCB_PROPERTY.AddReg]
;Color Setting
HKR,VIDEOPROCAMP,"ApplyRegistryValues",0x10001,1
HKR,VIDEOPROCAMP,"AutoBandwidth",0x10001,1
HKR,VIDEOPROCAMP,"AutoExposal",0x10001,1
HKR,VIDEOPROCAMP,"AutoGain",0x10001,1
HKR,VIDEOPROCAMP,"AutoWhiteBalance",0x10001,1
HKR,VIDEOPROCAMP,"HFlip",0x10001,0
HKR,VIDEOPROCAMP,"VFlip",0x10001,0
HKR,VIDEOPROCAMP,"Bandwidth",0x10001,7
;HKR,VIDEOPROCAMP,"Exposal",0x10001,-6
HKR,VIDEOPROCAMP,"Gain",0x10001,0
;HKR,VIDEOPROCAMP,"Whitebalance",0x10001,0
;HKR,VIDEOPROCAMP,"BackLight",0x10001,0
HKR,VIDEOPROCAMP,"LowLight",0x10001,255
HKR,VIDEOPROCAMP,"Flicker_Flag",0x10001,0
HKR,VIDEOPROCAMP,"Flicker_Mode",0x10001,2
HKR,VIDEOPROCAMP,"ZoomScale",0x10001,10
HKR,VIDEOPROCAMP,"PanUpDownSize",0x10001,0
HKR,VIDEOPROCAMP,"PanLeftRightSize",0x10001,0
HKR,VIDEOPROCAMP,"FlickerSetValue",0x10001,0
HKR,VIDEOPROCAMP,"FlickerDetectValue",0x10001,2
;HKR,VIDEOPROCAMP,"PowerLine_Frequency",0x10001,1

[SPUVCB.Device_x64.ntamd64.Services]
AddService = %DriverName%,0x00000002,SPUVCB64.ServiceInstall

[SPUVCB64.ServiceInstall]
DisplayName   = %SPUVCb.ServiceName%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%  ;2002,4,11
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\System32\Drivers\%DriverFullName64%
AddReg = SPUVCB.ServiceAddReg

[SPUVCB.ServiceAddReg]
HKR,"Param","ProductName",,%SPUVCb.ProductName%
HKR,"Param","EnableSS",0x10001,1		;Selective suspend switch. 0: disable, others: enable

[SPUVCB.Device_x64.ntamd64.HW]
Include=machine.inf
Needs=PciD3ColdSupported.HW
AddReg = SPUVCB.HW.AddReg

[SPUVCB.HW.AddReg]
HKR,,"FriendlyName",,%SPUVCB.Capture%

[SPUVCB.Device_x64.ntamd64.Interfaces]
include     = usbvideo.inf
needs       = USBVideo.Interfaces

; =================== Global ==================================

[CAMERA.CopyDrivers64]
SPUVCBv64.sys

;---------------------------------------------------------------

[Strings]
ProviderName=    "SunplusIT"
Chicony.MfgName= "Chicony"
Foxlink.MfgName= "Foxlink"
DriverName=	 "SPUVCbv"
DriverFullName=  "SPUVCbv.sys"
DriverFullName64=  "SPUVCbv64.sys"
DiskName=        "USB WebCam Driver Install Disk"

;Dshext
PropPage_CustomCameraProp=   "Custom Camera Property Page"
PropPage_CustomVideoSet= "Custom Video setting Page"

;Non-Localizable
SERVICE_KERNEL_DRIVER=1
SERVICE_AUTO_START=2
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1
ProxyVCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO="{6994AD05-93EF-11D0-A3CC-00A0C9223196}"

CAMERA.DextDLLName= "VCamPPage.dll"
CAMERA.DextDLLName_x64= "VCamPPage_x64.dll"

CAMERA.GUID_AX4= "{1705F4AB-AF4A-41dc-9FF5-D774C4987E0E}"	;Videoset UI
CAMERA.GUID_AX6= "{BF9783AD-5FE4-4e1f-A31E-34F71B8FB2A2}"	;Amp

;---------------------------------------------------------------
CAMERA.DeviceDesc=  "HP 2.0MP High Definition Webcam"
SPUVCb.ServiceName = "SPUVCb Driver Service"
SPUVCb.Capture=	    "HP 2.0MP High Definition Webcam"
SPUVCb.ProductName= "Sunplus SPUVCb"
