;////////////////////////////////////////////////////////////////////////////////
;//
;//                           (C) Pinnacle Systems, Inc. 2004
;//      All rights are reserved.  Reproduction in whole or in part is prohibited
;//      without the written consent of the copyright owner.
;//
;//      Pinnacle Systems, Inc. reserves the right to make changes without notice at any time.
;//      Pinnacle Systems, Inc. makes no warranty, expressed, implied or statutory, including
;//      but not limited to any implied warranty of merchantibility of fitness
;//      for any particular purpose, or that the use will not infringe any
;//      third party patent, copyright or trademark.
;//      Pinnacle Systems, Inc. must not be liable for any loss or damage arising from its use.
;//
;////////////////////////////////////////////////////////////////////////////////

;----------------------------------------------------------------------------------------------------
;
; USB2Video.INF  -- This file contains installation information for
;                   "Pinnacle PCTV USB2 Video Device"
;
; Supported OS:     Microsoft Windows XP
;
; Copyright (c) 2004 Pinnacle Systems
;
; Driverversion: 1.0406.0.0
;
;----------------------------------------------------------------------------------------------------

[Version]
signature   = "$Windows NT$"
Class       = MEDIA
ClassGUID   = %MediaClassGUID%
Provider    = %Vendor%
CatalogFile = USB2.cat
DriverVer   = 04/06/2004, 1.0406.0.0

[ControlFlags]
ExcludeFromSelect = *

[SourceDisksNames]
1 = %DiskLabel%,emDevice.sys,,

[SourceDisksFiles]
emProp.ax    = 1
emVFW.dll    = 1
emYUV.dll    = 1
emUSD.dll    = 1
emScan.sys   = 1
emFilter.sys = 1
emDevice.sys = 1
emStream.sys = 1
emTwain.ds   = 1
PCLECoInst.dll = 1

[DestinationDirs]
DefaultDestDir = 11
CAP.CopyDLL    = 11
CAP.CopyEXE    = 10
CAP.CopySYS    = 10,system32\drivers
CAP.CopyTwain  = 10,twain_32\USB2800
CoInstaller.CopyFiles = 11

[Manufacturer]
%Vendor% = Models

[Models]
%USB2821.DeviceDesc% = PCTVUSB2,USB\VID_2304&PID_0208&MI_00

;---------------------  PCTV USB2  --------------------

[PCTVUSB2.NT]
Include       = ks.inf, kscaptur.inf, ksfilter.inf
Needs         = KS.Registration, KSCAPTUR.Registration.NT
AddReg        = CAP.AddReg, OEM.AddReg, OEM.Sensor.AddReg, OEM.Decoder.AddReg, OEM.Common.AddReg
CopyFiles     = CAP.CopySYS, CAP.CopyDLL, CAP.CopyEXE, CAP.CopyTwain
CopyINF       = USB2Audio.INF
UpdateInis    = CAP.UpdateIni

SubClass      = StillImage
DeviceType    = 2
DeviceSubType = 0

Capabilities  = 1
Events        = STI.Events
ICMProfiles   = "sRGB Color Space Profile.icm"

[PCTVUSB2.NT.CoInstallers]
CopyFiles = CoInstaller.CopyFiles
AddReg = CoInstaller.AddReg

;------------ H W ------------
[PCTVUSB2.NT.HW]
AddReg = InstFilter2821NT

[InstFilter2821NT]
HKR,,"UpperFilters",0x00010000,"ScanUSBEMPIA"
HKR,,"LowerFilters",0x00010000,"FiltUSBEMPIA"


;---- I N T E R F A C E S ----
[PCTVUSB2.NT.Interfaces]
AddInterface = %KSCATEGORY_VIDEO%,  GLOBAL,Capture2821.Interface
AddInterface = %KSCATEGORY_CAPTURE%,GLOBAL,Capture2821.Interface
AddInterface = %KSCATEGORY_TVTUNER%,GLOBAL,TVTuner2821.Interface
AddInterface = %KSCATEGORY_TVAUDIO%,GLOBAL,TVAudio2821.Interface
AddInterface = %KSCATEGORY_XBAR%,   GLOBAL,   Xbar2821.Interface


