FreeCalypso > hg > fc-tourmaline
view src/cs/drivers/drv_app/r2d/lcds/Customer/r2d_task_init_i.c @ 5:3bb135e72ac9
scripts/cfg-template: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:43:34 +0000 |
parents | 4e78acac3d88 |
children |
line wrap: on
line source
/* Used by refresh task to extract bytes from the framebuffer */ #if (R2D_REFRESH == R2D_VERTICAL) #define R2D_MB_PRIM_SIZE ((R2D_WIDTH*R2D_HEIGHT*4)+R2D_WIDTH*8*10*4+(R2D_WIDTH*R2D_HEIGHT*4)+(R2D_WIDTH*R2D_HEIGHT*4))//70000//8000 //70000 #else #define R2D_MB_PRIM_SIZE ((R2D_WIDTH*R2D_HEIGHT*4)+R2D_WIDTH*8*10*4+(R2D_WIDTH*R2D_HEIGHT*4)+(R2D_WIDTH*R2D_HEIGHT*4))//70000//8000 //70000 #endif extern UINT32 r2d_p_refresh_buffer[4*R2D_WIDTH*R2D_MWHEIGHT]; static void r2d_refresh_task_init(void) { INT16 i; UINT32 *p; p=r2d_p_refresh_buffer; for(i=0;i<4*R2D_WIDTH*R2D_MWHEIGHT;i++) { *p++=0; } } static void r2d_refresh_task_kill(void) { } static void r2d_dithering_init(void) { R2D_MALLOC(r2d_mb_id,UINT32,sizeof(UINT32)*4,r2d_g_dithering_matrix); r2d_g_dithering_matrix[0]=0; r2d_g_dithering_matrix[1]=2; r2d_g_dithering_matrix[2]=3; r2d_g_dithering_matrix[3]=1; }