source: pacpusframework/branches/2.0-beta1/include/PacpusCityVIP/Video/dbt/DbtPlyImageManager.h@ 90

Last change on this file since 90 was 89, checked in by morasjul, 12 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 1.5 KB
Line 
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 "DbtPlyVisionConfig.h"
18#include "DbitePlayer/DbtPlyFileManager.h"
19
20class ImageViewer;
21
22class QImage;
23class QMutex;
24
25namespace pacpus {
26
27class ShMem;
28
29///
30/// shmem=STRING (name of output shared memory) default=IMAGE
31class DBTPLYVISION_API DbtPlyImageManager
32 : public DbtPlyFileManager
33{
34 Q_OBJECT
35
36public:
37 DbtPlyImageManager(QString name);
38 ~DbtPlyImageManager();
39
40 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
41
42 void displayUI();
43
44private:
45 QString mShMemName;
46 QString imageFile_;
47 QImage * im_;
48
49 ImageViewer * imviewer_;
50
51protected:
52 void processData(road_time_t, road_timerange_t, void * dataBuffer);
53 virtual void startActivity();
54 virtual void stopActivity();
55
56Q_SIGNALS:
57 void displayIm(QImage *);
58
59private:
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 void addInputOutput();
71};
72
73} // namespace pacpus
74
75#endif // DBTPLYIMAGEMANAGER_H
Note: See TracBrowser for help on using the repository browser.