亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? lcdmem.c

?? s3c44b0+ucgui+初始化的一個版本
?? C
?? 第 1 頁 / 共 3 頁
字號:
      goto WriteBit1;
    case 2:
      goto WriteBit2;
    default:
      goto WriteBit3;
    }
  }
/*
        Write without transparency
*/
WriteBit0:
  SETPIXELFAST(x+0, y, *(pTrans+(pixels>>6)));
  if (!--xsize)
    return;
WriteBit1:
  SETPIXELFAST(x+1, y, *(pTrans+(3&(pixels>>4))));
  if (!--xsize)
    return;
WriteBit2:
  SETPIXELFAST(x+2, y, *(pTrans+(3&(pixels>>2))));
  if (!--xsize)
    return;
WriteBit3:
  SETPIXELFAST(x+3, y, *(pTrans+(3&(pixels))));
  if (!--xsize)
    return;
  pixels = *(++p);
  x+=4;
  goto WriteBit0;
/*
        Write with transparency
*/
WriteTBit0:
  if (pixels&(3<<6))
    SETPIXELFAST(x+0, y, *(pTrans+(pixels>>6)));
  if (!--xsize)
    return;
WriteTBit1:
  if (pixels&(3<<4))
    SETPIXELFAST(x+1, y, *(pTrans+(3&(pixels>>4))));
  if (!--xsize)
    return;
WriteTBit2:
  if (pixels&(3<<2))
    SETPIXELFAST(x+2, y, *(pTrans+(3&(pixels>>2))));
  if (!--xsize)
    return;
WriteTBit3:
  if (pixels&(3<<0))
    SETPIXELFAST(x+3, y, *(pTrans+(3&(pixels))));
  if (!--xsize)
    return;
  pixels = *(++p);
  x+=4;
  goto WriteTBit0;
}

#else

/*
    *********************************************
    *                                           *
    *      Draw Bitmap 2 BPP, not optimized
    *                                           *
    *********************************************
*/

static void  DrawBitLine2BPP(int x, int y, U8 const*p, int Diff, int xsize, const LCD_PIXELINDEX*pTrans) {
  LCD_PIXELINDEX pixels;
/*
// Jump to right entry point
*/
  pixels = *p;
  if (GUI_Context.DrawMode & LCD_DRAWMODE_TRANS) switch (Diff&3) {
  case 0:
    goto WriteTBit0;
  case 1:
    goto WriteTBit1;
  case 2:
    goto WriteTBit2;
  default:
    goto WriteTBit3;
  } else switch (Diff&3) {
  case 0:
    goto WriteBit0;
  case 1:
    goto WriteBit1;
  case 2:
    goto WriteBit2;
  default:
    goto WriteBit3;
  }
/*
        Write without transparency
*/
WriteBit0:
  SETPIXEL(x+0, y, *(pTrans+(pixels>>6)));
  if (!--xsize)
    return;
WriteBit1:
  SETPIXEL(x+1, y, *(pTrans+(3&(pixels>>4))));
  if (!--xsize)
    return;
WriteBit2:
  SETPIXEL(x+2, y, *(pTrans+(3&(pixels>>2))));
  if (!--xsize)
    return;
WriteBit3:
  SETPIXEL(x+3, y, *(pTrans+(3&(pixels))));
  if (!--xsize)
    return;
  pixels = *(++p);
  x+=4;
  goto WriteBit0;
/*
        Write with transparency
*/
WriteTBit0:
  if (pixels&(3<<6))
    SETPIXEL(x+0, y, *(pTrans+(pixels>>6)));
  if (!--xsize)
    return;
WriteTBit1:
  if (pixels&(3<<4))
    SETPIXEL(x+1, y, *(pTrans+(3&(pixels>>4))));
  if (!--xsize)
    return;
WriteTBit2:
  if (pixels&(3<<2))
    SETPIXEL(x+2, y, *(pTrans+(3&(pixels>>2))));
  if (!--xsize)
    return;
WriteTBit3:
  if (pixels&(3<<0))
    SETPIXEL(x+3, y, *(pTrans+(3&(pixels))));
  if (!--xsize)
    return;
  pixels = *(++p);
  x+=4;
  goto WriteTBit0;
}

#endif

#endif

