;------------------------------------------------------------------
; 
;   EMPIA.INF -- This file contains installation information
;                for eMPIA USB 2.0 Video Processors:  EM2800
;                and EM2801.
;
;
;   This installation is for Windows 98SE, ME, 2000, and XP.
;
;   Copyright (C) eMPIA Technology, Inc.  2002-2003
;
;------------------------------------------------------------------

[Version]
LayoutFile = Layout.inf, Layout1.inf, Layout2.inf
signature  = "$CHICAGO$"
Class      = Image
ClassGUID  = {6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider   = %Vendor%
DriverVer  = 12/05/2003, 0.99.1205.1

[ControlFlags]
ExcludeFromSelect = *

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

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

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

[Manufacturer]
%Vendor% = Models

[Models]
%USB2800.DeviceDesc% = USB2800,USB\VID_EB1A&PID_2800
%USB2801.DeviceDesc% = USB2801,USB\VID_EB1A&PID_2801&MI_00



;---------------------  U S B 2 8 0 0  --------------------

[USB2800]
Include       = ks.inf, kscaptur.inf
Needs         = KS.Registration, KSCAPTUR.Registration
AddReg        = CAP.AddReg, OEM.AddReg, OEM.Sensor.AddReg, OEM.Decoder.AddReg
CopyFiles     = CAP.CopySYS, CAP.CopyDLL, CAP.CopyEXE, CAP.CopyTwain
UpdateInis    = CAP.UpdateIni
UninstallSection = CAP.Uninstall

SubClass      = StillImage
DeviceType    = 2
DeviceSubType = 0
Capabilities  = 1
Events        = STI.Events
ICMProfiles   = "sRGB Color Space Profile.icm"


[USB2800.NT]
Include       = ks.inf, kscaptur.inf
Needs         = KS.Registration, KSCAPTUR.Registration.NT
AddReg        = CAP.AddReg, OEM.AddReg, OEM.Sensor.AddReg, OEM.Decoder.AddReg
CopyFiles     = CAP.CopySYS, CAP.CopyDLL, CAP.CopyEXE, CAP.CopyTwain
UpdateInis    = CAP.UpdateIni
UninstallSection = CAP.Uninstall

SubClass      = StillImage
DeviceType    = 2
DeviceSubType = 0
Capabilities  = 1
Events        = STI.Events
ICMProfiles   = "sRGB Color Space Profile.icm"


;------------ H W ------------

[USB2800.HW]
AddReg = InstFilter2800

[InstFilter2800]
HKR,,UpperFilters,0,"emScan.sys"


[USB2800.NT.HW]
AddReg = InstFilter2800NT

[InstFilter2800NT]
HKR,,"UpperFilters",0x00010000,"ScanUSBEMPIA"


;---- I N T E R F A C E S ----

[USB2800.Interfaces]
AddInterface = %KSCATEGORY_VIDEO%,  GLOBAL,Capture2800.Interface
AddInterface = %KSCATEGORY_CAPTURE%,GLOBAL,Capture2800.Interface
AddInterface = %KSCATEGORY_TVTUNER%,GLOBAL,TVTuner2800.Interface
AddInterface = %KSCATEGORY_TVAUDIO%,GLOBAL,TVAudio2800.Interface
AddInterface = %KSCATEGORY_XBAR%,   GLOBAL,   Xbar2800.Interface

[USB2800.NT.Interfaces]
AddInterface = %KSCATEGORY_VIDEO%,  GLOBAL,Capture2800.Interface
AddInterface = %KSCATEGORY_CAPTURE%,GLOBAL,Capture2800.Interface
AddInterface = %KSCATEGORY_TVTUNER%,GLOBAL,TVTuner2800.Interface
AddInterface = %KSCATEGORY_TVAUDIO%,GLOBAL,TVAudio2800.Interface
AddInterface = %KSCATEGORY_XBAR%,   GLOBAL,   Xbar2800.Interface


[Capture2800.Interface]
AddReg = Capture.2800.AddReg

[TVTuner2800.Interface]
AddReg = TVTuner.2800.AddReg

[TVAudio2800.Interface]
AddReg = TVAudio.2800.AddReg

[Xbar2800.Interface]
AddReg = Xbar.2800.AddReg


[Capture.2800.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,ExtensionDLL,,"emVFW.dll"
HKR,,FriendlyName,,%USB2800.DeviceDesc%
HKLM,%Twain.Key%,"DSName",0,%USB2800.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.2800.AddReg]
HKR,,CLSID,,%ProxyTVTuner.CLSID%
HKR,,FriendlyName,,%TVTuner.2800.Name%
    
[TVAudio.2800.AddReg]
HKR,,CLSID,,%ProxyTVAudio.CLSID%
HKR,,FriendlyName,,%TVAudio.2800.Name%

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


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

[USB2800.NT.Services]
AddService = DCamUSBEMPIA,0x00000002,DriverInstall2800
AddService = ScanUSBEMPIA,0x00000000,FilterInstall2800

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

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



;---------------------  U S B 2 8 0 1  --------------------

[USB2801]
Include       = ks.inf, kscaptur.inf
Needs         = KS.Registration, KSCAPTUR.Registration
AddReg        = CAP.AddReg, OEM.AddReg, OEM.Sensor.AddReg, OEM.Decoder.AddReg
CopyFiles     = CAP.CopySYS, CAP.CopyDLL, CAP.CopyEXE, CAP.CopyTwain
UpdateInis    = CAP.UpdateIni
UninstallSection = CAP.Uninstall

SubClass      = StillImage
DeviceType    = 2
DeviceSubType = 0
Capabilities  = 1
Events        = STI.Events
ICMProfiles   = "sRGB Color Space Profile.icm"


[USB2801.NT]
Include       = ks.inf, kscaptur.inf
Needs         = KS.Registration, KSCAPTUR.Registration.NT
AddReg        = CAP.AddReg, OEM.AddReg, OEM.Sensor.AddReg, OEM.Decoder.AddReg
CopyFiles     = CAP.CopySYS, CAP.CopyDLL, CAP.CopyEXE, CAP.CopyTwain
UpdateInis    = CAP.UpdateIni
UninstallSection = CAP.Uninstall

SubClass      = StillImage
DeviceType    = 2
DeviceSubType = 0
Capabilities  = 1
Events        = STI.Events
ICMProfiles   = "sRGB Color Space Profile.icm"


;------------ H W ------------

[USB2801.HW]
AddReg = InstFilter2801

[InstFilter2801]
HKR,,UpperFilters,0,"emScan.sys"


[USB2801.NT.HW]
AddReg = InstFilter2801NT

[InstFilter2801NT]
HKR,,"UpperFilters",0x00010000,"ScanUSBEMPIA"


;---- I N T E R F A C E S ----

[USB2801.Interfaces]
AddInterface = %KSCATEGORY_VIDEO%,  GLOBAL,Capture2801.Interface
AddInterface = %KSCATEGORY_CAPTURE%,GLOBAL,Capture2801.Interface
AddInterface = %KSCATEGORY_TVTUNER%,GLOBAL,TVTuner2801.Interface
AddInterface = %KSCATEGORY_TVAUDIO%,GLOBAL,TVAudio2801.Interface
AddInterface = %KSCATEGORY_XBAR%,   GLOBAL,   Xbar2801.Interface

[USB2801.NT.Interfaces]
AddInterface = %KSCATEGORY_VIDEO%,  GLOBAL,Capture2801.Interface
AddInterface = %KSCATEGORY_CAPTURE%,GLOBAL,Capture2801.Interface
AddInterface = %KSCATEGORY_TVTUNER%,GLOBAL,TVTuner2801.Interface
AddInterface = %KSCATEGORY_TVAUDIO%,GLOBAL,TVAudio2801.Interface
AddInterface = %KSCATEGORY_XBAR%,   GLOBAL,   Xbar2801.Interface


[Capture2801.Interface]
AddReg = Capture.2801.AddReg

[TVTuner2801.Interface]
AddReg = TVTuner.2801.AddReg

[TVAudio2801.Interface]
AddReg = TVAudio.2801.AddReg

[Xbar2801.Interface]
AddReg = Xbar.2801.AddReg


[Capture.2801.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,ExtensionDLL,,"emVFW.dll"
HKR,,FriendlyName,,%USB2801.DeviceDesc%
HKLM,%Twain.Key%,"DSName",0,%USB2801.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.2801.AddReg]
HKR,,CLSID,,%ProxyTVTuner.CLSID%
HKR,,FriendlyName,,%TVTuner.2801.Name%
    
[TVAudio.2801.AddReg]
HKR,,CLSID,,%ProxyTVAudio.CLSID%
HKR,,FriendlyName,,%TVAudio.2801.Name%

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


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

[USB2801.NT.Services]
AddService = DCamUSBEMPIA,0x00000002,DriverInstall2801
AddService = ScanUSBEMPIA,0x00000000,FilterInstall2801

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

[FilterInstall2801]
DisplayName   = %USBscan.DeviceDesc%
ServiceType   = 1		;SERVICE_KERNEL_DRIVER
StartType     = 3		;SERVICE_DEMAND_START
ErrorControl  = 1		;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\emScan.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

[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},%StillAPP%
SnapButton = "%SnapButton%",{FA69D8B1-D989-47d2-A5D2-A6635246098F},%StillAPP%

[CAP.Uninstall]



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

[OEM.AddReg]
;;;HKR,settings\OEMSettings,OemID,0x00010001,0
;;;HKR,settings\OEMSettings,PowerControl,0x00010001,0
HKR,settings\OEMSettings,GPIObyAP,0x00010001,0
HKR,settings\OEMSettings,Enable704,0x00010001,0
HKR,settings\OEMSettings,FixUpOWC,0x00010001,12
HKR,settings\OEMSettings,VideoSwitchMode,0x00010001,1
HKR,settings\CommonProperties,Optimization,0x00010001,1

; OEM device address and type.
HKR,settings\OEMSettings,Oem0I2C,0x00010001,0x60
HKR,settings\OEMSettings,Oem0Type,0x00010001,2

; Second OEM device.
HKR,settings\OEMSettings,Oem1I2C,0x00010001,0x30
HKR,settings\OEMSettings,Oem1Type,0x00010001,3

;3th  OEM device.
HKR,settings\OEMSettings,Oem2I2C,0x00010001,0x12
HKR,settings\OEMSettings,Oem2Type,0x00010001,3




; Default Video ProcAmp for Sensor-only or Decoder-only devices.
; DefaultProcAmp = 0xBBCCHHSS
; where BB = Brightness[0..255], CC = Contrast[0..63]
;       HH = Hue[0..127],        SS = Saturation[0..63]
;;;HKR,settings\OEMSettings,DefaultProcAmp,0x00010001,0x80204020
;;;HKR,settings\OEMSettings,DefaultSharpness,0x00010001,2
;;;HKR,settings\OEMSettings,DefaultGamma,0x00010001,32


[OEM.Sensor.AddReg]
; RGB Gains for Hynix 7131.E1  (in format 0x00RRGGBB)
HKR,settings\OEMSettings,HynFluorRGB,0x00010001,2370590
HKR,settings\OEMSettings,HynIncndRGB,0x00010001,3288094
HKR,settings\OEMSettings,HynNaturRGB,0x00010001,1975582

; RGB Gains for Micron MI-0343 (in format 0x00RRGGBB)
HKR,settings\OEMSettings,MicFluorRGB,0x00010001,0x00151520
HKR,settings\OEMSettings,MicIncndRGB,0x00010001,0x00141524
HKR,settings\OEMSettings,MicNaturRGB,0x00010001,0x00141013


[OEM.Decoder.AddReg]
; Composite = 1 (Composite VideoIn present); 0 (not present)
; SVideo    = 1 (SVideo    VideoIn present); 0 (not present)
;
; Set default VideoStandard value per DirectShow definition.
; (For example, 1 = NTSC_M)
;
HKR,settings\OEMSettings,Composite,0x00010001,1
HKR,settings\OEMSettings,SVideo,0x00010001,1
HKR,settings\DecoderProperties,Deinterlace,0x00010001,1   
HKR,settings\DecoderProperties,VideoStandard,0x00010001,1   
HKR,settings\OEMSettings,EnableSquarePixel,0x00010001,1
HKR,settings\OEMSettings,SonyOnBoard,0x00010001,0
HKR,settings\OEMSettings,TVTuneByAP,0x00010001,0

;
HKR,settings\DecoderProperties,VCRMask,0x00010001,3
HKR,settings\DecoderProperties,MaskColor,0x00010001,1

HKR,settings\OEMSettings,TunerIDBase,0x00010001,0
;;;HKR,settings\OEMSettings,TunerID0,0x00010001,3       ; CFG0 = 1216
;;;HKR,settings\OEMSettings,TunerID1,0x00010001,1       ; CFG1 = 1236
;;;HKR,settings\OEMSettings,TunerID2,0x00010001,9       ; CFG2 = 1216ME
;;;HKR,settings\OEMSettings,TunerID3,0x00010001,5       ; CFG3 = 1256
;;;HKR,settings\OEMSettings,TunerID4,0x00010001,6       ; CFG4 = 1256MP
;;;HKR,settings\OEMSettings,TunerID5,0x00010001,4       ; CFG5 = 1246
;;;HKR,settings\OEMSettings,TunerID6,0x00010001,2       ; CFG6 = 1286
;;;HKR,settings\OEMSettings,TunerID7,0x00010001,21      ; CFG7 = SAM9082



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

[Strings]
;---------------
;Non-Localizable
;---------------
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          = "System\CurrentControlSet\Services\USB2800\TwainDS"
CustomPlugIn       = "emProp Custom Interface"
CustomPropPage     = "emProp Custom Property Page"
StillAPP           = "USB Still Image APP"
StillUSD           = "USB Still Image USD"

;---------------
;Localizable
;---------------
Vendor             = "VVmer Technology Corp."
DiskLabel          = "VVmer Video Driver Disk"
NewPicture         = "New Picture Requested"
SnapButton         = "Snapshot Button Pressed"
USBscan.DeviceDesc = "GrabBeeX USB Video Grabber Still Image Capture Device"

USB2800.DeviceDesc = "GrabBeeX Video"
TVTuner.2800.Name  = "GrabBeeX TVTuner"
TVAudio.2800.Name  = "GrabBeeX TVAudio"
Xbar.2800.Name     = "GrabBeeX Crossbar"

USB2801.DeviceDesc = "GrabBeeX+ Video"
TVTuner.2801.Name  = "GrabBeeX+ TVTuner"
TVAudio.2801.Name  = "GrabBeeX+ TVAudio"
Xbar.2801.Name     = "GrabBeeX+ Crossbar"
