MJPEGDecoder-100
所属分类:视频捕捉采集剪辑
开发工具:Delphi
文件大小:16KB
下载次数:68
上传日期:2010-06-23 22:15:33
上 传 者:
alexandresayegh
说明: MJPEG Decoder Sample Delphi. Connect to IP Camera and Decode MJPEG
文件列表:
COPYING (18009, 2002-05-05)
mainUnit.ddp (51, 2006-06-19)
mainUnit.dfm (764, 2006-06-19)
mainUnit.pas (2912, 2006-06-19)
MJPEGDecoderThread.pas (4350, 2006-06-19)
MJPEGDecoderUnit.pas (6824, 2006-06-19)
MJPEGTest.cfg (434, 2006-05-12)
MJPEGTest.dof (2015, 2006-05-12)
MJPEGTest.dpr (293, 2006-05-12)
MJPEGTest.res (876, 2006-05-12)
MJPEG Decoder Class
Version 1.0.0
Copyright 2006, Steve Blinch
http://code.blitzaffe.com
============================================================================
DESCRIPTION
Provides a native Delphi implementation of an MJPEG movie decoder. MJPEG
movies are commonly used by web cams and/or web cam software to display
image streams.
This class uses the Indy component library to make an HTTP connection to an
MJPEG movie source on the network, then displays the movie in a standard
TImage component. All movie retrieval and processing tasks are performed
asynchronously in a separate thread, so they should not interfere with the
rest of your application, or cause your application to block.
This class has been tested with MJPEG streams created by the Motion software
motion detector at: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
PREREQUISITES
Requires the Indy socket component library. Has only been tested with
Delphi 7 but may work with other Delphi versions as well.
USAGE
1. Add the MJPEGDecoderUnit unit to your "uses" clause.
2. Create an instance of TMJPEGDecoder.
3. Set the OnFrame property of your TMJPEGDecoder instance to a callback
which will receive each frame received from the MJPEG movie.
4. Optionally set the OnError and OnMessage properties for debugging
purposes.
5. Setup your "OnFrame" callback to assign each frame to a TImage.
6. Call the Connect method of your TMJPEGDecoder instance to connect to
your movie source. Pass the hostname, port, and URI of the movie as
arguments.
7. Call the Disconnect method to disconnect at any time.
EXAMPLE
Refer to the MJPEGTest project for an example.
LICENSE
This script is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This script is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along
with this script; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
近期下载者:
相关文件:
收藏者: