Changeset 403 in flair-src for trunk/lib/FlairMeta/src/XAir.cpp


Ignore:
Timestamp:
Mar 23, 2021, 9:40:41 AM (6 months 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/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.