/*
    *********************************************
    *                                           *
    *      Draw Bitmap 4 BPP                    *
    *                                           *
    *********************************************
*/
#if (LCD_MAX_LOG_COLORS > 4)
static void  DrawBitLine4BPP(int x, int y, U8 const*p, int Diff, int xsize, const LCD_PIXELINDEX*pTrans) {
  PIXELCOLOR pixels;
/*
   Jump to right entry point
*/
  pixels = *p;
   if (GUI_Context.DrawMode & LCD_DRAWMODE_TRANS) {
     if ((Diff&1) ==0) {
       goto WriteBit0;
     } else {
        goto WriteBit1;
     }
   } else {
     if ((Diff&1) ==0) {
       goto WriteTBit0;
     } else {
        goto WriteTBit1;
     }
   }
/*
        Write without transparency
*/
WriteBit0:
  SETPIXEL(x+0, y, *(pTrans+(pixels>>4)));
  if (!--xsize)
    return;
WriteBit1:
  SETPIXEL(x+1, y, *(pTrans+(pixels&0xf)));
  if (!--xsize)
    return;
  x+=2;
  pixels = *(++p);
  goto WriteBit0;
/*
        Write with transparency
*/
WriteTBit0:
  if (pixels>>4)
    SETPIXEL(x+0, y, *(pTrans+(pixels>>4)));
  if (!--xsize)
    return;
WriteTBit1:
  if (pixels&0xf)
    SETPIXEL(x+1, y, *(pTrans+(pixels&0xf)));
  if (!--xsize)
    return;
  x+=2;
  pixels = *(++p);
  goto WriteTBit0;
}
#endif

/*
    *********************************************
    *                                           *
    *      Draw Bitmap 8 BPP  (256 colors)      *
    *                                           *
    *********************************************
*/


static void  DrawBitLine8BPP(int x, int y, U8 const*p, int xsize, const PIXELCOLOR*pTrans) {
  PIXELCOLOR Pixels;
  if (pTrans != aID) {
    do {
      Pixels = *p;
      SETPIXEL(x, y, *(pTrans + Pixels));
      xsize--;
      x++;
      p++;
    } while (xsize > 0);
  } else {
    do {
      SETPIXEL(x, y, *p);
      xsize--;
      x++;
      p++;
    } while (xsize > 0);

  }
}


/*
        *********************************************************
        *                                                       *
        *         Universal draw Bitmap routine                 *
        *                                                       *
        *********************************************************
*/

void LCD_L0_DrawBitmap   (int x0, int y0,
                       int xsize, int ysize,
                       int BitsPerPixel, 
                       int BytesPerLine,
                       const U8* pData, int Diff,
                       const LCD_PIXELINDEX* pTrans)
{
  int i;
  /* Use aID for bitmaps without palette */
  if (!pTrans) {
    pTrans = aID;
  }
  /* Use DrawBitLineXBPP */
  for (i=0; i<ysize; i++) {
    switch (BitsPerPixel) {
    case 1:
      DrawBitLine1BPP(x0, i+y0, pData, Diff, xsize, pTrans);
      break;
    #if (LCD_MAX_LOG_COLORS > 2)
      case 2:
        DrawBitLine2BPP(x0, i+y0, pData, Diff, xsize, pTrans);
        break;
    #endif
    #if (LCD_MAX_LOG_COLORS > 4)
      case 4:
        DrawBitLine4BPP(x0, i+y0, pData, Diff, xsize, pTrans);
        break;
    #endif
    case 8:
      DrawBitLine8BPP(x0, i+y0, pData, xsize, pTrans);
      break;
    }
    pData += BytesPerLine;
  }
}



/*
        *********************************************************
        *                                                       *
        *       LCD_L0_SetOrg                                   *
        *                                                       *
        *********************************************************

Purpose:        Sets the original position of the virtual display.
                Has no function at this point with the PC-driver.
*/

#if LCD_SUPPORT_SETORG
  void LCD_L0_SetOrg(int x, int y) {
    int i;
    int Off;
    if (y>(LCD_VYSIZE_PHYS-LCD_YSIZE_PHYS))
      y = LCD_VYSIZE_PHYS-LCD_YSIZE_PHYS;
    Off = y*LCD_BYTESPERLINE+(x>>3);
    for (i=0; i<LCD_BITSPERPIXEL; i++) {
      LCD__apVRam[i] = & LCD_VRam[i][0] +Off;
    }
  }
#endif

/*
        *********************************************************
        *                                                       *
        *           Support for verification                    *
        *                                                       *
        *********************************************************

The following routines are implemented, but have no functionility
at this point. The reason is that these functions are supposed
to supervise the hardware, which for obvious reasons can not be
done in a simulation.

*/
#if LCD_VERIFY
int  LCD_GetErrStat(void) {
  return 0;
}
void LCD_ClrErrStat(void) {
}
int  LCD_GetErrCnt (void) {
  return 0;
}
#endif  


/********************************************************
*
*       LCD_L0_On
*       LCD_L0_Off
*
*********************************************************
These funtions are not implemented for this driver, they
have to be in the external modul which refreshes the LCD
regularily.
*/

#ifndef WIN32


void LCD_L0_Off          (void) {
#ifdef LCD_OFF
    LCD_OFF(); 
#endif
}
#endif

#ifndef WIN32
void LCD_L0_On           (void) {
#ifdef LCD_ON
    LCD_ON(); 
#endif
}
#endif




/*
        *********************************************************
        *                                                       *
        *       LCD_L0_ReInit : Re-Init the display                *
        *                                                       *
        *********************************************************

ReInit contains all of the code that can be re-executed at any point without
changing or even disturbing what can be seen on the LCD.
Note that it is also used as a subroutine by LCD_Init().

*/


void  LCD_L0_ReInit(void) {}


/*
        *********************************************************
        *                                                       *
        *       LCD_Init : Init the display                     *
        *                                                       *
        *********************************************************
*/

int  LCD_L0_Init(void) {
  LCD_L0_Off();
  LCD_L0_ReInit();
  LCD_L0_SetOrg(0,0);
  /* Clear entire video RAM */
  LCD_L0_On();
  return 0;
}

void LCD_L0_SetLUTEntry(U8 Pos, LCD_COLOR color) {
  LCD_USE_PARA(Pos);
  LCD_USE_PARA(color);
}

#else

void LCDMem(void) { } /* avoid empty object files */

