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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lcdslin.c

?? lpc2478+ucosII+ucgui源碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
*/
  WriteTBit0:
    if (pixels&(1<<7)) SETPIXEL(x+0, y, Index1);
    if (!--xsize)
      return;
  WriteTBit1:
    if (pixels&(1<<6)) SETPIXEL(x+1, y, Index1);
    if (!--xsize)
      return;
  WriteTBit2:
    if (pixels&(1<<5)) SETPIXEL(x+2, y, Index1);
    if (!--xsize)
      return;
  WriteTBit3:
    if (pixels&(1<<4)) SETPIXEL(x+3, y, Index1);
    if (!--xsize)
      return;
  WriteTBit4:
    if (pixels&(1<<3)) SETPIXEL(x+4, y, Index1);
    if (!--xsize)
      return;
  WriteTBit5:
    if (pixels&(1<<2)) SETPIXEL(x+5, y, Index1);
    if (!--xsize)
      return;
  WriteTBit6:
    if (pixels&(1<<1)) SETPIXEL(x+6, y, Index1);
    if (!--xsize)
      return;
  WriteTBit7:
    if (pixels&(1<<0)) SETPIXEL(x+7, y, Index1);
    if (!--xsize)
      return;
    x+=8;
    pixels = *(++p);
    goto WriteTBit0;

