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

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

?? lcdwin.c

?? s3c44b0+ucgui+初始化的一個(gè)版本
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
  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) {
  U8 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)      *
    *                                           *
    *********************************************
*/


#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;
  if ((GUI_Context.DrawMode & LCD_DRAWMODE_TRANS)==0) {
    if (pTrans) {
      for (;xsize > 0; xsize--,x++,p++) {
        pixel = *p;
        SETPIXEL(x, y, *(pTrans+pixel));
      }
    } else {
      for (;xsize > 0; xsize--,x++,p++) {
        SETPIXEL(x, y, *p);
      }
    }
  } else {   /* Handle transparent bitmap */
    if (pTrans) {
      for (; xsize > 0; xsize--, x++, p++) {
        pixel = *p;
        if (pixel) {
          SETPIXEL(x+0, y, *(pTrans+pixel));
        }
      }
    } else {
      for (; xsize > 0; xsize--, x++, p++) {
        pixel = *p;
        if (pixel) {
          SETPIXEL(x+0, y, pixel);
        }
      }
    }
  }
}
#endif

/*
    *********************************************
    *                                           *
    *      Draw Bitmap 16 BPP  (65536 colors)   *
    *                                           *
    *********************************************
*/


#if (LCD_BITSPERPIXEL > 8)
static void  DrawBitLine16BPP(int x, int y, U16 const*p, int xsize, const LCD_PIXELINDEX*pTrans) {
  LCD_PIXELINDEX pixel;
  if ((GUI_Context.DrawMode & LCD_DRAWMODE_TRANS)==0) {
    if (pTrans) {
      for (;xsize > 0; xsize--,x++,p++) {
        pixel = *p;
        SETPIXEL(x, y, *(pTrans+pixel));
      }
    } else {
      for (;xsize > 0; xsize--,x++,p++) {
        SETPIXEL(x, y, *p);
      }
    }
  } else {   /* Handle transparent bitmap */
    if (pTrans) {
      for (; xsize > 0; xsize--, x++, p++) {
        pixel = *p;
        if (pixel) {
          SETPIXEL(x+0, y, *(pTrans+pixel));
        }
      }
    } else {
      for (; xsize > 0; xsize--, x++, p++) {
        pixel = *p;
        if (pixel) {
          SETPIXEL(x+0, y, pixel);
        }
      }
    }
  }
}
#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;
  /*
     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
    #if (LCD_BITSPERPIXEL > 8)
      case 16:
        DrawBitLine16BPP(x0, i+y0, (const U16 *)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_VERIFY
int  LCD_GetErrStat(void) {
  return 0;
}
void LCD_ClrErrStat(void) {
}
int  LCD_GetErrCnt (void) {
  return 0;
}
#endif  

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

(Not supported in Simulation)
*/

void LCD_Off          (void) {}
void LCD_On           (void) {}

/*
        *********************************************************
        *                                                       *
        *       LUT routines (lookup tables)                    *
        *                                                       *
        *********************************************************
*/
void LCD_L0_SetLUTEntry(U8 Pos, LCD_COLOR color) {
  LCDSIM_SetLUTEntry(Pos, color);
}


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

int  LCD_L0_Init(void) {
  int x,y;
  // Create Bitmaps to simulate LCD (pages)
  for (x=0; x< LCD_XSIZE; x++)
    for (y=0; y< LCD_YSIZE; y++)
      SETPIXEL( x, y, BKCOLORINDEX);
	return 0;
}

int  LCD_L0_CheckInit(void) {
  return 0;
} 

/*
        ******************************************
        *                                        *
        *    Re-initialize LCD                   *
        *                                        *
        ******************************************

This routine is supplied for compatibility and interchangability of
"C"-sources with embedded versions of the driver. It has no real
effect in the PC-version as there is simply no need to re-initialize
the LCD since it is just simulated anyhow.
*/

void LCD_L0_ReInit       (void) {}

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

/*
        *********************************************************
        *                                                       *
        *       LCD_L0_XorPixel                                 *
        *                                                       *
        *********************************************************

Purpose:  This routine is called by emWin. It writes 1 pixel into the
          display.

*/

void LCD_L0_XorPixel(int x, int y) {
  XORPIXEL(x, y);
}


/*
        *********************************************************
        *                                                       *
        *       LCD_L0_SetPixelIndex                            *
        *                                                       *
        *********************************************************

Purpose:  This routine is called by emWin. It writes 1 pixel into the
          display.

*/

void LCD_L0_SetPixelIndex(int x, int y, int ColorIndex) {
  SETPIXEL(x, y, ColorIndex);
}


#else
  void LCDWin(void) { } /* avoid empty object files */
#endif /* defined(WIN32) && defined(LCD_USE_WINSIM) */



