ERIS CORE

◆ bltRAMDrive2Surface()

void AppWren::bltRAMDrive2Surface ( const char *  path,
const char *  filename,
int16_t  x,
int16_t  y,
bltMode  blt_mode 
)
inline

block tramsfer from ram drive file to surface

Parameters
path
filename
x
y

Definition at line 313 of file AppWren.h.

313  {
315  AudioNoInterrupts();
316  uint16_t *sb = surface_cache->getSurfaceBufferP();
317  File file = wren_file_system.open(filename,O_RDONLY);
318  if(file.available()>0){
319  draw->bltRAMFileB(sb,surface_cache->getWidth(),surface_cache->getHeight(),&file,x,y,blt_mode);
320  file.close();
321  }
322  AudioInterrupts();
323  }
ILI9341_t3_ERIS * draw
Definition: AppBaseClass.h:41
Surface * surface_cache
Definition: AppWren.h:770
bool dynamicSurfaceManager()
responsible for managing the surface buffer memory allocation
Definition: AppWren.cpp:1541
LittleFS_RAM wren_file_system
Definition: AppWren.h:33
void bltRAMFileB(uint16_t *dest_buffer, uint16_t dest_buffer_width, uint16_t dest_buffer_height, File *file, int16_t x, int16_t y, bltMode blt_mode)
blt from an open TinyFS open file pointer to a destination buffer
uint16_t getHeight()
uint16_t getWidth()
uint16_t * getSurfaceBufferP()

References ILI9341_t3_ERIS::bltRAMFileB(), AppBaseClass::draw, dynamicSurfaceManager(), Surface::getHeight(), Surface::getSurfaceBufferP(), Surface::getWidth(), surface_cache, wren_file_system, AppBaseClass::x, and AppBaseClass::y.

Referenced by loadImageSurfaceCallback().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: