DVS-350 4~16 Channels Embedded/ Mobile Digital Video System User Manual
Copyright and Disclaims The documentation and the software included with this product are copyrighted 2005 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd.
Acknowledgements Intel and Pentium are trademarks of Intel Corporation. Microsoft Windows and MS-DOS are registered trademarks of Microsoft Corp. All other product names or trademarks are properties of their respective owners. Part No.
Product Warranty (1 year) Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for one year from the date of purchase. This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech, or which have been subject to misuse, abuse, accident or improper installation.
Declaration of Conformity CE This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information. This product has passed the CE test for environmental specifications. Test conditions for passing included the equipment being operated within an industrial enclosure.
- The exact wording of any error messages DVS-350 Series Model There are 6 sub-models in DVS-350 series listed below: Part Number Video Channel CPU L2 Cache DVS-350-18M0 4~16 CH Intel ULV Celeron® M 600MHz 512KB DVS-350-18S4 4~16 CH Intel LV Pentium® M 1.4GHz 2MB DVS-350-25M0 4~16 CH Intel ULV Celeron® M 600MHz 512KB DVS-350-25S4 4~16 CH Intel LV Pentium® M 1.4GHz 2MB DVS-350-35M0 * 4~16 CH Intel ULV Celeron® M 600MHz 512KB DVS-350-35S4 * 4~16 CH Intel LV Pentium® M 1.
Packing List Before installing your board, make sure that the following materials have been received: Part Number Description Quantity 2013000000 2062S35000 1700001394 1652000209 1700060202 1700001618 1 year warranty card Driver CD DC Jack with 2-pin pluggable terminal block Pluggable terminal block for DI and DO Y cable of KB and PS/2 Mouse Video Cable (D-sub 15P to BNC) 1 1 1 1 1 2 * DVS-350-35M0/DVS-350-35S4 also has a key for swappable HDD tray lock door.
Safety Instructions 1. Please read these safety instructions carefully. 2. Please keep this User Manual for later reference. 3. Please disconnect this equipment from power outlet before cleaning. Don‘t use liquid or sprayed detergent for cleaning. Use moisture sheet or clothe for cleaning. 4. For pluggable equipment, the socket-outlet shall near the equipment and shall be easily accessible. 5. Please keep this equipment from humidity. 6. Lay this equipment on a reliable surface when install.
14. Never open the equipment. For safety reasons, only qualified service personnel should open the equipment. 15. If one of the following situations arise, get the equipment checked by service personnel: a. The Power cord or plug is damaged. b. Liquid has penetrated the equipment. c. The equipment has been exposed to moisture. d. The equipment has not worked well or you can not get it work according to user‘s manual. e. The equipment has been dropped and damaged. f.
Wichtige Sicherheishinweise 1. Bitte lesen sie Sich diese Hinweise sorgfältig durch. 2. Heben Sie diese Anleitung für den späteren Gebrauch auf. 3. Vor jedem Reinigen ist das Gerät vom Stromnetz zu trennen. Verwenden Sie Keine Flüssig-oder Aerosolreiniger. Am besten dient ein angefeuchtetes Tuch zur Reinigung. 4. Die NetzanschluBsteckdose soll nahe dem Gerät angebracht und leicht zugänglich sein. 5. Das Gerät ist vor Feuchtigkeit zu schützen. 6.
c. Das Gerät war Feuchtigkeit ausgesetzt. d. Wenn das Gerät nicht der Bedienungsanleitung entsprechend funktioniert oder Sie mit Hilfe dieser Anleitung keine Verbesserung erzielen. e. Das Gerät ist gefallen und/oder das Gehäuse ist beschädigt. f. Wenn das Gerät deutliche Anzeichen eines Defektes aufweist. 15. VOSICHT: Explisionsgefahr bei unsachgemaben Austausch der Batterie. Ersatz nur durch densellben order einem vom Hersteller empfohlene-mahnlichen Typ.
Safety Precaution - Static Electricity Follow these simple precautions to protect yourself from harm and the products from damage. 1. To avoid electrical shock, always disconnect the power from your PC chassis before you work on it. Don't touch any components on the CPU card or other cards while the PC is on. 2. Disconnect power before making any configuration changes. The sudden rush of power as you connect a jumper or install a card may damage sensitive electronic components.
CHAPTER 1 Overview This chapter gives background information on the DVS-350 series. It shows you the DVS-350 overview and specifications.
Chapter 1 Overview 1.1 Introduction The DVS-350 Digital Video System combines rich video capture functions and other industrial features into a rugged, compact metal chassis for digital video applications. The fanless operation provides high reliability when deployed in space constrained environments. All electronics are protected in a sealed anti-vibration anti-dust housing, making the DVS-350 ideal for harsh environment applications.
‧ A special cushioned design that absorbs vibration to ensure maximum reliability under harsh conditions 1.2.3 Compact Size ‧ With its maximum mounting height of 45.8 mm (DVS-350-18M0), the DVS-350 can be used under space critical installation conditions 1.2.4 Scalable Performance with low power consumption ‧ Scalable Low Voltage and Ultra Low Voltage Pentium M class processor system to bring high computing performance with low power consumption 1.2.
ADAM-4501 ADAM-4052 ADAM-4053 ADAM-4055 ADAM-4056S ADAM-4056S0 ADAM-4060 ADAM-4068 Ethernet-enabled Communication Controller with 8 Digital I/O Isolated Digital Input Module 16-channel Digital Input Module 16-channel Isolated Digital I/O Module with LED and Modbus 12-channel Sink Type Isolated Digital Output Module 12-channel Source Type Isolated Digital Output Module 4-channel Relay Output Module 8-channel Relay Output Module with Modbus and LED For further information of above options, please visit http
Display Interface support ‧ VGA and TV-out (BNC) Interface 1.2.3 Ethernet ‧ Ethernet Controller: Intel® 82551QM Fast Ethernet Multifunction PCI/CardBus Controller ‧ Speed: 10/100MBps, IEEE 802.3u (100 BASE-T) protocol compatible 1.2.4 Other ‧ Watchdog Timer: 255 levels timer interval, setup by software ‧ Serial Port: One RS-232 port (COM1) and One RS-485/422 port (COM2) ‧ Keyboard/Mouse: One PS/2 Port to support PS/2 Mouse and PS/2 Keyboard ‧ USB: 4 USB 2.0 compliant universal serial bus port 1.2.
Warning: Please do not keep DVS-350 working in a closed environment. The temperature in a closed environment might get higher over the operation temperature. ‧ Relative humidity 95 % @ 40 ° C (non-condensing) ‧ Vibration loading during operation: 1Grms, IEC 68-2-64, random, 5~500Hz, 1 Oct./min, 1hr/axis. ‧ Shock during operation: 20Grms, IEC 60068-2-27, half sine, 11 ms duration 1.2.9 Certificate Approved ‧ EMC Approved: CE, FCC Class A ‧ Safety Approved: UL 1.
CHAPTER 2 Hardware Functionality This chapter shows how to set up the DVS350 hardware functions, including connecting peripherals, switches and indicators.
Chapter 2 Hardware Functionality 2.1 Introduction of DVS-350 External I/O Connectors The following two figures show the external I/O connectors on DVS-350. The following sections give you detailed information about the function of each I/O connector. Figure 2.1: DVS-350 front metal face plate external I/O connectors Figure 2.
2.2 DVS-350 front plate external I/O connectors 2.2.1 Power ON/OFF Button The DVS-350 comes with a Power On/Off button, that Support dual function Soft Power On/Off (Instant off or Delay 4 Second), and Suspend. 2.2.2 LED Indicators There are two LEDs on the DVS-350 front face plate for indicating system status: PWR LED is for power status and flash in green color; and HDD LED is for hard disk and compact flash disk status, which flash in red color. 2.2.3 Video Input Connectors Figure 2.
The DVS-350 can support up to 16 channel video inputs with 2 customization video cables. The pin definition of video connector and video cable is following: Table 2.1 Video Input Connector Pin Definition 1 Channel 1 /9 2 Ground 3 Channel 2 /10 4 Ground 5 Channel 3 /11 6 Ground 7 Channel 4 /12 8 Ground Pin 9 10 11 12 13 14 15 N/A Definition Channel 5 /13 Ground Channel 6 /14 Ground Channel 7 /15 Ground Channel 8 /16 N/A DVS-350 has a high integration main board with 4 Conexant Fusion 878A video chips.
If user would like to run DVS-350 with 12 channel application, user should connect the 12 channel inputs to channel 1 to channel 12 with 10/8 fps per channel. If user would like to run DVS-350 with 16 channel application, user should connect the 16 channel inputs to channel 1 to channel 16 with 7.5/6 fps per channel. Also, user can set different 878A chip with different switch. For example, user can set the chip1 to 1 input only, the chip2 to 3 inputs, the chip3 to 2 inputs, and the chip4 to 4 inputs.
2.2.4 Isolated DI, Relay DO and Remote SW control Figure 2.4: Isolated DI, Relay DO and Remote SW control Isolated DI Channel: 5 fully independent isolated channels Digital Input Level: Logic level 0: 0V~3V Logic level 1: 10V~30V Isolation Voltage 3,750V RMS Relay DO Channel: 2 channels, 2 Form C Contact Rating: AC: 125V at 0.5A DC: 30V at 2A, 110V at 0.
2.3 DVS-350 rear plate external I/O connectors 2.3.1 Power Input Connector The DVS-350 comes with a Phoenix connector that carries 9~30 VDC external power input. Table 2.5 Power connector pin assignments Pin Definition 1 Ground Pin 2 Definition +9~30VDC 2.3.2 COM1 Connector The DVS-350 provides a D-sub 9-pin connector, which offers one standard RS-232 serial communication interface port of COM1. Table 2.
2.3.3 COM2 Connector The DVS-350 provides a D-sub 9-pin connector, which offers one RS-485 serial communication interface port for COM2. The default setting of COM2 is RS-485. Table 2.7 COM2 standard serial port pin assignments Pin RS-485 1 DATA2 DATA+ 3 No Connection 4 No Connection 5 GND 6 No Connection 7 No Connection 8 No Connection 9 No Connection 2.3.4 Ethernet Connector (LAN) The DVS-350 is equipped with an Intel 82551QM Fast Ethernet controller that is fully compliant with IEEE 802.
2.3.6 PS2 Keyboard/Mouse Connector The DVS-350 provides a PS/2 keyboard/mouse connector. A 6-pin mini-DIN connector is located on the rear face plate. It comes with an external Y cable to convert from the 6-pin mini-DIN connector to PS/2 keyboard and PS/2 mouse connection. Table 2.9 PS2 Keyboard/Mouse Connector Pin 1 2 3 4 5 6 Definition PS2_KBDAT PS2_MSDAT GND VCC PS2_KBCLK PS2_MSCLK 2.3.
The USB connector is used for connecting any device that conforms to the USB interface. Many recent digital devices conform to this standard. The USB interface supports Plug and Play, which enables you to connect or disconnect a device whenever you want, without turning off the computer. Table 2.
CHAPTER 3 Hardware Installation and Upgrade This chapter introduces how to initialize the DVS-350. Sections include: ‧ Installing the DDR SDRAM Memory Module ‧ Inserting a Compact Flash Card ‧ Installing the 2.
Chapter 3 Hardware Installation and Upgrade 3.1 Jumpers and Connectors The DVS-350 Embedded/Mobile Video System consists of a PC-based computer that is housed in a aluminum top cover, a metal bottom case with accessed bottom cover and front with rear metal face plate. The HDD, SDRAM, are accessible by removing the accessed bottom cover. Any maintenance or hardware upgrades can be easily completed after removing the top cover, front and rear plates.
The jumper settings are schematically depicted in this manual as follows: A pair of needle-nose pliers may be helpful when working with jumpers. If you have any doubts about the best hardware configuration for your application, contact your local distributor or sales representative before you make any changes. 3.
3. Remove the bottom cover. 4. Unscrew the screws from the bottom cover of DDR SODIMM SDRAM Notice: For DVS-350-35M0 and DVS-350-35S4, it is necessary to remove the swappable HDD tray by the key in accessory box first before unscrewing the screws from the bottom cover of DDR SODIMM SDRAM 4. Plug and Push a DDR SODIMM SDRAM (200pin) into a socket on board. 5. Press down the DRAM module and you will hear the “Click”.
6. Screw back the bottom cover of DDR SODIMM SDRAM with two screws and the bottom cover with four screws. 3.5 Installing the 2.5" Hard Disk Drive (HDD) You can attach one enhanced Integrated Device Electronics (IDE) hard disk drive to the DVS350’s internal controller which uses a PCI localbus interface. The advanced IDE controller supports faster data transfer and allows the IDE hard drive to exceed 528 MB.
3. Remove the HDD mounting bottom cover of the DVS-350. 4. Fixing your HDD to HDD mounting bottom cover by using the 4 screws stored in accessories box. Make sure the PCB side down and the label side up. 5. Connect the IDE flat cable to the connector on the hard disk.
6. Make sure the tight connection between the flat cable and the hard disc drive. 7. Screw back the bottom cover with the four screws. 3.6 Inserting and Removing a Compact Flash Card The procedure of installing a Compact Flash card into the DVS-350 is detailed below, please follow these steps carefully: 1. Remove the power line first. 2. Unscrew the two screws from the CF Door located on rear face plate of the DVS-350 embedded box computer. 3. Remove the CF cover. 4.
5. Insert the Compact Flash card slightly into the CF socket. 6. DO NOT push the CF card too hard when the slide is not matching. It might cause damage to the CF card and the socket. When it’s not easy to slide the CF card into the socket, you need to flip the CF card over and try again. 7. Use a screw tool to push the CF card inward to make sure a tight connection between CF card and socket. Warning: Be careful not to touch and push any component on the PCB board.
CHAPTER 4 Award BIOS Setup
Chapter 4 Award BIOS Setup 4.1 Introduction Award’s BIOS ROM has a built-in setup program that allows users to modify the basic system configuration. This type of information is stored in battery-backed memory (CMOS RAM) so that it retains the setup information when the power is turned off. 4.1.1 CMOS RAM Auto-backup and Restore The CMOS RAM is powered by an onboard button cell battery. When you finish BIOS setup, the data in CMOS RAM will be automatically backed up to Flash ROM.
Figure 4.1: Award BIOS Setup initial screen 4.3 Standard CMOS Setup Choose the “Standard CMOS Features” option from the “Initial Setup Screen” menu, and the screen below will be displayed. This menu allows users to configure system components such as date, time, hard disk drive, floppy drive, display, and memory. Figure 4.
4.4 Advanced BIOS Features The “Advanced BIOS Features” screen appears when choosing the “Advanced BIOS Features” item from the “Initial Setup Screen” menu. It allows the user to configure the DVS350 according to his particular requirements. Below are some major items that are provided in the Advanced BIOS Features screen. A quick booting function is provided for your convenience. Simply enable the Quick Booting item to save yourself valuable time Figure 4.3: Advanced BIOS features screen 4.4.
4.4.4 Quick Power On Self Test This option speeds up the Power-On Self Test (POST) conducted as soon as the computer is turned on. When enabled, BIOS shortens or skips some of the items during the test. When disabled, the computer conducts normal POST procedures. 4.4.5 First/Second/Third/ Boot Other Device The BIOS tries to load the OS with the devices in the sequence selected. Choices are: Floppy, LS/ZIP, HDD, SCSI, CDROM, LAN, Disabled. 4.4.
This field allows you to limit access to the System and Setup. The default value is Setup. When you select System, the system prompts for the User Password every time you boot up. When you select Setup, the system always boots up and prompts for the Supervisor Password only when the Setup utility is called up. 4.4.13 APIC Mode APIC stands for Advanced Programmable Interrupt Controller. The default setting is Enabled. 4.4.
Figure 4.4: Advanced Chipset features screen 4.5.1 DRAM Timing Selectable This option refers to the method by which the DRAM timing is selected. The default is By SPD. 4.5.2 CAS Latency Time You can configure CAS latency time in HCLKs as 2 or 2.5 or 3. The system board designer should set the values in this field, depending on the DRAM installed. Do not change the values in this field unless you change specifications of the installed DRAM or the installed CPU. 4.5.
Select ECC if your memory module supports it. The memory controller will detect and correct single-bit soft memory errors. The memory controller will also be able to detect double-bit errors though it will not be able to correct them. This provides increased data integrity and system stability. 4.5.7 MGM Core Frequency This field sets the frequency of the DRAM memory installed. The default setting is Auto Max 266MHz. 4.5.
The default setting is Enabled. 4.5.15 On-Chip Frame Buffer Size The default setting is 32MB. The options available include 1MB, 4MB, 8MB and 16MB. 4.5.16 Boot Display The default setting is CRT+LVDS. The options available include CRT, LVDS, DVI and TV. 4.5.17 Panel Number These fields allow you to select the LCD Panel type.
Figure 4.5.1: Integrated Peripherals 4.6.1 On-Chip Primary PCI IDE Some UDMA cables use a hole in the ribbon cable as a cable detect mechanism to determine if a UDMA IDE or standard IDE cable is installed. The default setting is “Enabled”. 4.6.2 IDE Master/Slave PIO/UDMA Mode, IDE Primary (Secondary) Master/Slave PIO/UDMA Mode (Auto) Each channel (Primary and Secondary) has both a master and a slave, making four IDE devices possible.
Figure 4.5.2: OnChip IDE Device 4.6.5 USB/USB 2.0 Controller Select Enabled if your system contains a Universal Serial Bus (USB) controller and you have USB peripherals. The choices: Enabled, Disabled. 4.6.6 USB Keyboard/Mouse Support Select Enabled if user plan to use an USB keyboard. The choice: Enabled, Disable. 4.6.7 AC97 Audio/Modem Select Disable if you do not want to use AC-97 audio/Modem. Option is Auto, Disable. 4.6.
Figure 4.5.3: Onboard Device 4.6.9 Onboard LAN Control Option is Enable and Disable. Select Disable if user does not want to use onboard LAN controller 4.6.10 Onboard FDC Controller When enabled, this field allows you to connect your floppy disk drives to the onboard floppy disk drive connector instead of a separate controller card. If you want to use a different controller card to connect the floppy disk drives, set this field to Disabled. 4.6.
4.6.15 UR2 Duplex Mode This item allows you to select the IR half/full duplex function. The choices: Half, Full. 4.6.16 Onboard Parallel Port This field sets the address of the on-board parallel port connector. You can select either 3BCH/IRQ7, 378H/IRQ7, 278H/IRQ5 or Disabled. If you install an I/O card with a parallel port, make sure there is no conflict in the address assignments. The CPU card can support up to three parallel ports, as long as there are no conflicts for each port. 4.6.
Figure 4.5.4: SuperIO Device 4.7 Power Management Setup The power management setup controls the CPU card’s “green” features to save power. The following screen shows the manufacturer’s defaults: Figure 4.6: Power management setup screen 4.7.1 ACPI function The choice: Enabled, Disabled. 4.7.2 Power Management This category allows you to select the type (or degree) of power saving and is directly related to the following modes: 1. HDD Power Down 2.
4.7.4 Modem Use IRQ This determines the IRQ in which the MODEM can use.The choices: 3, 4, 5, 7, 9, 10, 11, NA. 4.7.5 HDD Power Down You can choose to turn the HDD off after one of the time intervals listed, or when the system is in “suspend” mode. If the HDD is in a power saving mode, any access to it will wake it up. 4.7.6 Soft-Off by PWR-BTTN If you choose “Instant-Off”, then pushing the ATX soft power switch button once will switch the system to “system off” power mode. You can choose “Delay 4 sec.
4.7.13 PCI PIRQ [A-D]# When Enabled, the system will resume from suspend mode if interrupt occurs. The choice: Enabled, Disabled. 4.8 PnP/PCI Configurations 4.8.1 PnP OS Installed Select “Yes” if you are using a plug and play capable operating system. Select No if you need the BIOS to configure non-boot device Figure 4.7: PnP/PCI configurations screen 4.8.2 Reset Configuration Data Default is Disable.
4.8.4 PCI/VGA Palette Snoop This is left at “Disabled.” 4.9 Password Setting To change the password: 1. Choose the “Set Password” option from the “Initial Setup Screen” menu and press . The screen will display the following message: Please Enter Your Password Press . 2. If the CMOS is good or if this option has been used to change the default password, the user is asked for the password stored in the CMOS.
CHAPTER 5 System Setup This chapter details the needed driver installation for DVS-350 Sections include: ‧ Installation of chipset driver ‧ Installation of graphic driver ‧ Installation of LAN driver ‧ Installation of audio driver
Chapter 5 System Setup 5.1 Introduction The system has an onboard Intel 852GM chipset for its graphic controller. It supports conventional analog CRT monitors and LCD displays with 64MB frame buffer shared with system memory. The VGA controller can drive CRT displays with resolutions up to 1600 x1200@85-Hz and 2048 x 536 @75Hz. 5.1.1 CMOS setting for panel type The DVS-350 system BIOS and custom drivers are located in a Flash ROM device, designated U26 of system motherboard of DVS-350.
The DVS-350 uses an Intel Intel 852GM controller that is capable of providing multiple views and simultaneous display with mixed video and graphics on a flat panel and CRT. 5.2 Installation of needed driver 5.2.1 Installation of a licensed Windows OS Before installing the needed driver, you should complete the installation of a licensed Windows operating system –WinXP, WinXP embedded or Win2K first. 5.2.2 Installation of chipset driver. The chipset driver is under the path: DVS-350_CD:\01_DVS-350_Driver\I
Please follow and pay attention to the installation instructions which appear on your screen, and complete the audio driver installation. 5.2.6 Install the WLAN driver Find the audio driver from CD at the directory of DVS-350_CD:\ 01_DVS-350_Driver\RAlink Wireless Network Card Driver Please follow and pay attention to the installation instructions which appear on your screen, and complete the audio driver installation.
CHAPTER 6 Video capture installation
Chapter 6 Video capture installation 6.1 Driver installation of video capture chip Step 1: Pop-up the “System Properties” window, choose the “Hardware” page, and press the “Device Manager” bottom.
Step 2: Click the PC icon and press the left bottom of the mouse. Press the “Scan for hardware changes”.
Step 3: The system will show the un-known devices like below window.
Step 4: Click the below icon to specify the driver location.
Step 5: Specify the driver under the DVS-350_CD\02_DVS-350_Software_Develop_Kit\Video capture chip driver
Step 6: Push the “Next” bottom to process the installation. Step 7: Continuing the installation.
Step 8: Press the “Finish” bottom to finish the first circle installation. Then repeat the installation step 1~8 until all the un-known devices are all installed.
Step 9: From below window, we know there are 8 new items are installed.
6.2 Installation of DVS-350 Demo Program Step 1: Install the DVS-350 demo program. The executive file is in the path: DVS350_CD\02_DVS-350_Software_Develop_Kit\Sample program Installation
Step 2: Press the “Next” bottom to begin the installation. Step 3: Accept the license agreement and continue the installation.
Step 4: Key in your name and company name. Then press the “Next” bottom to continue. Step 5: Choose the setup type you want and next.
Step 6: Beginning the installation. Step 7: Finished the installation of DVS-350 demo program.
Step 8: There will be a DVS350.exe icon on the desktop. Execute the demo program. 6.3 Demo Program Functionality Below is the demo program window. The left side panels are the preview windows of video inputs. The right side panels are the function parameter settings. 6.3.1 Device Each device is representative of one Conexant Fusion 878A video capture chip. User can set different parameters to different 878A chip. 6.3.
Set the “Switch Channels” to decide how many input for each 878A video chip. Each 878A chip can switch to 4 channel video inputs to share 30/25 frame per second. For more information, please refer to “Chapter 2.2.3 Video Input Connectors” and “ Chapter 7.5.17 DVS300_SetVideoInput”. 6.3.3 Resolution Set the video capturing resolution. Please refer to “Chapter 7.5.14 DVS300_GetResolution” and “Chapter 7.5.15 DVS300_SetResolution”.
6.3.4 Frame Rate Set the frame rate for video capturing for specific channel. Please refer to “Chapter 7.5.12 DVS300_GetFrameRate” and “Chapter 7.5.13 DVS300_SetFrameRate”.
6.3.5 Video Mux Set the “Video Mux” to specify the video input channel for setting parameter. Please refer to “Chapter 7.5.16 DVS300_GetVideoInput” and “Chapter 7.5.
6.3.6 Video Standard Set the video standard of your cameras. Please refer to “Chapter 7.5.10 DVS300_GetVideoFormat” and “Chapter 7.5.11 DVS300_SetVideoFormat”.
6.3.7 Snap Buffer Press the “Snap Buffer” to get the image data of specific channel video input. The snap image will be show on the up panel.
. 6.3.8 Sensor Control To set the brightness, contrast, hue and saturation of specific channel. Please refer to chapter 7.5.18 DVS300_GetBrightness 7.5.19 DVS300_SetBrightness 7.5.20 DVS300_GetContrast 7.5.21 DVS300_SetContrast 7.5.22 DVS300_GetHue 7.5.23 DVS300_SetHue 7.5.24 DVS300_GetSaturation 7.5.25 DVS300_SetSaturation 6.3.9 Micro Control Specify or get the word address(0~127).with a value. Please refer to “Chapter 7.5.29 DVS300_SetEEData” and “Chapter 7.5.28 DVS300_GetEEData”.
6.3.10 GPIO control To get a specified DI value or to set a specified DO value. Please refer to “Chapter 2.2.4 Isolated DI and Relay DO”, “Chapter 7.5.27 DVS300_GPIOSetData” and “Chapter 7.5.26 DVS300_GPIOGetData”.
CHAPTER 7 Software Function Library
Chapter 7 Software Function Library 7.1 DVS300 Functions Library: DVS300.dll 7.1.1 Data Type Summary Res The method returned code 7.1.2 Method Summary SDK Initialize and close DVS300_Creat eSDKI nst ence DVS300_I nit SDK DVS300_CloseSDK Creates SDK instance Initializes all DVS300capture devices Cleans all instances of capture devices and closes up the SDK.
7.2 DVS300 Encoding Functions Library: DVS300Encoder.dll/Encoder: rmp4.dll Before using t he DVS300 encoding funct ions library, t he “ RMP4” codec m ust be inst alled t o t he syst em . Aft er inst alling t he sam ple program , t he codec will be inst alled aut om at ically. You can inst all t he codec m anually by using t he “ rm p4.inf” file. Right click on t he file, and t hen click “ I nst all” . 7.2.
7.3 DVS 300 Playback Functions Library: DVS300Player.dll/Decoder: rmp4.dll Before using t he DVS300 playback funct ions library, t he “ RMP4” codec m ust be inst alled t o t he syst em . Aft er inst alling t he sam ple program , t he codec will be inst alled aut om at ically. You can inst all t he codec m anually by using t he “ rm p4.inf” file. Right click on t he file, and t hen click “ I nst all” . 7.3.1 Data Type Summary Player Res The method returned code 7.3.
7.4 DVS300 Functions Reference Data Type 7.4.1 Res Syn t a x t ypedef enum t agRes { SUCCEEDED = 1, FAI LED = 0, SDKI NI TFAI LED = - 1, PARAMERROR = - 2, NODEVI CES = - 3, NOSAMPLE = - 4, DEVI CENUMERROR = - 5, I NPUTERROR = - 6, VERI FYHWERROR = -7 } Res; D e scr ipt ion The m et hod ret urned code.
7.5 Method 7.5.1 DVS300_CreateSDKInstence Syn t a x int DVS300_Creat eSDKI nst ence( void * * pp) Pa r a m e t e r s pp: A point er t o t he SDK. Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. PARAMERROR: Param et er error. D e scr ipt ion This funct ion creat es SDK inst ance.
7.5.2 DVS300_InitSDK Syn t a x int DVS300_I nit SDK( ) Pa r a m e t e r s None Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. NODEVI CES: No devices found. VERI FYHWERROR Verify t he hardware error. D e scr ipt ion This funct ion init ializes all DVS300 capt ure devices in t he syst em . Aft er init ializing each device, t he capt ure st at us would be set as “ STOPPED” .
7.5.3 DVS300_CloseSDK Syn t a x int DVS300_CloseSDK( void) Pa r a m e t e r s None Re t ur n V a lue SUCCEEDED: Funct ion succeeded. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion cleans all inst ances of capt ure devices and closes up t he SDK.
7.5.4 DVS300_GetNumberOfDevices Syn t a x int DVS300_Get NoOfDevices( int * pNoOfDevs) Pa r a m e t e r s pNoOfDevs: A point er t o get num ber of DVS300 Capt ure Devices. Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion get s num ber of DVS300 Capt ure Devices in t he syst em . At m ost 16 channels are available in a DVS300 syst em .
7.5.5 DVS300_Start Syn t a x int DVS300_St art ( int nDevNum , int Swit chingChans, HWND Main, HWND hwndPreview) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . Swit chingChans: Single video input or swit ching bet ween video m uxes. 0: single channel. 1: t wo channels ( m ux0, m ux1) . 2: t hree channels ( m ux0, m ux1, m ux2) . 3: four channels ( m ux0, m ux1, m ux2, m ux3) . Main: A m ain window handle. hwndPreview: A windows handle for display area.
7.5.6 DVS300_Stop Syn t a x int DVS300_St op( int nDevNum ) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion st ops video capt uring on a specified capt ure port . The capt ure st at e would be set as “ STOPPED” aft er a successful st op.
7.5.7 DVS300_GetCapState Syn t a x int DVS300_Get CapSt at e( int nDevNum ) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . Re t ur n V a lue DEVI CENUMERROR: I nvalid device num ber. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion get s capt ure st at e of a specified capt ure port .
7.5.8 DVS300_GetCurFrameBuffer Syn t a x int DVS300_Get CurFram eBuffer( int nDevNum , long* bufSize, BYTE* buf, int VMux) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . bufSize: Fram e buffer size. buf: Fram e buffer. VMux: Video m ux. Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er. SDKI NI TFAI LED: SDK not init ialized. NOSAMPLE: No buffer sam ple.
7.5.9 DVS300_SetNewFrameCallback Syn t a x int DVS300_Set NewFram eCallback( int nDevNum , int callback) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . callback: Callback funct ion. Callback fum ct ion t ype: t ypedef int ( * CAPCALLBACK) ( int nI D, int nDevNum , int VMux, int bufsize, BYTE* buf ) ; nI D: Single video input I D or t he video m ux I D.
7.5.10 DVS300_GetVideoFormat Syn t a x int DVS300_Get VideoForm at ( int nDevNum , AnalogVideoForm at * vForm at ) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . Vform at : A point er t o get video form at .
7.5.11 DVS300_SetVideoFormat Syn t a x int DVS300_Set VideoForm at ( int nDevNum , AnalogVideoForm at * vForm at ) Pa r a m e t e r s nDevNum : Specifies t he port device num ber( 0~ 3) .
7.5.12 DVS300_GetFrameRate Syn t a x int DVS300_Get Fram eRat e( int nDevNum , int * Fram eRat e) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . Fram eRat e: A point er t o get video fram e rat e( 1~ 30) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er. SDKI NI TFAI LED: SDK not init ialized.
7.5.13 DVS300_SetFrameRate Syn t a x int DVS300_Set Fram eRat e( int nDevNum , int Swit chingChans, int Fram eRat e) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . Swit chingChans: Single video input or swit ching bet ween video m uxes( 0~ 3) . 0: single channel. 1: t wo channels ( m ux0, m ux1) . 2: t hree channels ( m ux0, m ux1, m ux2) . 3: four channels ( m ux0, m ux1, m ux2, m ux3) . Fram eRat e: A value t o set fram e rat e( 1~ 30) . Default value is 30.
7.5.14 DVS300_GetResolution Syn t a x int DVS300_Get Resolut ion( int nDevNum , VideoSize * Size) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . Size: A point er t o get video resolut ion. t ypedef enum { SI ZEFULLPAL= 0, / / ( PAL: 768x576) SI ZED1, / / ( NTSC: 720x480, PAL: 720x576) SI ZEVGA, / / ( 640x480) SI ZEQVGA, / / ( 320x240) SI ZESUBQVGA / / ( 160x120) } VideoSize; Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed.
7.5.15 DVS300_SetResolution Syn t a x int DVS300_Set Resolut ion( int nDevNum , VideoSize Size) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . Size: A value t o set video resolut ion. t ypedef enum { SI ZEFULLPAL= 0, / / ( PAL: 768x576) SI ZED1= 0, / / ( NTSC: 720x480, PAL: 720x576) SI ZEVGA, / / ( 640x480) SI ZEQVGA, / / ( 320x240) SI ZESUBQVGA / / ( 160x120) } VideoSize; Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed.
7.5.16 DVS300_GetVideoInput Syn t a x int DVS300_Get VideoI nput ( int nDevNum , int * pI nput ) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . pI nput : A point er t o get video input m ux( 0~ 3) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion get s video input m ux of a specified capt ure port .
7.5.17 DVS300_SetVideoInput Syn t a x int DVS300_Set VideoI nput ( int nDevNum , int nI nput ) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . nI nput : A value t o set video input m ux( 0~ 3) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion set s video input m ux of a specified capt ure port .
7.5.18 DVS300_GetBrightness Syn t a x DVS300_Get Bright ness( int nDevNum , int nI nput , long * lpValue) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . nI nput : Specifies t he video input m ux( - 1~ 3) . This value m ust be set - 1 when no swit ching channels. lpValue: A long point er t o get bright ness value( 1~ 100) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er.
7.5.19 DVS300_SetBrightness Syn t a x int DVS300_Set Bright ness( int nDevNum , int nI nput , long lValue) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . nI nput : Specifies t he video input m ux( - 1~ 3) . This value m ust be set - 1 when no swit ching channels. lValue: A value t o set bright ness( 0~ 100) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er.
7.5.20 DVS300_GetContrast Syn t a x int DVS300_Get Cont rast ( int nDevNum , int nI nput , long * lpValue) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . nI nput : Specifies t he video input m ux( - 1~ 3) . This value m ust be set - 1 when no swit ching channels. lpValue: A long point er t o get cont rast value( 1~ 100) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er.
7.5.21 DVS300_SetContrast Syn t a x int DVS300_Set Cont rast ( int nDevNum , int nI nput , long lValue) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . nI nput : Specifies t he video input m ux( - 1~ 3) . This value m ust be set - 1 when no swit ching channels. lValue: A value t o set cont rast ( 0~ 100) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device. PARAMERROR: I nvalid param et er.
7.5.22 DVS300_GetHue Syn t a x int DVS300_Get Hue( int nDevNum , int nI nput , long * lpValue) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . nI nput : Specifies t he video input m ux( - 1~ 3) . This value m ust be set - 1 when no swit ching channels. lpValue: A long point er t o get hue value( 1~ 100) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er.
7.5.23 DVS300_SetHue Syn t a x int DVS300_Set Hue( int nDevNum , int nI nput , long lValue) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . nI nput : Specifies t he video input m ux( - 1~ 3) . This value m ust be set - 1 when no swit ching channels. lValue: A value t o set hue( 0~ 100) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er.
7.5.24 DVS300_GetSaturation Syn t a x int DVS300_Get Sat urat ion( int nDevNum , int nI nput , long * lpValue) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . nI nput : Specifies t he video input m ux( - 1~ 3) . This value m ust be set - 1 when no swit ching channels. lpValue: A long point er t o get sat urat ion value( 1~ 100) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber.
7.5.25 DVS300_SetSaturation Syn t a x int DVS300_Set Sat urat ion( int nDevNum , int nI nput , long lValue) Pa r a m e t e r s nDevNum : Specifies t he device num ber( 0~ 3) . nI nput : Specifies t he video input m ux( - 1~ 3) . This value m ust be set - 1 when no swit ching channels. lValue: A value t o set sat urat ion( 0~ 100) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. DEVI CENUMERROR: I nvalid device num ber. PARAMERROR: I nvalid param et er.
7.5.26 DVS300_GPIOGetData Syn t a x int DVS300_GPI OGet Dat a( int nDI Num , BOOL* pValue) Pa r a m e t e r s nDI Num : Specifies t he digit al input num ber( 0~ 5) . pValue: A point er t o get t he value of t he specified digit al input . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. PARAMERROR: I nvalid param et er. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion get s t he value of t he specified digit al input .
7.5.27 DVS300_GPIOSetData Syn t a x int DVS300_GPI OSet Dat a( int nDONum , BOOL bValue) Pa r a m e t e r s nDONum : Specifies t he digit al out put num ber( 0~ 1) . bValue: A value t o set t he value of t he specified digit al out put . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. PARAMERROR: I nvalid param et er. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion set s t he value of t he specified digit al out put .
7.5.28 DVS300_GetEEData Syn t a x int DVS300_Get EEDat a( BYTE wordAddr, BYTE* pDat a) Pa r a m e t e r s wordAddr: Specifies t he word address( 0~ 127) . pDat a: A point er t o get byt e value st ored in EE( 0~ 255) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. PARAMERROR: I nvalid param et er. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion read t he value at specified EE word address.
7.5.29 DVS300_SetEEData Syn t a x int DVS300_Set EEDat a( BYTE wordAddr, BYTE* pDat a) Pa r a m e t e r s wordAddr: Specifies t he word address( 0~ 127) . pDat a: A value t o set t he byt e value in EE( 0~ 255) . Re t ur n V a lue SUCCEEDED: Funct ion succeeded. FAI LED: Funct ion failed. PARAMERROR: I nvalid param et er. SDKI NI TFAI LED: SDK not init ialized. D e scr ipt ion This funct ion writ es t he value at specified EE word address.
7.6 DVS300 Encoding Functions Reference Data Type 7.6.1 EncRes Syn t a x t ypedef enum t agRes { ENC_SUCCEEDED = 1, ENC_FAI LED = 0, ENC_SDKI NI TFAI LED = - 1, ENC_ENCI NI TFAI LED = - 2, ENC_PARAMERROR = - 3, ENC_VERI FYHWERROR = - 4, ENC_ENCNUMERROR = - 5, ENC_BUFFERFULL = -6 } EncRes; D e scr ipt ion The m et hod ret urned code.
7.6.2 PSTREAMREADBEGIN Syn t a x void ( * PSTREAMREADBEGI N) ( int nEncNum ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber. Re t ur n V a lue None D e scr ipt ion The point er t o t he St ream Read Begin callback funct ion called when begins t he video st ream read process.
7.6.3 PSTREAMREADPROC Syn t a x void ( * PSTREAMREADPROC) ( int nEncNum , LPVOI D pSt ream Buf, long lBufSize, DWORD dwCom pFlags) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber. pSt ream Buf: A point t o t he dat a buffer st ores an encoded video fram e. lBufSize: Specifies t he size of t he encoded video fram e. dwCom pFlags: Specifies if t his encoded video fram e is I - fram e. The AVI I F_KEYFRAME value m eans t he fram e is I - fram e.
7.6.4 PSTREAMREADEND Syn t a x void ( * PSTREAMREADEND) ( int nEncNum ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber. Re t ur n V a lue None D e scr ipt ion The point er t o t he St ream Read End callback funct ion called when t he video st ream read process is finished.
7.6.5 STREAMREAD_STRUCT structure Syn t a x t ypedef st ruct { void ( * PSTREAMREADBEGI N) ( int nEncNum ) ; void ( * PSTREAMREADPROC) ( int nEncNum , LPVOI D pSt ream Buf, long lBufSize, DWORD dwCom pFlags) ; void ( * PSTREAMREADEND) ( int nEncNum ) ; } STREAMREAD_STRUCT; Pa r a m e t e r s: PSTREAMREADBEGI N: The point er t o t he St ream Read Begin callback funct ion called when begins t he video st ream read process.
7.7 Method 7.7.1 DVS300_CreateEncSDKInstence Syn t a x int DVS300_Creat eEncSDKI nst ence ( void * * pp) Pa r a m e t e r s pp: A point er t o t he encoding SDK. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_PARAMERROR: Param et er error. D e scr ipt ion This funct ion creat es t he encoding SDK inst ance.
7.7.2 DVS300_InitSDK Syn t a x int DVS300_I nit SDK( void) Pa r a m e t e r s None Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_VERI FYHWERROR: Verify t he hardware error. D e scr ipt ion This funct ion init ializes all param et ers of t he SDK in t he syst em .
7.7.3 DVS300_CloseSDK Syn t a x int DVS300_CloseSDK( void) Pa r a m e t e r s None Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. D e scr ipt ion This funct ion cleans all param et ers of t he SDK and closes up t he SDK.
7.7.4 DVS300_InitEncoder Syn t a x int DVS300_I nit Encoder( int nEncNum , int nEncBufSize) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . nEncBufSize: Specifies t he encoding buffer size. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber. D e scr ipt ion This funct ion opens and init ializes t he specified video encoder.
7.7.5 DVS300_CloseEncoder Syn t a x int DVS300_CloseEncoder( int nEncNum ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber. ENC_ENCI NI TFAI LED: Encoder does not be init ialized successfully. D e scr ipt ion This funct ion closes and releases t he specified video encoder.
7.7.6 DVS300_StartVideoEncode Syn t a x int DVS300_St art VideoEncode( int nEncNum ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber. ENC_ENCI NI TFAI LED: Encoder does not be init ialized successfully.
7.7.7 DVS300_VideoEncode Syn t a x int DVS300_VideoEncode( int nEncNum , LPVOI D lpI nBuf, int I nBufSize, BOOL bKeyFram e) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . lpbiI n: A point er t o t he input buffer st ores t he source video fram e. I nBufSize: Specifies t he size of t he input buffer. bKeyFram e: Specifies if t he video fram e is encoded as a I - fram e. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed.
7.7.8 DVS300_StopVideoEncode Syn t a x int DVS300_St opVideoEncode( int nEncNum ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber. ENC_ENCI NI TFAI LED: Encoder does not be init ialized successfully.
7.7.9 DVS300_GetState Syn t a x int DVS300_Get St at e( int nEncNum ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . Re t ur n V a lue ENC_ENCNUMERROR: I nvalid encoder num ber. D e scr ipt ion This funct ion get s encoding st at e of a specified video encoder.
7.7.10 DVS300_SetStreamReadCB Syn t a x void DVS300_Set St ream ReadCB( STREAMREAD_STRUCT * pSt ream Read) Pa r a m e t e r s pSt ream Read: A point er t o STREAMREAD_STRUCT st ruct ure including t he point ers t o t he St ream Read callback funct ions. Re t ur n V a lue None D e scr ipt ion This funct ion regist ers t he St ream Read callback funct ions t o t he SDK.
7.7.11 DVS300_GetVideoQuant Syn t a x int DVS300_Get VideoQuant ( int nEncNum , int * nQuant ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . nQuant : A point er t o get t he video quant ( 1~ 31) . The default video qualit y is 4. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber.
7.7.12 DVS300_SetVideoQuant Syn t a x int DVS300_Set VideoQuant ( int nEncNum , int nQuant ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber ( 0~ 15) . nQuant : A value t o set t he video quant ( 1~ 31) . The default video qualit y is 4. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber.
7.7.13 DVS300_GetVideoFrameRate Syn t a x int DVS300_Get VideoFram eRat e( int nEncNum , int * nFram eRat e) Pa r a m e t e r s nEncNum : nFram eRat e: Specifies t he encoder num ber ( 0~ 15) . A point er t o get t he video encoding fram e rat e( 1~ 30) . Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber.
7.7.14 DVS300_SetVideoFrameRate Syn t a x int DVS300_Set VideoFram eRat e( int nEncNum , int nFram eRat e) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber ( 0~ 15) . nFram eRat e: A value t o set t he video encoding fram e rat e( 1~ 30) . The default video fram e rat e is 30. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber.
7.7.15 DVS300_GetVideoResolution Syn t a x int DVS300_Get VideoResolut ion( int nEncNum , int * nWidt h, int * nHeight ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . nWidt h: A point er t o get t he widt h of t he video. nHeight : A point er t o get t he height of t he video. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber.
7.7.16 DVS300_SetVideoResolution Syn t a x int DVS300_Set VideoResolut ion( int nEncNum , int nWidt h, int nHeight ) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . nWidt h: A value t o set t he widt h of t he video. The default widt h is 320. nHeight A value t o set t he height of t he video. The default height is 240. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully.
7.7.17 DVS300_GetVideoKeyInterval Syn t a x int DVS300_Get VideoKeyI nt erval( int nEncNum , int * nKeyI nt erval) Pa r a m e t e r s nEncNum : Specifies t he encoder num ber( 0~ 15) . nKeyI nt erval: A point er t o get t he int erval of t he video key fram e( 1~ 300) . Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber.
7.7.18 DVS300_SetVideoKeyInterval Syn t a x int DVS300_Set VideoKeyI nt erval( int nEncNum , int nKeyI nt erval) Pa r a m e t e r s nEncNum : nKeyI nt erval: Specifies t he encoder num ber( 0~ 15) . A value t o set t he int erval of t he video key fram e( 1~ 300) . The default value is 100. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. ENC_ENCNUMERROR: I nvalid encoder num ber.
7.7.19 DVS300_CreateAVIFile Syn t a x HANDLE DVS300_Creat eAVI File( LPCSTR lpcsFileNam e, int nWidt h, int nHeight , int nFram eRat e) Pa r a m e t e r s lpcsFileNam e: Specifies t he file nam e of t he AVI file. nWidt h: Specifies t he widt h of t he video. nHeight : Specifies t he height of t he video. nFram eRat e Specifies t he fram e rat e of t he video. Re t ur n V a lue I f t he funct ion succeeds, t he file handle is ret urned. Ot herwise, t he funct ion ret urns NULL.
7.7.20 DVS300_WriteAVIFile Syn t a x int DVS300_Writ eAVI File( HANDLE hAVI File, LPVOI D lpSt ream Buf, long lBufSize, DWORD dwCom pFlags) Pa r a m e t e r s hAVI File: Specifies t he AVI file handle. lpSt ream Buf: A point er t o t he video st ream dat a buffer writ t en int o t he file. lBufSize: Specifies t he size of t he video st ream dat a buffer. dwCom pFlags: Flag associat ed wit h t his dat a.
7.7.21 DVS300_CloseAVIFile Syn t a x int DVS300_CloseAVI File( HANDLE hAVI File) Pa r a m e t e r s hAVI File: Specifies t he AVI file handle. Re t ur n V a lue ENC_SUCCEEDED: Funct ion succeeded. ENC_FAI LED: Funct ion failed. ENC_SDKI NI TFAI LED: SDK does not be init ialized successfully. D e scr ipt ion This funct ion closes t he specified AVI file.
7.8 Playback Functions Reference Data Type 7.8.1 PlayerRes Syn t a x t ypedef enum t agRes { PLAYER_SUCCEEDED = 1, PLAYER_FAI LED = 0, PLAYER_SDKI NI TFAI LED = - 1, PLAYER_PARAMERROR = - 2, } PlayerRes; D e scr ipt ion The m et hod ret urned code.
7.9 Method 7.9.1 DVS300_CreatePlayerSDKInstence Syn t a x int DVS300_Creat ePlayerSDKI nst ence( void * * pp) Pa r a m e t e r s pp: A point er t o t he playback SDK. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. PLAYER_PARAMERROR: Param et er error. D e scr ipt ion This funct ion creat es playback SDK inst ance.
7.9.2 DVS300_OpenFile Syn t a x int DVS300_OpenFile( LPCSTR lpcsFileNam e) Pa r a m e t e r s lpcsFileNam e: Specifies t he file nam e of t he source video file. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion opens t he source video file and init ializes t he video player. The playback st at us would be set as “ PLAYER_STOPPED” aft er successful open.
7.9.3 DVS300_CloseFile Syn t a x int DVS300_CloseFile( ) Pa r a m e t e r s None. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion closes t he source video file and free resources allocat ed for video player. The playback st at us would be set as “ PLAYER_NOTOPENED” aft er successful close.
7.9.4 DVS300_Play Syn t a x int DVS300_Play( HWND hwndApp, BOOL bAut oResizeWnd) Pa r a m e t e r s hwndApp: A windows handle for display area. bAut oResizeWnd: Specifies if t he display area is resized aut om at ically according t o t he video resolut ion. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion plays t he opened file. The playback st at us would be set as “ PLAYER_PLAYI NG” aft er successfully play.
7.9.5 DVS300_Pause Syn t a x int DVS300_Pause( ) Pa r a m e t e r s None. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion pauses or cont inues t he file t hat has been opened. The playback st at us would be set as “ PLAYER_PAUSED” aft er successful pause.
7.9.6 DVS300_Stop Syn t a x int DVS300_St op( ) Pa r a m e t e r s None. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion st ops t he file t hat is playing. The playback st at us would be set as “ PLAYER_STOPPED” aft er successful st op.
7.9.7 DVS300_Fast Syn t a x int DVS300_Fast ( ) Pa r a m e t e r s None. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion speeds up t he current play speed by one t im e, t wo t im es at m ost . The playback st at us would be set successful speed up.
7.9.8 DVS300_Slow Syn t a x int DVS300_Slow( ) Pa r a m e t e r s None. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion speeds down t he current play speed by one t im e, t wo t im es at m ost . The playback st at us would be set successfully speed down.
7.9.9 DVS300_PlayStep Syn t a x int DVS300_PlaySt ep( ) Pa r a m e t e r s None. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion m akes t he video t o st ep forward one fram e. The playback st at us would be set as “ PLAYER_PAUSED” aft er successful single st ep.
7.9.10 DVS300_GetStatus Syn t a x int DVS300_Get St at us ( ) Pa r a m e t e r s None Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion get s playback st at us.
7.9.11 DVS300_GetCurImage Syn t a x int DVS300_Get CurI m age( LPBYTE * lpI m age, long * pBufSize) Pa r a m e t e r s lpI m age: A point er t o a im age buffer. pBufSize: A long point er t o receive t he ret urned im age buffer size. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion get s current played im age.
7.9.12 DVS300_RegNotifyMsg Syn t a x int DVS300_RegNot ifyMsg( HWND hWnd, UI NT nMsg) Pa r a m e t e r s hWnd: Specifies t he handle of t he window receiving t his m essage. nMsg: Specifies t he user- define m essage. When t his m essage is received, it m eans som e event of t he playback occur such as t he file playing is end. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion regist ers a user- define m essage.
7.9.13 DVS300_CheckFileEnd Syn t a x BOOL DVS300_CheckFileEnd ( ) Pa r a m e t e r s None Re t ur n V a lue I f t he event t hat t he end of file is det ect ed, t his funct ion ret urns TRUE. Ot herwise, t he funct ion ret urns FALSE. D e scr ipt ion This funct ion checks if t he player reach end of file.
7.9.14 DVS300_GetVideoResolution Syn t a x int DVS300_Get VideoResolut ion( int * nWidt h, int * nHeight ) Pa r a m e t e r s nWidt h: An int eger point er t o get t he widt h of t he video. nHeight : An int eger point er t o get t he height of t he video. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion get s widt h and t he height of t he video.
7.9.15 DVS300_GetPlayRate Syn t a x double DVS300_Get PlayRat e( ) Pa r a m e t e r s None Re t ur n V a lue I f t he funct ion succeeded, t he playback rat io is ret urned. Ot herwise, t he funct ion ret urns 0. D e scr ipt ion This funct ion ret rieves t he playback rat e.
7.9.16 DVS300_GetFileTime Syn t a x double DVS300_Get FileTim e( ) Pa r a m e t e r s None Re t ur n V a lue I f t he funct ion succeeded, t he t ot al file t im e is ret urned. Ot herwise, t he funct ion ret urns 0. D e scr ipt ion This funct ion ret rieves t ot al file t im e in seconds.
7.9.17 DVS300_GetPlayedTime Syn t a x double DVS300_Get PlayedTim e( ) Pa r a m e t e r s None Re t ur n V a lue I f t he funct ion succeeded, t he current file t im e is ret urned. Ot herwise, t he funct ion ret urns 0. D e scr ipt ion This funct ion ret rieves current file t im e in seconds.
7.9.18 DVS300_SetPlayPosition Syn t a x int DVS300_Set PlayPosit ion ( double dTim e) Pa r a m e t e r s dTim e: Specifies t he file t im e in seconds. Re t ur n V a lue PLAYER_SUCCEEDED: Funct ion succeeded. PLAYER_FAI LED: Funct ion failed. D e scr ipt ion This funct ion seeks t he file t o t he specified file t im e.
7.9.19 DVS300_GetFileTotalFrames Syn t a x LONGLONG DVS300_Get FileTot alFram es( ) Pa r a m e t e r s None Re t ur n V a lue I f t he funct ion succeeded, t he t ot al num ber of t he fram e in t he file is ret urned. Ot herwise, t he funct ion ret urns 0. D e scr ipt ion This funct ion ret rieves t ot al num ber of t he fram e in t he file.
7.9.20 DVS300_GetPlayedFrames Syn t a x LONGLONG DVS300_Get PlayedFram es( ) Pa r a m e t e r s None Re t ur n V a lue I f t he funct ion succeeded, t he current fram e num ber of t he file is ret urned. Ot herwise, t he funct ion ret urns 0. D e scr ipt ion This funct ion ret rieves current fram e num ber of t he file. Se e Also DVS300_Get FileTot alFram es 1.•This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. 2.