Changeset 401 in flair-src for trunk/lib/FlairSensorActuator/src/V4LCamera_impl.cpp
- Timestamp:
- Mar 18, 2021, 11:07:59 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/V4LCamera_impl.cpp
r400 r401 29 29 #include <cstring> 30 30 #include <sys/mman.h> 31 #include <VisionFilter.h>32 31 33 32 using std::string; … … 104 103 if(useMemoryUsrPtr) { 105 104 for (int i = 0; i < nbBuffers; i++) { 106 FreeFunction((char*)buffers[i]);105 Image::FreeFunction((char*)buffers[i]); 107 106 } 108 107 } else { 109 FreeFunction(imageData);108 Image::FreeFunction(imageData); 110 109 } 111 110 close(device); … … 212 211 213 212 //allocate output data 214 imageData = AllocFunction(self->output->GetDataType().GetSize());213 imageData = Image::AllocFunction(self->output->GetDataType().GetSize()); 215 214 //Printf("cmem allocated %i at %x\n",output->GetDataType().GetSize(),imageData); 216 215 … … 237 236 238 237 for (int i=0; i<nbBuffers; i++) { 239 buffers[i] = AllocFunction(self->output->GetDataType().GetSize());238 buffers[i] =Image::AllocFunction(self->output->GetDataType().GetSize()); 240 239 } 241 240
Note:
See TracChangeset
for help on using the changeset viewer.