Changeset 115 in pacpussensors
- Timestamp:
- Dec 16, 2015, 3:15:45 PM (9 years ago)
- Location:
- trunk/StdDbtPlayerComponents
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StdDbtPlayerComponents/DbtPlyImageManager.cpp
r111 r115 22 22 #include <QImage> 23 23 #include <QMutex> 24 25 #include <Pacpus/structures/genericStructures.h> 26 #include <Pacpus/kernel/InputOutputInterface.h> 24 27 25 28 namespace pacpus { … … 57 60 } 58 61 62 void DbtPlyImageManager::addInputs() 63 { 64 // empty: no inputs 65 } 66 67 void DbtPlyImageManager::addOutputs() 68 { 69 addOutput<PacpusImage, DbtPlyImageManager>("image"); 70 } 71 72 59 73 /// TODO: doc 60 void DbtPlyImageManager::processData(road_time_t /*t*/, road_timerange_t /*tr*/, void * buf)74 void DbtPlyImageManager::processData(road_time_t t, road_timerange_t tr, void * buf) 61 75 { 62 76 if (!buf) { … … 122 136 } 123 137 shMem_->write(im_->bits(), shmemSize);*/ // deprecated 138 139 PacpusImage data; 140 data.time = t; 141 data.timerange = tr; 142 data.image = *im_; 143 OutputInterface<PacpusImage, DbtPlyImageManager> * imageOutput = getTypedOutput<PacpusImage, DbtPlyImageManager>("image"); 144 if (imageOutput && imageOutput->hasConnection()) { 145 imageOutput->send(data, road_time(), /*timerange=*/50000); 146 } 124 147 } 125 148 break; -
trunk/StdDbtPlayerComponents/DbtPlyImageManager.h
r111 r115 66 66 67 67 void YtoRGB32(unsigned char * dest, unsigned char * src); 68 69 virtual void addInputs(); 70 virtual void addOutputs(); 68 71 }; 69 72
Note:
See TracChangeset
for help on using the changeset viewer.