#endif  /*(LCD_CONTROLLER/100 == 13) */


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青草国产精品久久久久久| 日本不卡一区二区| 欧美疯狂做受xxxx富婆| 7777女厕盗摄久久久| 国产酒店精品激情| 亚洲一区在线观看免费| 日本一区二区电影| 日韩视频免费观看高清完整版| 国产91在线看| 美女视频黄频大全不卡视频在线播放| 国产精品国产三级国产a| 欧美一区二区三区视频在线| 91一区二区三区在线观看| 国内成人免费视频| 日产国产高清一区二区三区 | 欧美日韩高清不卡| zzijzzij亚洲日本少妇熟睡| 激情五月婷婷综合网| 日韩av高清在线观看| 玉米视频成人免费看| 国产精品久久综合| 国产亚洲制服色| 精品免费日韩av| 91麻豆精品国产91久久久久久| 岛国一区二区三区| 国产原创一区二区| 久久精品国产精品亚洲综合| 亚洲高清免费在线| 夜夜嗨av一区二区三区四季av| 久久精品亚洲麻豆av一区二区| 日韩一区二区麻豆国产| 欧美系列一区二区| 色视频成人在线观看免| 成人av影视在线观看| 国产精品1区2区| 国产一区二区不卡在线| 久久精品av麻豆的观看方式| 午夜av一区二区三区| 亚洲精品成人少妇| 又紧又大又爽精品一区二区| 中文字幕欧美一| 国产精品无人区| 国产精品免费av| 亚洲欧洲一区二区三区| 中文幕一区二区三区久久蜜桃| 久久精品一二三| 中日韩免费视频中文字幕| 国产精品久久久久永久免费观看 | 婷婷开心激情综合| 午夜精品久久久久久久蜜桃app| 亚洲一区二区三区在线| 亚洲成av人影院在线观看网| 亚洲成人tv网| 免费观看日韩av| 韩国毛片一区二区三区| 成人精品免费看| 色就色 综合激情| 在线不卡中文字幕| 精品久久国产老人久久综合| 欧美tk—视频vk| 国产日韩视频一区二区三区| 中文成人综合网| 亚洲综合久久久| 日本91福利区| 国产成人午夜片在线观看高清观看| 国产成人亚洲综合a∨猫咪| 99精品在线观看视频| 在线欧美一区二区| 欧美mv日韩mv国产网站app| 国产欧美日韩一区二区三区在线观看| 亚洲三级久久久| 日本在线不卡视频一二三区| 国产精品一卡二卡| 在线一区二区三区| 精品日产卡一卡二卡麻豆| 国产精品国产三级国产aⅴ原创 | 99久久国产综合精品麻豆| 欧美日韩在线精品一区二区三区激情| 日韩午夜激情电影| 国产精品成人午夜| 日本伊人色综合网| 大白屁股一区二区视频| 欧美日韩在线一区二区| 久久精品在这里| 天天影视网天天综合色在线播放| 精品一区二区免费在线观看| jizzjizzjizz欧美| 91精品国产色综合久久| 国产人伦精品一区二区| 亚洲大片精品永久免费| 国产在线精品一区在线观看麻豆| 91美女视频网站| 精品区一区二区| 一二三四区精品视频| 国产一区二区视频在线播放| 色94色欧美sute亚洲线路二| 日韩欧美一级精品久久| 亚洲理论在线观看| 国产成人一级电影| 欧美一区二区免费视频| 亚洲免费在线观看| 国产一本一道久久香蕉| 欧美日韩亚洲不卡| 国产精品看片你懂得| 日本不卡一区二区三区| 91官网在线免费观看| 久久亚洲欧美国产精品乐播| 亚洲成a人v欧美综合天堂下载 | 色播五月激情综合网| 久久综合九色欧美综合狠狠 | 麻豆精品久久久| 色综合久久久久| 国产精品毛片无遮挡高清| 精品在线一区二区| 欧美日韩免费高清一区色橹橹| 中文字幕不卡一区| 国产中文一区二区三区| 欧美一区二区三级| 日韩一区精品字幕| 欧美色倩网站大全免费| 中文字幕一区二区三区在线不卡| 国产精品 欧美精品| 欧美一二三在线| 婷婷夜色潮精品综合在线| 欧洲日韩一区二区三区| 最新国产精品久久精品| 成人综合婷婷国产精品久久免费| 欧美mv和日韩mv的网站| 蜜桃精品在线观看| 91精品国模一区二区三区| 午夜精品久久久久影视| 欧美日韩一区二区在线观看| 亚洲综合色成人| 精品视频一区二区三区免费| 亚洲国产日日夜夜| 欧美日本一道本在线视频| 亚洲第四色夜色| 欧美一区二区成人| 看片网站欧美日韩| 精品欧美一区二区在线观看| 国产在线国偷精品免费看| 久久综合一区二区| 国产精品一区二区在线看| 精品久久久久久久久久久久包黑料 | 亚洲乱码日产精品bd| 99精品国产一区二区三区不卡| 中文字幕亚洲欧美在线不卡| 91麻豆免费视频| 亚洲自拍偷拍av| 欧美日韩激情一区二区三区| 日韩电影在线观看网站| 欧美videofree性高清杂交| 狠狠色丁香婷婷综合| 久久久久久免费网| 国产成人a级片| 亚洲欧美日韩电影| 欧美三片在线视频观看| 捆绑变态av一区二区三区| 国产欧美日韩三级| 欧美在线观看禁18| 日本成人在线不卡视频| 久久久久久电影| 色久优优欧美色久优优| 午夜av电影一区| 久久影院午夜论| 91丨九色丨尤物| 午夜天堂影视香蕉久久| 精品国产一区二区在线观看| 国产成人午夜片在线观看高清观看| 18成人在线观看| 91精品国产综合久久久蜜臀粉嫩 | 欧美亚洲图片小说| 日韩av中文字幕一区二区三区| 精品1区2区在线观看| 国产激情视频一区二区三区欧美| 国产精品美女一区二区| 欧美亚洲一区二区在线观看| 激情综合网最新| 亚洲免费观看高清完整版在线观看| 欧美探花视频资源| 国内精品国产三级国产a久久| 国产精品久久毛片a| 欧美一区二区三区小说| 成人久久久精品乱码一区二区三区| 亚洲一二三四久久| 久久这里只有精品6| 欧美最新大片在线看| 激情综合一区二区三区| 亚洲五月六月丁香激情| 久久久久高清精品| 精品蜜桃在线看| 九九九精品视频| 亚洲一区二三区| 亚洲国产精品激情在线观看| 欧美猛男男办公室激情| 9色porny自拍视频一区二区| 热久久一区二区| 一区二区不卡在线视频 午夜欧美不卡在 | 亚洲另类在线一区| 国产视频一区在线观看|