?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品自拍毛片| 精品99999| 国产成人午夜视频| 亚洲一区二区三区四区的| 欧美成人精品高清在线播放| 99久久伊人精品| 另类成人小视频在线| 国产成人免费视频网站| 亚洲一级电影视频| 国产精品国产三级国产专播品爱网| 欧美精品v国产精品v日韩精品 | 激情久久久久久久久久久久久久久久| 国产欧美一区二区精品秋霞影院 | 中文字幕视频一区| 日韩美女在线视频| 日本高清无吗v一区| 国产精品1区2区| 免费在线一区观看| 亚洲综合色成人| 一区在线中文字幕| 中文字幕高清不卡| 精品99一区二区三区| 日韩午夜av一区| 欧美日韩视频第一区| 一本一道波多野结衣一区二区| 国产精品99久久久久久宅男| 美女一区二区三区| 日本欧美大码aⅴ在线播放| 亚洲精品免费看| 18欧美乱大交hd1984| 国产精品久久影院| 国产清纯白嫩初高生在线观看91 | 国产高清精品网站| 精品一区二区日韩| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲午夜激情网页| 一区二区三区在线播| 中文字幕一区二区三区在线观看| 久久免费看少妇高潮| 精品国产乱码久久久久久闺蜜| 日韩三级在线免费观看| 日韩一区二区在线观看视频| 欧美日韩高清一区二区三区| 欧美日韩国产123区| 678五月天丁香亚洲综合网| 欧美三电影在线| 欧美年轻男男videosbes| 欧美日韩视频在线观看一区二区三区| 欧美最新大片在线看| 欧美日韩美女一区二区| 欧美一级欧美三级在线观看| 欧美一级国产精品| 久久这里只有精品6| 欧美经典一区二区| 日韩理论片网站| 亚洲精品视频在线| 肉丝袜脚交视频一区二区| 日产国产高清一区二区三区| 蜜桃视频一区二区| 国产麻豆精品一区二区| av在线免费不卡| 欧美丝袜丝nylons| 2024国产精品| 中文字幕欧美一| 首页国产丝袜综合| 国产一区二区中文字幕| 97久久超碰国产精品电影| 在线观看欧美日本| 精品久久久久久久久久久久包黑料| 中文字幕国产一区| 亚洲午夜精品网| 国产一区高清在线| 欧美性欧美巨大黑白大战| 日韩欧美中文字幕一区| 国产精品人成在线观看免费| 亚洲精品中文字幕乱码三区| 免费黄网站欧美| 成人av高清在线| 91精品国产高清一区二区三区蜜臀 | 色噜噜久久综合| 欧美一区三区四区| 国产精品高潮久久久久无| 亚洲成人av在线电影| 国产激情一区二区三区桃花岛亚洲| 91麻豆swag| 久久蜜桃av一区精品变态类天堂 | 国产精品电影一区二区| 亚洲精品成人精品456| 日韩成人一级片| 懂色一区二区三区免费观看| 欧美亚洲高清一区| 久久久久久久网| 亚洲午夜精品在线| 成人视屏免费看| 欧美一区欧美二区| 亚洲女爱视频在线| 国产一区二区精品久久99| 色999日韩国产欧美一区二区| 日韩欧美成人一区| 亚洲一区中文在线| 国产91丝袜在线18| 欧美一区二区在线视频| 亚洲色图欧洲色图婷婷| 激情综合网最新| 欧美日韩美少妇| 亚洲靠逼com| 成人自拍视频在线观看| 91精品国产综合久久香蕉麻豆| 国产精品三级视频| 激情欧美日韩一区二区| 欧美少妇一区二区| 综合婷婷亚洲小说| 丁香婷婷综合五月| 精品国产一区二区三区忘忧草| 亚洲国产日韩一级| 91蜜桃免费观看视频| 欧美国产在线观看| 蜜桃精品视频在线观看| 欧美三级韩国三级日本三斤| 国产精品福利影院| 成人一级片网址| 久久精品亚洲国产奇米99| 日本va欧美va瓶| 欧美日韩综合在线| 一区二区三区四区乱视频| 国产69精品久久久久777| 精品剧情在线观看| 久久精品国产色蜜蜜麻豆| 在线播放日韩导航| 午夜伦欧美伦电影理论片| 欧美日韩在线精品一区二区三区激情 | 久久嫩草精品久久久精品| 蜜桃在线一区二区三区| 日韩一级二级三级| 午夜日韩在线观看| 欧美日韩中文国产| 亚洲综合在线第一页| 色婷婷综合久久久久中文一区二区 | 91在线精品一区二区| 国产精品欧美一区喷水| 成人免费毛片嘿嘿连载视频| 国产精品美女www爽爽爽| 国产91清纯白嫩初高中在线观看| 精品国产免费久久| 国产乱妇无码大片在线观看| 久久久国产一区二区三区四区小说| 国产中文一区二区三区| 精品国产成人在线影院| 国产一区二区三区av电影| 国产午夜精品福利| 岛国精品在线播放| 亚洲日本在线天堂| 日本二三区不卡| 亚洲成在人线免费| 欧美一二三区精品| 国产曰批免费观看久久久| 国产欧美精品一区二区三区四区| 国产91丝袜在线18| 悠悠色在线精品| 欧美日韩国产成人在线91| 美女精品一区二区| 国产欧美视频一区二区| 91在线高清观看| 香蕉av福利精品导航| 精品免费日韩av| 波多野结衣精品在线| 一区二区三区免费观看| 91精品国产丝袜白色高跟鞋| 国产最新精品精品你懂的| 国产精品系列在线| 欧美美女一区二区在线观看| 久久99这里只有精品| 成人免费一区二区三区视频| 欧美日韩久久久一区| 国产综合色产在线精品| 亚洲精品成人悠悠色影视| 日韩亚洲欧美一区二区三区| 国产91精品久久久久久久网曝门| 一区二区三区在线高清| 日韩欧美二区三区| 日本精品视频一区二区三区| 蜜臀av国产精品久久久久| 国产精品久久久久久久久免费樱桃| 欧美日韩黄视频| 丁香婷婷综合五月| 日产国产高清一区二区三区| **欧美大码日韩| 欧美成人艳星乳罩| 94-欧美-setu| 极品美女销魂一区二区三区免费| 亚洲精品综合在线| 久久久久亚洲蜜桃| 欧美精品在线视频| 成人国产精品免费观看动漫| 日本强好片久久久久久aaa| 亚洲欧美偷拍另类a∨色屁股| 久久婷婷国产综合精品青草| 欧美高清精品3d| 一本色道久久综合亚洲aⅴ蜜桃| 精品一区二区国语对白|