source: pacpussensors/trunk/StdDbtPlayerComponents/DbtPlyImageManager.h@ 85

Last change on this file since 85 was 50, checked in by phudelai, 10 years ago

Flea3Component: Shared memory changed for stereovision
StereoVisionDisparity: Added for the PFE of Pierre

File size: 1.5 KB
RevLine 
[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
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 STDDBTPLAYERCOMPONENTS_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
71} // namespace pacpus
72
73#endif // DBTPLYIMAGEMANAGER_H
Note: See TracBrowser for help on using the repository browser.