[Capture2821.Interface]
AddReg = Capture.2821.AddReg

[TVTuner2821.Interface]
AddReg = TVTuner.2821.AddReg

[TVAudio2821.Interface]
AddReg = TVAudio.2821.AddReg

[Xbar2821.Interface]
AddReg = Xbar.2821.AddReg


[Capture.2821.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,ExtensionDLL,,"emVFW.dll"
HKR,,FriendlyName,,%USB2821.DeviceDesc%
HKLM,%Twain.Key%,"DSName",0,%USB2821.DeviceDesc%

; IAMVideoCompression installed as static interface on both output pins
HKR,PinFactory\0\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}
HKR,PinFactory\1\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}

[TVTuner.2821.AddReg]
HKR,,CLSID,,%ProxyTVTuner.CLSID%
HKR,,FriendlyName,,%TVTuner.2821.Name%
    
[TVAudio.2821.AddReg]
HKR,,CLSID,,%ProxyTVAudio.CLSID%
HKR,,FriendlyName,,%TVAudio.2821.Name%

[Xbar.2821.AddReg]
HKR,,CLSID,,%ProxyXbar.CLSID%
HKR,,FriendlyName,,%Xbar.2821.Name%

[CoInstaller.AddReg]
HKR,,CoInstallers32,0x00010000,"PCLECoInst.dll,TronPostInstall"

;------ S E R V I C E S ------

[PCTVUSB2.NT.Services]
AddService = DCamUSBEMPIA,0x00000002,DriverInstall2821
AddService = ScanUSBEMPIA,0x00000000,UpperInstall2821
AddService = FiltUSBEMPIA,0x00000000,LowerInstall2821

[DriverInstall2821]
DisplayName   = %USB2821.DeviceDesc%
ServiceType   = 1		;SERVICE_KERNEL_DRIVER
StartType     = 3		;SERVICE_DEMAND_START
ErrorControl  = 1		;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\emDevice.sys

[UpperInstall2821]
DisplayName   = %USBscan.DeviceDesc%
ServiceType   = 1		;SERVICE_KERNEL_DRIVER
StartType     = 3		;SERVICE_DEMAND_START
ErrorControl  = 1		;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\emScan.sys

[LowerInstall2821]
DisplayName   = %emLower.DeviceDesc%
ServiceType   = 1		;SERVICE_KERNEL_DRIVER
StartType     = 3		;SERVICE_DEMAND_START
ErrorControl  = 1		;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\emFilter.sys





;---------------------  C O M M O N  ----------------------

[CAP.AddReg]
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,emDevice.sys
HKR,,OkToHibernate,3,1
HKR,,DontSuspendIfStreamsAreRunning,3,1 
HKR,,PageOutWhenUnopened,3,0
HKR,,PowerDownWhenUnopened,3,0

; ICustomCameraProp
HKCR,CLSID\{BE0AB5D2-3B9A-4e42-A05E-4A178B566C7C},,,%CustomPlugIn%
HKCR,CLSID\{BE0AB5D2-3B9A-4e42-A05E-4A178B566C7C}\InprocServer32,,,emProp.ax
HKCR,CLSID\{BE0AB5D2-3B9A-4e42-A05E-4A178B566C7C}\InprocServer32,ThreadingModel,,Both
; This IID is aggregated for the filter given the CLSID of the property set
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{BE0AB5D2-3B9A-4e42-A05E-4A178B566C7C},,,%CustomPlugIn%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{BE0AB5D2-3B9A-4e42-A05E-4A178B566C7C},IID,1,D2,B5,0A,BE, 9a,3b, 42,4e, 0xa0, 0x5e, 0x4a, 0x17, 0x8b, 0x56, 0x6c, 0x7c

