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

phEffectsThread.h

Go to the documentation of this file.
00001 #ifndef PHEFFECTSTHREAD_H
00002 #define PHEFFECTSTHREAD_H
00003 
00004 #include <phission.h>
00005 
00006 /* ------------------------------------------------------------------------ */
00007 class phEffectsThread : public phThread
00008 {
00009 private:
00010     phImage *m_input[2];
00011     uint32_t m_input_count;
00012     
00013 #if 0
00014     float   m_alpha;
00015 #endif
00016 
00017     int32_t m_resize_width;
00018     int32_t m_resize_height;
00019     int32_t m_offset_x;
00020     int32_t m_offset_y;
00021 
00022     uint32_t m_output_format;
00023     phImage *m_output;
00024 
00025     uint8_t *m_buf;
00026     uint32_t m_buf_size;
00027 
00028 protected:
00029     int run();
00030     int wakeup();
00031 
00032 public:
00033     phEffectsThread( phLiveObject *one, phLiveObject *two, uint32_t output_format );
00034     ~phEffectsThread();
00035 
00036     int mosaic_images( phImage *one, phImage *two, phImage *out);
00037     int overlay_images( phImage *one, phImage *two, 
00038                         phImage *out );
00039 
00040     /* These values are passed to the overlay_images method internally */
00041     int setOverlay( int32_t resize_width,   int32_t resize_height,
00042                     int32_t x,              int32_t y );
00043     
00044     int getOverlay( int32_t *resize_width,  int32_t *resize_height,
00045                     int32_t *x,             int32_t *y );
00046 
00047     phLiveObject *getLiveSourceOutput();
00048     phLiveObject *getOutput();
00049 };
00050 
00051 #endif 




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:05 2007 for phission by  doxygen 1.4.4