Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VFWSource.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------
00002     Phission : 
00003         Realtime Vision Processing System
00004     
00005     Copyright (C) 2003-2006 Philip D.S. Thoren (pthoren@cs.uml.edu)
00006     University of Massachusetts at Lowell,
00007     Laboratory for Artificial Intelligence and Robotics
00008     
00009     This file is part of Phission.
00010 
00011     Phission is free software; you can redistribute it and/or modify
00012     it under the terms of the GNU Lesser General Public License as published by
00013     the Free Software Foundation; either version 2 of the License, or
00014     (at your option) any later version.
00015 
00016     Phission is distributed in the hope that it will be useful,
00017     but WITHOUT ANY WARRANTY; without even the implied warranty of
00018     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019     GNU Lesser General Public License for more details.
00020 
00021     You should have received a copy of the GNU Lesser General Public License
00022     along with Phission; if not, write to the Free Software
00023     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024 
00025  ---------------------------------------------------------------------------*/
00026 #ifndef _VFWSOURCE_H
00027 #define _VFWSOURCE_H
00028 
00029 /* ---------------------------------------------------------------------- */
00030 #include <phImageCapture.h>
00031 
00032 /* ---------------------------------------------------------------------- */
00038 /* ------------------------------------------------------------------------- */
00039 typedef struct phVFWWindowInfo_t        *phVFWWindowInfo;
00040 typedef struct phVFWHandlerParameters_t *phVFWHandlerParameters;
00041  /* end \addtogroup Capture */
00043 
00044 /* ---------------------------------------------------------------------- */
00050 PHAPI(class) VFWSource : public phImageCapture
00051 {
00052 protected:
00053     phVFWWindowInfo m_info;
00054 
00055     int             m_show_first;
00056     int32_t         m_private_format;
00057     uint32_t        m_image_size;
00058     uint32_t        m_channel;
00059     int             m_changed_settings;
00060     int             m_changed_channel;
00061     
00062     /* These create and destroy the window used for the message handling */
00063     int             init_window     ();
00064     int             destroy_window  ();
00065 
00066     int             set_callbacks       ();
00067     int             remove_callbacks    ();
00068     int             list_devices        ();
00069     int             connect_device      ( int index );
00070     int             disconnect_device   ();
00071     int             device_start        ();
00072     int             device_stop         ();
00073     int             setVideoFormat      ( uint32_t w, uint32_t h, int32_t f );
00074 
00075     virtual int     onApplySettings();
00076 
00077     /* on close, the class retains all previous knowledge
00078      * except the device capabilities. */
00079     virtual int     open ( char *path );
00080     virtual int     close();
00081 
00082     /* phThread overloaded methods */
00083     virtual int     wakeup  ();
00084     virtual int     cleanup ();
00085     virtual int     run     ();
00086     
00087     int             gui_show();
00088     int             gui_hide();
00089 
00090 public:
00091     VFWSource( char *path = NULL );
00092     ~VFWSource();
00093     
00094     virtual int     isOpen();
00095     
00096     int64_t         handle_message( phVFWHandlerParameters params );
00097 };
00098 
00099 #endif /* _VFWSOURCE_H */




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:44:03 2007 for phission by  doxygen 1.4.4