; CustomCamera Property Page
HKCR,CLSID\{7B37EDC5-0108-49b9-9CBC-46E826B23F7B},,,%CustomPropPage%
HKCR,CLSID\{7B37EDC5-0108-49b9-9CBC-46E826B23F7B}\InprocServer32,,,emProp.ax
HKCR,CLSID\{7B37EDC5-0108-49b9-9CBC-46E826B23F7B}\InprocServer32,ThreadingModel,,Both

; Associate property set with property page
HKLM,System\CurrentControlSet\Control\MediaSets\{BE0AB5D2-3B9A-4e42-A05E-4A178B566C7C}\PropertyPages\{7B37EDC5-0108-49b9-9CBC-46E826B23F7B},,,%CustomPropPage%

; Still Image
HKR,,USDClass,,"{95220838-61E0-47c0-B996-8461662A1598}"
HKCR,CLSID\{95220838-61E0-47c0-B996-8461662A1598} ,,,%StillUSD%
HKCR,CLSID\{95220838-61E0-47c0-B996-8461662A1598}\InProcServer32,,,%11%\emUSD.dll
HKCR,CLSID\{95220838-61E0-47c0-B996-8461662A1598}\InProcServer32,ThreadingModel,,"Both"


[CAP.CopyDLL]
emUSD.dll
emVFW.dll
emYUV.dll
emProp.ax

[CAP.CopySYS]
emDevice.sys
emStream.sys
emScan.sys
emFilter.sys

[CAP.CopyTwain]
emTwain.ds

[CAP.CopyEXE]

[CAP.UpdateIni]
system.ini,drivers32,,"VIDC.I420=emYUV.dll"
system.ini,drivers32,,"VIDC.YUY2=emYUV.dll"

[STI.Events]
NewPicture = "%NewPicture%",{AF715AB9-8475-46da-9417-7E0BC349654E},*
SnapButton = "%SnapButton%",{FA69D8B1-D989-47d2-A5D2-A6635246098F},*

[CoInstaller.CopyFiles]
PCLECoInst.dll,,,0x00002000

;-------------------------  O E M  ------------------------

; For hardware designs without EEPROM:  All OEM configuration data 
; in this section are active.
;
; For hardware designs with EEPROM:  Only FixupOWC and OemID are
; active. All other configration data in this section will have 
; no effects. In other words, all configuration data other than
; FixupOWC and OemID are provided by EEPROM.
;
; OemID is the vendor ID from EEPROM, but can be overridden here.
;
[OEM.AddReg]
HKR,settings\OEMSettings,FixUpOWC,0x00010001,12
;;;HKR,settings\OEMSettings,OemID,0x00010001,0
;;;HKR,settings\OEMSettings,PowerControl,0x00010001,0

; Board Configurations
HKR,settings\OEMSettings,Composite,0x00010001,1             ; Composite Input
HKR,settings\OEMSettings,SVideo,0x00010001,1                ; S-Video Input
HKR,settings\OEMSettings,SonyOnBoard,0x00010001,0           ; Sony Modules    

; Driver Configurations
HKR,settings\OEMSettings,StrictI2cAccess,0x00010001,0       ; 0=Normal, 1=Strict
HKR,settings\OEMSettings,VideoSwitchMode,0x00010001,1       ; 0=Freeze, 1=Blackout
HKR,settings\OEMSettings,EnableSquarePixel,0x00010001,1     ; 1=enabled
HKR,settings\OEMSettings,Enable704,0x00010001,0             ; 1=enabled
HKR,settings\OEMSettings,EnableUSB1CMOS640,0x00010001,1     ; 1=enabled
HKR,settings\OEMSettings,FixupDecoderStd,0x00010001,1       ; 1=enabled
HKR,settings\OEMSettings,GPIObyAP,0x00010001,0              ;
HKR,settings\OEMSettings,TVTuneByAP,0x00010001,1            ;

