| Rev | Line | |
|---|
| [16] | 1 | /*********************************************************************
|
|---|
| 2 | // created: 2007/04/12 - 16:30
|
|---|
| 3 |
|
|---|
| 4 | //
|
|---|
| 5 | // author: Elie Al Alam & Gerald Dherbomez
|
|---|
| 6 | //
|
|---|
| 7 | // version: $Id: $
|
|---|
| 8 | //
|
|---|
| 9 | // purpose: Dbite Player Image Manager header file
|
|---|
| 10 | *********************************************************************/
|
|---|
| 11 |
|
|---|
| 12 | #ifndef DBTPLYIMAGEMANAGER_H
|
|---|
| 13 | #define DBTPLYIMAGEMANAGER_H
|
|---|
| 14 |
|
|---|
| 15 | #include <qobject.h>
|
|---|
| 16 |
|
|---|
| 17 | #include "StdDbtPlayerComponentsConfig.h"
|
|---|
| [50] | 18 | #include "Pacpus/DbitePlayer/DbtPlyFileManager.h"
|
|---|
| [16] | 19 |
|
|---|
| 20 | class ImageViewer;
|
|---|
| 21 |
|
|---|
| 22 | class QImage;
|
|---|
| 23 | class QMutex;
|
|---|
| 24 |
|
|---|
| 25 | namespace pacpus {
|
|---|
| 26 |
|
|---|
| 27 | class ShMem;
|
|---|
| 28 |
|
|---|
| 29 | ///
|
|---|
| 30 | /// shmem=STRING (name of output shared memory) default=IMAGE
|
|---|
| 31 | class STDDBTPLAYERCOMPONENTS_API DbtPlyImageManager
|
|---|
| 32 | : public DbtPlyFileManager
|
|---|
| 33 | {
|
|---|
| 34 | Q_OBJECT
|
|---|
| 35 |
|
|---|
| 36 | public:
|
|---|
| 37 | DbtPlyImageManager(QString name);
|
|---|
| 38 | ~DbtPlyImageManager();
|
|---|
| 39 |
|
|---|
| 40 | virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
|---|
| 41 |
|
|---|
| 42 | void displayUI();
|
|---|
| 43 |
|
|---|
| 44 | private:
|
|---|
| 45 | QString mShMemName;
|
|---|
| 46 | QString imageFile_;
|
|---|
| 47 | QImage * im_;
|
|---|
| 48 |
|
|---|
| 49 | ImageViewer * imviewer_;
|
|---|
| 50 |
|
|---|
| 51 | protected:
|
|---|
| 52 | void processData(road_time_t, road_timerange_t, void * dataBuffer);
|
|---|
| 53 | virtual void startActivity();
|
|---|
| 54 | virtual void stopActivity();
|
|---|
| 55 |
|
|---|
| 56 | Q_SIGNALS:
|
|---|
| 57 | void displayIm(QImage *);
|
|---|
| 58 |
|
|---|
| 59 | private:
|
|---|
| 60 | QMutex * imageMutex_;
|
|---|
| 61 | ShMem * shMem_;
|
|---|
| 62 | bool firstTime;
|
|---|
| 63 |
|
|---|
| 64 | road_time_t tic_;
|
|---|
| 65 | void tic();
|
|---|
| 66 | void toc(char * text);
|
|---|
| 67 |
|
|---|
| 68 | void YtoRGB32(unsigned char * dest, unsigned char * src);
|
|---|
| 69 | };
|
|---|
| 70 |
|
|---|
| 71 | } // namespace pacpus
|
|---|
| 72 |
|
|---|
| 73 | #endif // DBTPLYIMAGEMANAGER_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.