Changeset 403 in flair-src for trunk/lib/FlairMeta


Ignore:
Timestamp:
Mar 23, 2021, 9:40:41 AM (4 years ago)
Author:
Sanahuja Guillaume
Message:

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

Location:
trunk/lib/FlairMeta/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairMeta/src/HdsX8.cpp

    r268 r403  
    5353                          Gx3_25_imu::AccelerationAngularRateAndOrientationMatrix, 70));
    5454  SetBatteryMonitor(((BlCtrlV2 *)GetBldc())->GetBatteryMonitor());
    55   SetVerticalCamera(new Ps3Eye("camv", 0, 50));
     55 
     56  if(Image::IsUsingDefaultAllocAndFree()) {
     57    SetVerticalCamera(new Ps3Eye("camv", 0, false,50));//no cmem and no dsp
     58  } else {
     59    SetVerticalCamera(new Ps3Eye("camv", 0, true,50));//cmem and dsp
     60  }
    5661 
    5762  string useGps=FindArgument(options,"use_gps=",false);
  • trunk/lib/FlairMeta/src/XAir.cpp

    r268 r403  
    5656  SetBatteryMonitor(new BatteryMonitor(bat_tab->NewRow(), "battery"));
    5757  GetBatteryMonitor()->SetBatteryValue(12);
    58   SetVerticalCamera(new Ps3Eye("camv", 0, 50));
     58 
     59  if(Image::IsUsingDefaultAllocAndFree()) {
     60    SetVerticalCamera(new Ps3Eye("camv", 0, false,50));//no cmem and no dsp
     61  } else {
     62    SetVerticalCamera(new Ps3Eye("camv", 0, true,50));//cmem and dsp
     63  }
    5964}
    6065
Note: See TracChangeset for help on using the changeset viewer.