Ignore:
Timestamp:
03/23/21 09:40:41 (2 years ago)
Author:
Sanahuja Guillaume
Message:

select user memory pointer (v4l) if using custom alloc function in images (ie if initdsp was called)

File:
1 edited

Legend:

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

    r401 r403  
    3737 
    3838V4LCamera_impl::V4LCamera_impl(V4LCamera *self,string name,uint8_t camera_index, uint16_t width, uint16_t height,
    39                      Image::Type::Format format) {
     39                     Image::Type::Format format,bool useMemoryUsrPtr) {
    4040  this->self=self;
    4141 
     
    6060  }
    6161 
    62   //todo: better handling of detection, only neeeded for omap/dm
    63   //also in run, copy from v4l to cmem is not necessary if not using cmem...
    64 #ifdef ARMV7A
    65   useMemoryUsrPtr=true;
    66 #else
    67   useMemoryUsrPtr=false;
    68 #endif
     62  //todo: in run, copy from v4l to cmem is not necessary if not using cmem. (!useMemoryUsrPtr)
     63  this->useMemoryUsrPtr=useMemoryUsrPtr;
     64
    6965  if(useMemoryUsrPtr) {
    7066    AllocUserBuffers();
Note: See TracChangeset for help on using the changeset viewer.