/*
        Write without transparency
*/
  WriteBit0:
    SETPIXEL(x+0, y, (pixels&(1<<7)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit1:
    SETPIXEL(x+1, y, (pixels&(1<<6)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit2:
    SETPIXEL(x+2, y, (pixels&(1<<5)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit3:
    SETPIXEL(x+3, y, (pixels&(1<<4)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit4:
    SETPIXEL(x+4, y, (pixels&(1<<3)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit5:
    SETPIXEL(x+5, y, (pixels&(1<<2)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit6:
    SETPIXEL(x+6, y, (pixels&(1<<1)) ? Index1 : Index0);
    if (!--xsize)
      return;
  WriteBit7:
    SETPIXEL(x+7, y, (pixels&(1<<0)) ? Index1 : Index0);
    if (!--xsize)
      return;
    x+=8;
    pixels = *(++p);
    goto WriteBit0;
/*
        Write XOR mode
*/
  WriteXBit0:
    if (pixels&(1<<7))
      XORPIXEL(x+0, y);
    if (!--xsize)
      return;
  WriteXBit1:
    if (pixels&(1<<6))
      XORPIXEL(x+1, y);
    if (!--xsize)
      return;
  WriteXBit2:
    if (pixels&(1<<5))
      XORPIXEL(x+2, y);
    if (!--xsize)
      return;
  WriteXBit3:
    if (pixels&(1<<4))
      XORPIXEL(x+3, y);
    if (!--xsize)
      return;
  WriteXBit4:
    if (pixels&(1<<3))
      XORPIXEL(x+4, y);
    if (!--xsize)
      return;
  WriteXBit5:
    if (pixels&(1<<2))
      XORPIXEL(x+5, y);
    if (!--xsize)
      return;
  WriteXBit6:
    if (pixels&(1<<1))
      XORPIXEL(x+6, y);
    if (!--xsize)
      return;
  WriteXBit7:
    if (pixels&(1<<0))
      XORPIXEL(x+7, y);
    if (!--xsize)
      return;
    x+=8;
    pixels = *(++p);
    goto WriteXBit0;
}

#endif


/*
        *********************************************************
        *                                                       *
        *  Draw Bitmap 2 BPP                                    *
        *                                                       *
        *********************************************************
*/

#if (LCD_MAX_LOG_COLORS > 2)

static void  DrawBitLine2BPP(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) 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


/*
        *********************************************************
        *                                                       *
        *  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 WriteTBit0;
    goto WriteTBit1;
  } else {
    if ((Diff&1) ==0)
      goto WriteBit0;
    goto WriteBit1;
  }
/*
        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)                      *
        *                                                       *
        *      Default (no optimization)                        *
        *                                                       *
        *********************************************************
*/

#if (LCD_MAX_LOG_COLORS > 16)
static void  DrawBitLine8BPP(int x, int y, U8 const*p, int xsize, const LCD_PIXELINDEX*pTrans) {
  LCD_PIXELINDEX pixel;
/*  
        Do x-Clipping
*/
  if ((GUI_Context.DrawMode & LCD_DRAWMODE_TRANS)==0) {
    while (xsize > 0) {
      pixel = *p;
      SETPIXEL(x+0, y, *(pTrans+pixel));
      xsize--;
      x++;
      p++;
    }
  } else {   /* Handle transparent bitmap */
    while (xsize > 0) {
      pixel = *p;
      if (pixel)
        SETPIXEL(x+0, y, *(pTrans+pixel));
      xsize--;
      x++;
      p++;
    }
  }
}

#endif


/*
        *********************************************************
        *                                                       *
        *         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;
  if (!pTrans)
    pTrans = LCD_ConversionTable;
  /*
     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
    #if (LCD_MAX_LOG_COLORS > 16)
      case 8:
        DrawBitLine8BPP(x0, i+y0, pData, xsize, pTrans);
        break;
    #endif
    }
    pData += BytesPerLine;
  }
}


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

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

int OrgX, OrgY;
void LCD_L0_SetOrg(int x, int y) {
  OrgX = x;
  OrgY = y;
}


/*
        *********************************************************
        *                                                       *
        *           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_SUPPORT_VERIFY

int  LCD_GetErrStat(void) {
  return 0;
}
void LCD_ClrErrStat(void) {
}
int  LCD_GetErrCnt (void) {
  return 0;
}

#endif  


/*
        *********************************************************
        *                                                       *
        *               Copy rectangle                          *
        *                                                       *
        *********************************************************

This function is used for scrolling. If scrolling is not required
(as is sometimes the case) this routine can be eliminated via
configuration switch.

*/

#if  LCD_SUPPORT_COPYRECT

static void Copy_Line (int y,int x0,int x1,int dx,int dy) {
  if (dy >=0) {
    int x;
    for (x=x0; x<=x1; x++) {
      _SetPixel(x+dx, y+dy, _GetPixel(x,y));
    }
  } else {
    int x;
    for (x=x1; x>=x0; x--) {
      _SetPixel(x+dx, y+dy, _GetPixel(x,y));
    }
  }
}

void LCD_CopyRect     (int x0, int y0, int x1, int y1, int dx, int dy) {
  if (dy >=0) {
    int y;
    for (y=y0; y<=y1; y++) {
      Copy_Line (y,x0,x1,dx,dy);
    }
  } else {
    int y;
    for (y=y1; y>=y0; y--) {
      Copy_Line (y,x0,x1,dx,dy);
    }
  }
}
#endif


/*
        *********************************************************
        *                                                       *
        *                   LCD_SetPaletteEntry                 *
        *                                                       *
        *********************************************************

*/

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


/*
        *********************************************************
        *                                                       *
        *       LCD_On                                          *
        *       LCD_Off                                         *
        *                                                       *
        *********************************************************
*/

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

void LCD_On           (void) {
#ifdef LCD_ON
  LCD_ON();
#endif
}

unsigned int LCD_L0_GetPixelIndex(int x, int y) {
  return GETPIXEL(x,y);
}


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

int  LCD_L0_Init(void) {
  /* Controller independent */
  #if LCD_WATCHDOG_TRIGGERCNT
    WatchdogTriggerCnt =0;
  #endif
  /* Controller initialisation */
  LCD_FirstInit();
  LCD_L0_ReInit();
  LCD_Adr=0xffff;
  /* Init successfull */
  return 0;
}

#else

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

#endif


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久免费美女视频| 日韩电影一二三区| 国产精品久久久久久久岛一牛影视 | 亚洲成人综合在线| 亚洲精品第一国产综合野| 亚洲欧美国产毛片在线| 国产精品久久久久久户外露出 | 精品黑人一区二区三区久久| 日韩手机在线导航| 精品精品欲导航| 精品国产免费久久| 久久久久国产成人精品亚洲午夜| a级精品国产片在线观看| 国产一区在线观看麻豆| 一级精品视频在线观看宜春院| ww亚洲ww在线观看国产| 精品免费视频一区二区| 欧美精品丝袜久久久中文字幕| 成人av先锋影音| 粉嫩嫩av羞羞动漫久久久| 国产九色sp调教91| 国产原创一区二区三区| 久久精品国产亚洲a| 秋霞国产午夜精品免费视频| 免费在线看一区| 日本亚洲欧美天堂免费| 一区二区三区中文字幕电影| 亚洲人成小说网站色在线| 有码一区二区三区| 亚洲午夜三级在线| 国产精品嫩草99a| 7777精品伊人久久久大香线蕉经典版下载 | 欧美老人xxxx18| 久久久久久久综合日本| 韩国精品一区二区| 亚洲一区二区三区小说| 久88久久88久久久| 91丨九色丨黑人外教| 欧美精品高清视频| 亚洲国产成人午夜在线一区| 亚洲综合成人在线| 国产一区二区三区观看| 一道本成人在线| 91蝌蚪porny| 91成人免费在线| 欧美一区二区三区四区视频| 日韩欧美国产成人一区二区| 日韩精品自拍偷拍| 欧美国产日韩在线观看| 国产精品伦理一区二区| 亚洲国产你懂的| 精东粉嫩av免费一区二区三区| 91精品国产色综合久久不卡蜜臀| 毛片不卡一区二区| 波多野结衣中文字幕一区二区三区 | 精品久久免费看| 国产精品国产三级国产aⅴ原创 | 日本精品一级二级| 久久色.com| 亚洲亚洲精品在线观看| 粉嫩蜜臀av国产精品网站| 欧美高清视频不卡网| 亚洲欧洲日韩女同| 激情五月播播久久久精品| 欧美性淫爽ww久久久久无| 国产欧美综合在线观看第十页| 日本不卡1234视频| 色狠狠综合天天综合综合| 久久九九久久九九| 日产精品久久久久久久性色| 91免费国产在线观看| 国产亚洲精品资源在线26u| 蜜桃av一区二区在线观看| 欧美性生活大片视频| 亚洲欧美影音先锋| 国产精品伊人色| 在线不卡中文字幕播放| 亚洲最色的网站| 99精品在线免费| 亚洲国产精品ⅴa在线观看| 韩国一区二区在线观看| 欧美大白屁股肥臀xxxxxx| 午夜av一区二区| 在线观看网站黄不卡| 国产精品不卡一区| 成人亚洲一区二区一| 久久九九影视网| 国产精品一区在线观看乱码| 精品国产一区二区在线观看| 亚洲一二三级电影| 色综合色综合色综合色综合色综合| 国产欧美日韩视频一区二区| 国内国产精品久久| 日韩三级在线观看| 久久精品噜噜噜成人88aⅴ| 这里只有精品视频在线观看| 亚洲成人午夜电影| 欧美伦理影视网| 天天操天天色综合| 这里只有精品视频在线观看| 日本美女一区二区三区视频| 麻豆精品在线观看| 日韩免费视频一区| aaa欧美大片| 亚洲成人三级小说| 欧美国产禁国产网站cc| 91免费看片在线观看| 亚洲一区二区三区爽爽爽爽爽| 精品日韩欧美在线| 国产成人av一区二区| 亚洲国产日韩精品| 久久久久亚洲蜜桃| 欧美色综合网站| 国产精品 日产精品 欧美精品| 亚洲欧美日韩中文播放 | 国产精品乱码一区二区三区软件 | 国产午夜精品福利| 日本伦理一区二区| 亚洲精品亚洲人成人网在线播放| 欧美xxxxxxxx| 亚洲蜜桃精久久久久久久| 午夜欧美2019年伦理| 日本vs亚洲vs韩国一区三区二区| 欧美二区三区的天堂| 无吗不卡中文字幕| xnxx国产精品| 国产91高潮流白浆在线麻豆| 中文字幕一区二区5566日韩| 91精品福利在线| 老司机精品视频导航| 国产欧美一区二区三区网站| 97久久久精品综合88久久| 午夜精品福利视频网站| 国产精品一区久久久久| 日本午夜一本久久久综合| 一区二区三区欧美日| 国产精品毛片久久久久久| 国产欧美日韩麻豆91| 久久久亚洲午夜电影| 精品国产凹凸成av人网站| 制服丝袜在线91| 欧美一级一级性生活免费录像| 91精品国产色综合久久ai换脸 | 国产电影一区在线| 色天使色偷偷av一区二区| 中文字幕亚洲一区二区av在线| 亚洲丰满少妇videoshd| 欧美日韩一级二级三级| 国产乱子伦一区二区三区国色天香| 17c精品麻豆一区二区免费| 欧美日韩国产在线播放网站| 国产精品一区二区视频| 亚洲福利视频一区| 久久精品一级爱片| 欧美片在线播放| 成人国产精品视频| 日本vs亚洲vs韩国一区三区二区| 国产偷国产偷精品高清尤物 | 国产婷婷色一区二区三区四区| 在线观看亚洲一区| 国产成人一级电影| 日本美女一区二区| 一区二区三区小说| 国产偷国产偷亚洲高清人白洁| 欧美人与z0zoxxxx视频| 风间由美一区二区三区在线观看| 亚洲3atv精品一区二区三区| 亚洲国产高清在线| 欧美一区二区三区视频免费播放 | 92精品国产成人观看免费 | 欧美日韩高清一区二区三区| 国产成人精品aa毛片| 日韩电影在线免费| 亚洲欧美日韩在线播放| 精品福利二区三区| 日韩一二三区视频| 欧美美女黄视频| 色妹子一区二区| 成人ar影院免费观看视频| 国产麻豆成人精品| 日韩国产成人精品| 亚洲国产毛片aaaaa无费看| 国产精品久99| 日本一区二区不卡视频| 欧美精品一区视频| 日韩欧美美女一区二区三区| 在线电影欧美成精品| 欧美中文字幕不卡| 91欧美一区二区| 91女神在线视频| 97se亚洲国产综合自在线| 国产一区二区三区日韩| 免费高清成人在线| 青青草97国产精品免费观看无弹窗版 | 久久久91精品国产一区二区三区| 欧美变态tickling挠脚心| 欧美一级久久久久久久大片| 91视频在线看| 国产清纯美女被跳蛋高潮一区二区久久w| 日本女人一区二区三区|