Ignore:
Timestamp:
Mar 18, 2021, 11:07:59 AM (4 years ago)
Author:
Sanahuja Guillaume
Message:

resolve bug when not using hdsvisionfilter but using cameras on dm3730

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/V4LCamera_impl.cpp

    r400 r401  
    2929#include <cstring>
    3030#include <sys/mman.h>
    31 #include <VisionFilter.h>
    3231
    3332using std::string;
     
    104103  if(useMemoryUsrPtr) {
    105104    for (int i = 0; i < nbBuffers; i++) {
    106       FreeFunction((char*)buffers[i]);
     105      Image::FreeFunction((char*)buffers[i]);
    107106    }
    108107  } else {
    109       FreeFunction(imageData);
     108      Image::FreeFunction(imageData);
    110109  }
    111110  close(device);
     
    212211
    213212  //allocate output data
    214   imageData = AllocFunction(self->output->GetDataType().GetSize());
     213  imageData = Image::AllocFunction(self->output->GetDataType().GetSize());
    215214  //Printf("cmem allocated %i at %x\n",output->GetDataType().GetSize(),imageData);
    216215
     
    237236
    238237  for (int i=0; i<nbBuffers; i++) {
    239     buffers[i] =AllocFunction(self->output->GetDataType().GetSize());
     238    buffers[i] =Image::AllocFunction(self->output->GetDataType().GetSize());
    240239  }
    241240
Note: See TracChangeset for help on using the changeset viewer.