Summary of Contents for ADLINK Technology PCI-MP4S
Page 1
PCI-MP4S 4-CH MPEG4 Software Video Compression Card User’s Manual Manual Rev. 2.00 Revision Date: January 7, 2005 Part No: 50-15029-101 Advance Technologies; Automate the World.
Page 2
Copyright 2005 ADLINK TECHNOLOGY INC. All Rights Reserved. The information in this document is subject to change without prior notice in order to improve reliability, design, and function and does not represent a commitment on the part of the manufacturer.
Page 3
Getting Service from ADLINK Customer Satisfaction is top priority for ADLINK Technology Inc. Please contact us should you require any service or assistance. ADLINK TECHNOLOGY INC. Web Site: http://www.adlinktech.com Sales & Service: Service@adlinktech.com TEL: +886-2-82265877 FAX: +886-2-82265717 Address: 9F, No. 166, Jian Yi Road, Chungho City,...
Image quality and bit- rate are adjustable for more efficient data transmission via TCP/IP. The PCI-MP4S also has a sensitive partial or whole image motion detection area for smart video encoding or alarm signaling. Up to 4X image expansion technology for enhanced decoded image quality is available.
1.1 Features Image Acquisition Acquisition speed NTSC 1 Camera 2 Cameras 3 Cameras 4 Cameras 8 Cameras Fields Frames 1 Camera 2 Cameras 3 Cameras 4 Cameras 8 Cameras Fields Frames Table 1-1: Acquisition Speed Color Image: The color video format is compatible with the follow- ing composite video input formats: NTSC-M, NTSC-Japan, PCL- B, PAL-D, PAL-G, PAL-H, PAL-I, PAM-M, PAL-N, and SECAM Monochrome Image: The monochrome video acquisition is com-...
Watch Dog Timer A hardware watchdog is available on the PCI-MP4S and is able to monitor PC application operation and will automatically reset the PC after a programmable inactivity time-out. This ensures reliable operation of remote systems.
I/O Lines The PCI-MP4S is fitted with TTL compatible I/O lines protected against overloads and electrostatic discharges. Each line may be configured for input or output. They can be used to trigger acquisi- tions or to report alarm signals. Supported Software WDM driver - Supports VC++/VB/BCB/Delphi programming under Windows NT/98/2000/XP platforms with DLL.
1.3 System requirement For real-time* to compression 4-CH color MPEG4 video require- ment, the PCI-MP4S minimum system requirement are as follows: Platform: Pentium 4, 2.4GHz CPU, 256MB DDRAM above. VGA display: AGP 4X above (No recommend VIA or SiS VGA chipset solution).
Video Format: QCIF (160*120) Decoding # Port CPU loading Quality Microsoft Media ADLINK M4V Encoding (max. %) Player Player Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Table 1-3: Video Format: QCIF (160*120) Introduction...
Page 18
Lowest Normal High Highest Lowest Normal High 100* Highest 100* Table 1-3: Video Format: QCIF (160*120) * When CPU loading up to 100% then will start have time-lapse effect. Introduction...
Video Format: CIF(320*240) Decoding # Port CPU loading Quality Microsoft ADLINK M4V Encoding (max. %) Media Player Player Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High 100* Highest 100* Table 1-4: Video Format: CIF(320*240) * When CPU loading up to 100% then will start have time-lapse effect.
Video Format: 4CIF(640*480) Decoding # Port CPU loading Quality Microsoft ADLINK M4V Encoding (max. %) Media Player Player Lowest Normal High Highest Lowest Normal High 100* Highest 100* Table 1-5: Video Format: 4CIF(640*480) * When CPU loading up to 100% then will start have time-lapse effect.
Video Format: QCIF (160*120) Decoding # Port CPU loading Quality Microsoft Media ADLINK M4V Encoding (max. %) Player Player Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Table 1-6: Video Format: QCIF (160*120) Introduction...
Page 22
Lowest Normal High Highest Lowest Normal High Highest Table 1-6: Video Format: QCIF (160*120) Introduction...
Video Format: CIF(320*240) Decoding # Port CPU loading Quality Microsoft ADLINK Encoding (max. %) Media Player M4V Player Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High Highest Table 1-7: Video Format: CIF(320*240) Introduction...
Page 24
Lowest Normal High Highest Lowest Normal High 100* Highest 100* Table 1-7: Video Format: CIF(320*240) * When CPU loads up to 100%, the time-lapse effect would com- mence. Introduction...
Video Format: 4CIF(640*480) Decoding # Port CPU loading Quality Microsoft ADLINK M4V Encoding (max. %) Media Player Player Lowest Normal High Highest Lowest Normal High Highest Lowest Normal High 100* Highest 100* Table 1-8: Video Format: 4CIF(640*480) * When CPU loads up to 100%, the time-lapse effect would com- mence.
Hardware Reference 2.1 PCI-MP4S Specification Video Input Four composite video color digitizers Video input interface: four composite BNC connectors Coaxial cable recommended Channel Extension Expandable up to 16 channels Channel extension interface: 10-pin ribbon cable to onboard 10-pin header connector for...
Watch Dog Timer For monitoring applications – will reset the PC after a pro- grammable inactivity time-out. Interface: 2-pin header 4-channel software trigger output 4-channel programmable trigger scale (60µs – 16ms) Figure 2-1: 4-channel software trigger output User EEPROM Includes 1kbit available EEPROM Form Factor 32-bit, 33/66MHz PCI half-size board Hardware Reference...
PCI-MP4S Appearance Figure 2-2: PCI-MP4S Appearance PCI-MP4S Standard Accessories Watch dog reset cable GPIO bracket User’s Manual All in One CD Figure 2-3: Watch dog reset cable, GPIO bracket, All in One CD Hardware Reference...
PCI-MP4S Connectors and Pin Definitions Video Inputs Connector Definition Video IN – CH 0 Video IN – CH 1 Video IN – CH 2 Video IN – CH 3 Table 2-2: Video Inputs Channel Extension Video Input (CN2) Function Function...
Channel Extension Video Input (CN3) Function Function CH8 video in CH9 video in CH10 video in CH11 video in Table 2-4: Channel Extension Video Input (CN3) Channel Extension Video Input (CN5) Function Function CH12 video in CH13 video in CH14 video in CH15 video in Table 2-5: Channel Extension Video Input (CN5) GPIO (CN8)
2.2 RTV-E4 Extension board for RTV-24 and PCI- MP4S (Optional item, not a standard accessory) Figure 2-4: RTV-E4 RTV-E4 Connectors and Pin Definitions Channel Extension Video Input (J11) Function Function CH4 video in CH5 video in CH6 video in CH7 video in Table 2-9: RTV-E4 Connectors and Pin Definitions Hardware Reference...
2.3 RTV-I4 Isolation GPIO board for RTV-24 and PCI- MP4S (Optional item, not a standard accessory) Figure 2-5: RTV-I4 RTV-I4 Connectors and Pin Definitions Relay output signal select: Relay output types: Normal open or Normal closed Signal names: RY1, RY2, RY3, RY4 Jumper addresses: J5, J6, J7, J8 Type select: Normal open: 2-3, Normal close: 1-2 Normal Open...
Page 35
Relay I/O voltage requirement: Input: +5V to +24V Output: AC: 0.5A/125V, DC: 1A/30V or 0.3A/100V STRG output signal select: STRG output signal types: Active high or Active low Signal names: STRG_OUT1, STRG_OUT2, STRG_OUT3, STRG_OUT4 Jumper addresses: J1, J2, J3, J4 Type select: Active high =>...
Installation Guide 3.1 Hardware Installation PCI-MP4S Use the following steps to install the PCI-MP4S board on the PCI bus: 1. Remove the computer cover using the instructions from the computer manual. 2. Check that there is an empty PCI (32-bit) slot to accom- modate the board.
5. Once perfectly aligned with an empty slot, press the board firmly but carefully into the connector. 6. Anchor the board by replacing the screw. 7. Connect your video sources for image acquisition tests. For details, refer to the “ViewCreator” utility. 8.
Page 46
7. Click Finish and restart the system. Installation Guide...
Page 47
The Found New Hardware Wizard window appears after system restarts. Click NEXT and follow the following steps to complete the new hardware wizard. Installation Guide...
Page 49
Click Next. Click Finish. Another Found New Hardware Wizard window appears when you finished the wizard. Repeat step 7.1 until you fin- ished all wizards. 8. Go to the System Control Panel and check to see that four “ADLINK Angelo Audio Device” and four “ADLINK Angelo Video Device”...
Page 50
If you see a yellow question mark appear in front of the new driver’s name, you need to setup the driver manually. Installation Guide...
Page 51
Right click on the driver name, Multimedia Controller which is a audio device, then select Properties on the popup menu. Follow the steps below to complete the driver re-installment. Installation Guide...
Page 53
Click Next. Check Specify a location then click Next. In Copy manufacture’s files from: text box insert the location of driver installed in step 6, for example, ‘c:\Pro- gram Files\ADLINK\Angelo.RTV\Drivers\Win2KXP’. Installation Guide...
Page 54
Then click OK. Click Next. Installation Guide...
Page 55
Click Finish to complete this wizard. This device is working properly. The yellow question mark disappears. Installation Guide...
Page 56
Right click on the driver name, Multimedia Video Controller which is a video device. Repeat step 8.2 onwards. Repeat steps 8.2 and 8.3 until all audio devices and video devices are working properly. Note: If the system prompts you to restart the computer, select No until all drivers are reinstalled, then restart the computer.
ViewCreator Utility Once hardware installation is complete, ensure that the system is correctly configured before running the ViewCreator utility. This chapter outlines how to set up a vision system and manually con- trol Angelo series cards to verify correct operation. ViewCreator provides a simple yet powerful means to setup, configure, test, and debug the vision system.
4.2 Component Description Tree Browser The Tree Browser window lists the PCI-MP4S cards and video ports available at the local computer. Image View The Image View window displays Full, CIF, and QCIF size images and image effects. Control Panel The control panel allows for making video adjustments, including brightness, hue, contrast, etc.
MPEG4 Encoding Single channel display Click a video Port icon in the Tree Browser window. A video frame will appear in the Image View window. Select Encoder->Encode in menu bar to bring up the Encoder Setting dialog box, then click the start button. Note: 1.
Video adjustments Click and hold the left mouse button on the Hue slider of the Control Panel and drag the cursor to change its value. Values range from 0 to 255. Contrast Click and hold the left mouse button on the Contrast slider of the Control Panel and drag the cursor to change its value.
Cross Line Check the Cross Line check box in the Control Panel. A cross- hair will appear in the center of the rectangle. Tools GPIO and LED Click Tool in the menu bar and select GPIO & LED to bring up the GPIO dialog box.
Function Library This chapter describes the API for Mpeg4 encode and decode. Users can use these functions to develop application programs under Visual C++, Visual Basic, C++ Builder, and Delphi. 5.1 List of Functions Category Function AngeloMPEG4_Encode_Initial(Encoder_Index, Local_Address, Quality , Angelo_PortNo, Angelo_ChannelNo, Angelo_Color_Format, Angelo_Video_Format) AngeloMPEG4_Encode_InitialEx(Encoder_Index, Local_Address, Bitrate, frame_rate, Angelo_PortNo, Angelo_ChannelNo,...
Category Function System AngeloMPEG4_Get_Version( Mpeg4_DLLVersion, (Section AngeloRTV_DLLVersion, Reserved) 5.4) Table 5-1: List of Functions 5.2 Encode Functions @ Name AngeloMPEG4_Encode_Initial(Encoder_Index, Local_Address, Quality , Angelo_PortNo, Angelo_ChannelNo, Angelo_Color_Format, Angelo_Video_Format): Initialize the encoder. AngeloMPEG4_Encode_InitialEx(Encoder_Index, Local_Address, Bitrate, frame_rate, Angelo_PortNo, Angelo_ChannelNo, Angelo_Color_Format, Angelo_Video_Format): Ini- tialize the encoder for advanced. AngeloMPEG4_Encode_Set_Callback(Encoder_Index, CallBackProc): Set up the callback function for encoder.
AngeloMPEG4_Encode_Set_Motion_Detection(Encode r_Index, Area, enable, Threshold, interval, action, X_Start, Y_Start, Width, Height): Set the motion detection criteria, and action when motion occurs on the encode site. @ Description AngeloMPEG4_Encode_Initial: This function initializes the video encoder. Its library supports 16 video encoders with the video source coming from Angelo_PortNo and Angelo_ChannelNo in the Angelo cards.
AngeloMPEG4_Encode_Save_File_Start: Use this function to save the encoded image into an “.avi” or “.m4v” video file. The “.avi” file is the standard video format, and “.m4v” is only accessible in this function library. Note: 1. Do not add a file extension to the file name. 2.
Page 68
Angelo_Color_Format, int Angelo_Video_Format) int AngeloMPEG4_Encode_InitialEx(int Encoder_Index, char* Local_Address, int Bitrate, int frame_rate, int Angelo_PortNo, int Angelo_ChannelNo, int Angelo_Color_Format, int Angelo_Video_Format); Visual Basic (Windows 98/NT/2000/XP) AngeloMPEG4_Encode_Initial(ByVal Encoder_Index As Long, ByVal Local_address As String, ByVal Quality As Long, ByVal Angelo_PortNo As Long, ByVal Angelo_ChannelNo As Long, ByVal Angelo_Color_Format As Long, ByVal Angelo_Video_Format As Long) As Long AngeloMPEG4_Encode_InitialEx (ByVal Encoder_Index...
@ Argument Encoder_Index: Indicates the channel index for the MPEG4 encoder. The range of channels is 0 – 15. Local_Address: Indicates the IP Address at the encoding site. Set 0, NULL or nil for default setting. Quality Index: NTSC Quality Value Level 4CIF (640 x 480)
Page 70
Bitrate: Indicates the number of bits per second. frame_rate: Indicates the number of frames that the MPEG4 encoder will encode per second. The range of the frame_rate is 1 – 30. Angelo_PortNo: The port number is the zero index of the Angelo series card.
Page 71
int Bitrate = 480000; int frame_rate = 15; Result = AngeloMPEG4_Encode_Initial (Encoder_Index, Quality, Angelo_PortNo, Angelo_ChannelNo, Angelo_Color_Format, Angelo_Video_Format); Result = AngeloMPEG4_Encode_InitialEx (Encoder_Index, Bitrate, frame_rate, Angelo_PortNo, Angelo_ChannelNo, Angelo_Color_Format, Angelo_Video_Format); < Visual Basic > Dim result As Long Dim Encoder_Index As Long, Quality As Long, Angelo_PortNo As Long, Angelo_ChannelNo As Long, Angelo_Color_Format As Long, Angelo_Video_Format As Long, Bitrate As...
Page 73
Visual Basic (Windows 98/NT/2000/XP) AngeloMPEG4_Encode_Set_Callback (ByVal Encoder_Index As Long, ByVal Encode_CallBackProcas As Long) As Long Delphi (Windows 98/NT/2000/XP) AngeloMPEG4_Encode_Set_Callback(Encoder_Index:Lo ngint; lpEncodeCallBackProc:EncodeCallBackProc):Lo ngint; @ Argument Encoder_Index: Indicates the channel Index for the MPEG4 encoder. The range of channels is 0 – 15. @ Return Code @ Example <...
Page 74
< Visual Basic > Dim Encoder_Index As Long, Result As Long Public Sub encode_callback(ByVal Encoder_Index As Long, ByVal int_status As Long, param_str As param_struct) Select Case (int_status) Case 1: “preview Case 16: “ motion detection End Select End Sub Channel =0 Result = AngeloMPEG4_Encode_Set_Callback(Encoder_Ind ex, Encode_Callback)
Page 75
// Main Code Encoder_Index, Result: Longint; begin Encoder_Index:= 0; Result := AngeloMPEG4_Encode_Set_Callback(Encoder_Ind ex, Encode_Callback); end; AngeloMPEG4_Encode_Start– AngeloMPEG4_Encode_Stop– AngeloMPEG4_Encode_Close– @ Syntax C/C++ (Windows 98/NT/2000/XP) int AngeloMPEG4_Encode_Start(int Encoder_Index); int AngeloMPEG4_Encode_Stop(int Encoder_Index); int AngeloMPEG4_Encode_Close(int Encoder_Index); Visual Basic (Windows 98/NT/2000/XP) AngeloMPEG4_Encode_Start (ByVal Encoder_Index As Long) As Long AngeloMPEG4_Encode_Stop (ByVal Encoder_Index As Long) As Long...
Page 76
@ Argument Channel: Indicates the channel index for the MPEG4 encoder. The range of channels is 0 – 15. @ Return Code @ Example < VC/BCB > int Result; int Encoder_Index = 0; Result = AngeloMPEG4_Encode_Start(Encoder_Index); Result = AngeloMPEG4_Encode_Stop(Encoder_Index); Result = AngeloMPEG4_Encode_Close(Encoder_Index); <...
Page 77
Result := AngeloMPEG4_Encode_Close(Encoder_Index); end; AngeloMPEG4_Encode_Save_File_Start– AngeloMPEG4_Encode_Save_File_Stop– AngeloMPEG4_Encode_Create_Directory– @ Syntax C/C++ (Windows 98/NT/2000/XP) AngeloMPEG4_Encode_Save_File_Start(int Encoder_Index, char* n_file_name, long interval_second, long format); AngeloMPEG4_Encode_Save_File_Stop(int Encoder_Index); int AngeloMPEG4_Encode_Create_Directory(int Encoder_Index, char* Dir); Visual Basic (Windows 98/NT/2000/XP) AngeloMPEG4_Encode_Save_File_Start (ByVal Encoder_Index As Long, ByVal n_file_name As String, ByVal interval_second As Long, ByVal format As Long) As Long AngeloMPEG4_Encode_Save_File_Stop (ByVal Encoder_Index As Long) As Long...
Page 78
AngeloMPEG4_Encode_Create_Directory(Encoder_Inde x:Longint; Dir:String):Longint; @ Argument Encoder_Index: Indicates the channel index for the MPEG4 encoder. The range of channels is 0 – 15. n_file_name: The argument is the path and name of the file that the encoded image will be saved to. interval_second: This argument is the number of seconds of encoded video to be saved.
Page 79
< Visual Basic > Dim Result As Long, Encoder_Index As Long, interval_second As Long, format As Long Encoder_Index = 0; n_file_name = “test” interval_second = 60 format = 3 “save both format Dir = “temp” Result = AngeloMPEG4_Encode_Save_File_Start(Encoder_ Index, n_file_name, interval_second, format) <...
AngeloMPEG4_Encode_Set_Motion_Detection– @ Syntax C/C++ (Windows 98/NT/2000/XP) int AngeloMPEG4_Encode_Set_Motion_Detection(int Encoder_Index,int Area,int enable, int Threshold,int interval,int action,int X_Start,int Y_Start,int Width,int Height); Visual Basic (Windows 98/NT/2000/XP) AngeloMPEG4_Encode_Set_Motion_Detection(ByVal Encoder_Index As Long, ByVal Area As Long, ByVal enable As Long, ByVal Threshold As Long, ByVal interval As Long, ByVal action As Long, ByVal X_Start As Long, ByVal Y_Start As Long, ByVal Width As Long, ByVal Height As Long) As Long...
Page 81
Threshold: Determines the sensitivity of motion detection measurement. The valid values are from 0 - 15, with 0 being the highest sensitivity. The time interval between measurements of Interval: motion detection. Action: This argument describes what actions the function will do. bit 0: Callback, X_Start, Y_Start, Width, Height: Sets the boundary of the motion detection area.
Page 82
< Visual Basic > Dim Result As Long, Encoder_Index As Long, enable As Long, Threshold As Long, interval As Long, action As Long, area As Long, X_Start As Long, Y_Start As Long, Width As Long, Height As Long Encoder_Index = 0 enable = 1 Threshold = 5 interval = 3...
5.3 Decode Functions @ Name AngeloMPEG4_Decode_Set_Callback(Decoder_Index, CallBackProc) – Setup the callback function for decoder. AngeloMPEG4_Decode_Connect(Decoder_Index, Encoder_IP, Encoder_Index) – Connect to the encoder. AngeloMPEG4_Decode_Disconnect(Decoder_Index) – Disconnect from the encoder. AngeloMPEG4_Decode_Set_Image_Config(Decoder_In dex, ConfigIndex , Value) – Adjust the brightness, con- trast, hue etc.. AngeloMPEG4_Decode_Set_Motion_Detection(Decode r_Index, Area,...
Page 85
AngeloMPEG4_Decode_Save_File_Start(Decoder_Ind ex, n_file_name, interval_second, format) – Start to save compressed file in decode site. AngeloMPEG4_Decode_Save_File_Stop(Decoder_Inde x) – Stop saving compressed file in decode site. AngeloMPEG4_Decode_File(Decoder_Index, file_name, iWidth, iHeight, Byte_Per_Pixel, - Decode from *.avi or Total_Frame,Time_Seconds) *.m4v file AngeloMPEG4_Decode_File_Start(Decoder_Index, Mode) - Start to decode from file AngeloMPEG4_Decode_File_Set_Position(Decoder_I ndex, Frame_Index) –...
AngeloMPEG4_Decode_ Connect: Use this function to establish a connection between decoder and encoder. The video date will then be transferred through this connection. AngeloMPEG4_Decode_ Disconnect: Use this function to close the connection between decoder and encoder. After closing the connection, the decoder will not receive video data from encoder.
automatically. Use this function to restart the video data transmission, if “AngeloMPEG4_Decode_Stop” has been called to stop the transmission. AngeloMPEG4_Decode_Stop: This function only stops the video data transmission between decoder and encoder, but the connection is still established. AngeloMPEG4_Decode_Get_FlowRate: If the connection between encoder and decoder is established, use this function to query the current data flow rate between encode and decode.
Note: 1. Do not add the file extension name. 2. Users must install the XVID Codec from the setup disk. The “.avi” file can be played in MS Media Player. AngeloMPEG4_Decode_Save_File_Stop: If the connection between encoder and decoder is established, use this function to stop saving video file on the decode site.
AngeloMPEG4_Decode_File_Pause: The file is paused until AngeloMPEG4_Decode_File_Continue is activated. AngeloMPEG4_Decode_File_Get_Position: Get the current frame index of the file. AngeloMPEG4_AVI_2_M4V: Use this function to translate a closed “.avi” video file into “.m4v” format. AngeloMPEG4_ M4V_2_AVI: Use this function to translate a closed “.m4v” video file into “.avi”...
Page 90
Delphi (Windows 98/NT/2000/XP) AngeloMPEG4_Decode_Connect(Decoder_Index:Longint ; Encoder_IP:String; Encoder_Index:Longint):Longint; AngeloMPEG4_Decode_Disconnect(Decoder_Index:Long int):Longint; @ Argument Decoder_Index: Indicates the channel number of MPEG4 Decoder. The range of channel is 0 - 15. Encoder_IP: The IP address of MPEG4 Encode. Encoder_Index: The channel of MPEG4 Encoder. @ Return Code 0: ERROR_NoError @ Example...
Page 91
<Delphi > channel: Longint; Encoder_IP: String; Encoder_channel: Longint; Result: Longint; begin channel := 0; Remote_IP := ‘127.0.0.1’; //localhost Result := AngeloMPEG4_Decode_Connect(channel, Encoder_IP, Encoder_channel); Result := AngeloMPEG4_DecodeDisconnect(channel); end; AngeloMPEG4_Decode_Set_Callback– @ Syntax C/C++ (Windows 98/NT/2000/XP) int AngeloMPEG4_Decode_Set_Callback(int Decoder_Index, void ( __stdcall *CallBackProc)(int channel, long int_status, long VideoBufferaddress));...
Page 92
int_status: Interrupt status: Bit 0: Image ready Bit 1: Motion Detection occur Bit 2: Connection establish @ Return Code 0: ERROR_NoError @ Example < VC/BCB > int Result; int channel = 0; void __stdcall Decode_Callback(int channel, long int_status, long VideoBufferaddress) if((int_status &...
Page 93
int Bitrate = 0, frame_rate = 0, colorspace = 0; AngeloMPEG4_Decode_Get_Config(channel, &iWidth, &iHeight, &videoformat, &colorspace, &Bitrate, &frame_rate); Result = AngeloMPEG4_Decode_Set_Callback(channel, Decode_Callback); < Visual Basic > Dim Result As Long, channel As Long Public Sub lpcallback(ByVal channel As Long, ByVal int_status As Long, ByVal VideoBufferaddress As Long) If int_status And &H2 Then 'detected motion...
Page 94
Bitrate, Framerate, colorspace, videoformat: Longint; begin case int_status of 1: begin {********* image buffer OK *********} // draw image here end; 2: begin {********* Motion Detected *********} end; 4: begin {********* Connect Ready Interrupt *********} // You can get image config here and do somthing end;...
Visual Basic(Windows 98/NT/2000/XP) AngeloMPEG4_Decode_Set_Image_Config(ByVal channel As Long, ByVal Decoder_Index As Long, ByVal Value As Long) As Long Delphi (Windows 98/NT/2000/XP) AngeloMPEG4_Decode_Set_Image_Config(Decoder_Inde x:Longint; ConfigIndex:Longint; Value:Longint):Longint; @ Argument Decoder_Index: Indicate the channel number of Decoder. The range of channel is 0 ~ 15. ConfigIndex: 0 for BRIGHTNESS 1 for HUE...
Page 96
@ Return Code 0: ERROR_NoError @ Example < VC/BCB > int Result; int channel = 0; int ConfigIndex = 0; int value = 128; Result = AngeloMPEG4_Decode_Set_Image_Config(channel , ConfigIndex, value); < Visual Basic > Dim Result As Long, channel As Long, ConfigIndex As Long, value As Long channel = 0 ConfigIndex = 0...
Page 97
AngeloMPEG4_Decode_Set_Motion_Detection– @ Syntax C/C++ (Windows 98/NT/2000/XP) int AngeloMPEG4_Decode_Set_Motion_Detection(int Decoder_Index,int Area,int enable, int Threshold,int interval,int action,int X_Start,int Y_Start,int Width,int Height); Visual Basic (Windows 98/NT/2000/XP) AngeloMPEG4_Decode_Set_Motion_Detection(ByVal Decoder_Index As Long, ByVal enable As Long, ByVal Threshold As Long, ByVal interval As Long, ByVal action As Long) As Long Delphi (Windows 98/NT/2000/XP) AngeloMPEG4_Decode_Set_Motion_Detection(Decoder_ Index:Longint;...
Page 98
Action: The argument descript what actions the function will bit 0: Callback, bit 1: Reserved, bit 2: Send motion frame Example: when action = 1 + 4, the function will perform callback and send the motion image. X_Start, Y_Start, Width, Height: Set the boundary of motion detection area.
Page 100
Result = AngeloMPEG4_Decode_Set_Motion_Detection(cha nnel, area, 0, Threshold, interval, action, X_Start, Y_Start, Width, Height); end; AngeloMPEG4_Decode_Get_Config– @ Syntax C/C++ (Windows 98/NT/2000/XP) int AngeloMPEG4_Decode_Get_Config(int Decoder_Index, int* iWidth, int* iHeight, int* video_format, int* color_format, int* Bitrate, int* frame_rate); Visual Basic(Windows 98/NT/2000/XP) AngeloMPEG4_Decode_Get_Config (ByVal Decoder_Index As Long, ByRef iWidth As Long, ByRef iHeight As Long, ByRef video_format As Long, ByRef color_format As Long, ByRef...
Page 101
video_format: Full NTSC (640*480) = 0, Full PAL (768*576) = 1, CIF NTSC (320*240) = 2, CIF PAL (384*288) = 3, QCIF NTSC (160*120) = 4, QCIF PAL (192*144) = 5, color_format: RGB16 = 0, GRAY = 1, RGB15 = 2, RGB24 = 3, RGB32...
Page 102
@ Return Code 0: ERROR_NoError @ Example < VC/BCB > int Result; int channel = 0; int iWidth = 0; int iHeight = 0; int video_format = 0; int color_format = 0; int Bitrate = 0; int frame_rate = 0; Result = AngeloMPEG4_Decode_Get_Config(channel, &iWidth, &iHeight, &videoformat, &color_format, &Bitrate, &frame_rate);...
Page 103
Result := AngeloMPEG4_Decode_Get_Config(channel, iWidth, iHeight, videoformat, colorspace, Bitrate, frame_rate); end; AngeloMPEG4_Decode_Start– AngeloMPEG4_Decode_Stop– @ Syntax C/C++ (Windows 98/NT/2000/XP) int AngeloMPEG4_Decode_Start(int Decoder_Index); int AngeloMPEG4_Decode_Stop(int Decoder_Index); Visual Basic(Windows 98/NT/2000/XP) AngeloMPEG4_Decode_Start(ByVal Decoder_Index As Long) As Long AngeloMPEG4_Decode_Stop(ByVal Decoder_Index As Long) As Long Delphi (Windows 98/NT/2000/XP) AngeloMPEG4_Decode_Start(Decoder_Index:Longint): Longint;...
Page 104
int Result; int channel = 0; Result = AngeloMPEG4_Decode_Start(channel); Result = AngeloMPEG4_Decode_Stop(channel); < Visual Basic > Dim Result As Long, channel As Long channel = 0 Result = AngeloMPEG4_Decode_Start(channel) Result = AngeloMPEG4_Decode_Stop(channel) < Delphi > channel: Longint; Result: Longint; begin channel := 0;...
Page 105
@ Argument Decoder_Index: Indicates the channel number of MPEG4 Decoder. The range of channel is 0 - 15. Byte_Second: The current flow rate of MPEG4 streaming measured in Byte/sec. @ Return Code 0: ERROR_NoError @ Example < VC/BCB > int Result; int channel = 0;...
Page 106
AngeloMPEG4_Decode_ ReInitial– AngeloMPEG4_Decode_ ReInitialEx– @ Syntax C/C++ (Windows 98/NT/2000/XP) int AngeloMPEG4_Decode_ReInitial(int Decoder_Index, int Quality, int Angelo_Video_Format); int AngeloMPEG4_Decode_ReInitialEx(int Decoder_Index, int Bitrate, int frame_rate, int Angelo_Video_Format); Visual Basic (Windows 98/NT/2000/XP) AngeloMPEG4_Decode_ReInitial (ByVal Decoder_Index As Long, ByVal Quality As Long, ByVal Video_Format As Long) As Long AngeloMPEG4_Decode_ReInitialEx (ByVal Decoder_Index As Long, ByVal Bitrate As Long, ByVal frame_rate As Long, ByVal...
Page 108
int Result; int channel = 0; int Quality =0 int Bitrate = 480000; int frame_rate = 15; int Angelo_Video_Format = 2; Result = AngeloMPEG4_Decode_ReInitia(channel, Quality, Angelo_Video_Format); Result = AngeloMPEG4_Decode_ReInitialEx(channel, Bitrate, frame_rate, Angelo_Video_Format); < Visual Basic > Dim Result As Long, channel As Long, Quality As Long, Bitrate As Long, frame_rate As Long, Angelo_Video_Format As Long channel = 0...
Page 109
AngeloMPEG4_Decode_ Save_File_Start– AngeloMPEG4_Decode_ Save_File_Stop– @ Syntax C/C++ (Windows 98/NT/2000/XP/CE.NET) int AngeloMPEG4_Decode_Save_File_Start(int Decoder_Index, char* n_file_name, long interval_second, long format); int AngeloMPEG4_Decode_Save_File_Stop(int Decoder_Index); Visual Basic (Windows 98/NT/2000/XP) AngeloMPEG4_Decode_Save_File_Start (ByVal Decoder_Index As Long, ByVal n_file_name As String, ByVal interval_second As Long, ByVal format As Long) As Long AngeloMPEG4_Decode_Save_File_Stop (ByVal Decoder_Index As Long) As Long Delphi (Windows 98/NT/2000/XP)
Byte_Per_Pixel As Long, Total_Frame As Long, Time_Seconds As Long) As Long AngeloMPEG4_M4V _2_ AVI (ByVal file_name As String, iWidth As Long, iHeight As Long, Byte_Per_Pixel As Long, Total_Frame As Long, Time_Seconds As Long) As Long Delphi (Windows 98/NT/2000/XP) AngeloMPEG4_Decode_File(Decoder_Index:Longint; file_name:String; var iWidth:Longint; var iHeight:Longint;...
Page 114
file_name: The name of file to save to, includes the path and extension of file name. iWidth: Indicate the width of the MPEG4 image size. iHeight: Indicates the height of the MPEG4 image size. Byte_Per_Pixel: Number of Bytes per Pixel Total_Frame: Number of frames in the MPEG4 file.
Page 119
Result := AngeloMPEG4_Decode_File_Set_Position(m_Deco der_Channel,m_total_frame div 2); Result := AngeloMPEG4_Decode_File_Pause(m_Decoder_Cha nnel); Result := AngeloMPEG4_Decode_File_Continue(m_Decoder_ Channel); Result := AngeloMPEG4_Decode_File_Get_Position(m_Deco der_Channel,m_pos); Result := AngeloMPEG4_Decode_Stop(m_Decoder_Channel); Result:=AngeloMPEG4_Decode_M4V_2_AVI(m4v_filenam e,Width,Height,Byte_Pixel,m_total_frame,m_T ime_Seconds); Result:=AngeloMPEG4_Decode_AVI_2_M4V(avi_filenam e,Width,Height,Byte_Pixel,m_total_frame,m_T ime_Seconds); end; Function Library...
5.4 System Functions @ Name AngeloMPEG4_Get_Version(lMpeg4_DLLVersion, AngeloRTV_DLLVersion, Reserved) @ Description AngeloMPEG4_Get_Version: Use this function to get the software information. AngeloMPEG4_Get_Version – @ Syntax C/C++ (Windows 98/NT/2000/XP/CE.NET) int AngeloMPEG4_Get_Version(long *Mpeg4_DLLVersion, long *AngeloRTV_DLLVersion, long *Reserved); Delphi (Windows 98/NT/2000/XP) AngeloMPEG4_Get_Version(var Mpeg4_DLLVersion:Longint; var AngeloRTV_DLLVersion:Longint; var Reserved:Longint):Longint;...
Page 121
@ Argument Mpeg4_DLLVersion: Indicates the current version of the MPEG4 DLL. It is of 4 rows in length. AngeloRTV_DLLVersion: Indicates the current version of AngeloRTV DLL. It is of 4 rows in length. @ Return Code 0: ERROR_NoError @ Example <...
Appendix Appendix A: Glossary Brightness: Attribute of a visual sensation according to which an area appears to exhibit more or less light CCIR: Committee Consulat International Radiotelegraphique. This is a standards committee of the International Telecommunications Union, which made the technical recommendation for European 625 line standard for video signals.
Page 124
Frame: One frame (two fields) of video contains the full vertical interlaced information content of the picture. For NTSC this consists of 525 lines and PAL a frame is consisted of 625 lines. Gamma: Cathode ray tubes (CRTs) do not have a linear relationship between brightness and the input voltage applied.
Page 125
Ireland) and PAL M (hybrid standard, having the same resolution as NTSC, but uses PAL transmission and color coding technol- ogy). Saturation: A characteristic describing color amplitude or intensity. A color of a given hue may consist of low or high saturation value, which relates to the vividness of color.
Appendix B: Standard Compliance Notice for USA Compliance Information Statement (Declaration of Conformity Procedure) DoC FCC Part 15 This equipment has been tested and found to comply with the lim- its for a Class A digital device, pursuant to Part 15 of the FCC Rules.
Page 127
Notice for Europe This product is in conformity with the Council Direc- tive 89/336/EEC amended by 92/31/EEC and 93/ 68/EEC This equipment has been tested and found to comply with EN55022/CISPR22 and EN55024/CISPR24. To meet EC require- ments, shielded cables must be used to connect a peripheral to the card.
Warranty Policy Thank you for choosing ADLINK. To understand your rights and enjoy all the after-sales services we offer, please read the follow- ing carefully. 1. Before using ADLINK’s products please read the user man- ual and follow the instructions exactly. When sending in damaged products for repair, please attach an RMA appli- cation form which can be downloaded from: http:// rma.adlinktech.com/policy/.
Page 130
3. Our repair service is not covered by ADLINK's two-year guarantee in the following situations: Damage caused by not following instructions in the user's manual. Damage caused by carelessness on the user's part dur- ing product transportation. Damage caused by fire, earthquakes, floods, lightening, pollution, other acts of God, and/or incorrect usage of voltage transformers.
Need help?
Do you have a question about the PCI-MP4S and is the answer not in the manual?
Questions and answers