; OEM Devices Accessed from Applications Directly.
HKR,settings\OEMSettings,Oem0I2C,0x00010001,0x60
HKR,settings\OEMSettings,Oem0Type,0x00010001,2
HKR,settings\OEMSettings,Oem1I2C,0x00010001,0x60
HKR,settings\OEMSettings,Oem1Type,0x00010001,2
HKR,settings\OEMSettings,Oem2I2C,0x00010001,0x60
HKR,settings\OEMSettings,Oem2Type,0x00010001,2
HKR,settings\OEMSettings,Oem3I2C,0x00010001,0x60
HKR,settings\OEMSettings,Oem3Type,0x00010001,2

; Tuner CFG & Overrides
HKR,settings\OEMSettings,TunerIDBase,0x00010001,0
HKR,settings\OEMSettings,TunerID7,0x00010001,21             ; CFG7 = SAM9082

; USB/Ext Audio Mux - 2820/2840 Only
;;;HKR,settings\OEMSettings,USBAudioMux,0x00010001,1
;;;HKR,settings\OEMSettings,ExtAudioMux,0x00010001,2

; Default Video ProcAmp for Sensor-only or Decoder-only devices.
HKR,settings\OEMSettings,DefaultProcAmp,0x00010001,0x80204020
HKR,settings\OEMSettings,DefaultSharpness,0x00010001,2
HKR,settings\OEMSettings,DefaultGamma,0x00010001,32


; Driver Defaults:
;
; The following 3 sections provide driver defaults when EEPROM
; is not present.
;
; If EEPROM is present, these driver defaults should be commented out.
;
[OEM.Common.AddReg]
;;;HKR,settings\CommonProperties,Optimization,0x00010001,1     ; 1=ISO,  2=Bulk


[OEM.Sensor.AddReg]
;;;HKR,settings\SensorProperties,LightFreq,0x00010001,0        ; 0=60Hz, 1=50Hz


[OEM.Decoder.AddReg]
;;;HKR,settings\DecoderProperties,VideoStandard,0x00010001,1   ; 1=NTSC, 0x10=PAL_B, 0x40000=SECAM_L
;;;HKR,settings\DecoderProperties,Deinterlace,  0x00010001,1   ; 1=Weave, 2=Bob
;;;HKR,settings\DecoderProperties,VCRMask,      0x00010001,3   ; # of lines masked out
;;;HKR,settings\DecoderProperties,MaskColor,    0x00010001,0   ; 0=Gray, 1=Black



;--------------------- S T R I N G S -----------------------

[Strings]
;---------------
;Non-Localizable
;---------------
ImageClassGUID     = "{6bdd1fc6-810f-11d0-bec7-08002be2092f}"
MediaClassGUID     = "{4d36e96c-e325-11ce-bfc1-08002be10318}"
KSCATEGORY_CAPTURE = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO   = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_TVTUNER = "{a799a800-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_TVAUDIO = "{a799a802-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_XBAR    = "{a799a801-a46d-11d0-a18c-00a02401dcd4}"
ProxyVCap.CLSID    = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
ProxyTVTuner.CLSID = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"
ProxyTVAudio.CLSID = "{71F96462-78F3-11d0-A18C-00A0C9118956}"
ProxyXbar.CLSID    = "{71F96460-78F3-11d0-A18C-00A0C9118956}"
Twain.Key          = "Software\USB2800\TwainDS"
CustomPlugIn       = "emProp Custom Interface"
CustomPropPage     = "emProp Custom Property Page"
StillAPP           = "USB Still Image APP"
StillUSD           = "USB Still Image USD"

Run 			   = "Software\Microsoft\Windows\CurrentVersion\Run"
;---------------
;Localizable
;---------------
Vendor             = "Pinnacle Systems"
DiskLabel          = "PCTV USB2 Video Driver Disk"
NewPicture         = "New Picture Requested"
SnapButton         = "Snapshot Button Pressed"
USBscan.DeviceDesc = "USB Still Image Capture Device"
emLower.DeviceDesc = "USB Device Lower Filter"

USB2821.DeviceDesc = "PCTV USB2 2821 Capture"
TVTuner.2821.Name  = "PCTV USB2 2821 TVTuner"
TVAudio.2821.Name  = "PCTV USB2 2821 TVAudio"
Xbar.2821.Name     = "PCTV USB2 2821 Crossbar"
