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

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

?? qvfb.c

?? mini gui 1.6.8 lib and source
?? C
字號:
/*    MiniGUI - A compact GUI support system for real-time embedded Linux.    Copyright (C) 2001 Wei Yongming    This library is free software; you can redistribute it and/or    modify it under the terms of the GNU Library General Public    License as published by the Free Software Foundation; either    version 2 of the License, or (at your option) any later version.    This library is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    Library General Public License for more details.    You should have received a copy of the GNU Library General Public    License along with this library; if not, write to the Free    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    Wei Yongming    ymwei@minigui.org*//* Qt virtual FrameBuffer based video driver implementation.*/#include <stdlib.h>#include <stdio.h>#include <string.h>#include <fcntl.h>#include <unistd.h>#include <sys/ioctl.h>#include <sys/mman.h>#include <sys/types.h>#include <sys/ipc.h>#include <sys/shm.h>#include "common.h"#include "minigui.h"#include "misc.h"#include "newgal.h"#include "sysvideo.h"#include "qvfb.h"/* Initialization/Query functions */static int QVFB_VideoInit(_THIS, GAL_PixelFormat *vformat);static GAL_Rect **QVFB_ListModes(_THIS, GAL_PixelFormat *format, Uint32 flags);static GAL_Surface *QVFB_SetVideoMode(_THIS, GAL_Surface *current, int width, int height, int bpp, Uint32 flags);static int QVFB_SetColors(_THIS, int firstcolor, int ncolors, GAL_Color *colors);static void QVFB_VideoQuit(_THIS);/* Hardware surface functions */static int QVFB_AllocHWSurface(_THIS, GAL_Surface *surface);static void QVFB_FreeHWSurface(_THIS, GAL_Surface *surface);/* QVFB driver bootstrap functions */static int QVFB_Available (void){    char file [50];    int display;    key_t key;    int shmid;    if (GetMgEtcIntValue ("qvfb", "display", &display) < 0)        display = 0;    sprintf (file, QT_VFB_MOUSE_PIPE, display);    key = ftok (file, 'b');    shmid = shmget (key, 0, 0);    return shmid != -1;}static void QVFB_DeleteDevice (GAL_VideoDevice *device){    free (device->hidden);    free (device);}static void QVFB_UpdateRects (_THIS, int numrects, GAL_Rect *rects){    int i;    RECT bound = this->hidden->hdr->update;    if (bound.right == -1) bound.right = 0;    if (bound.bottom == -1) bound.bottom = 0;    for (i = 0; i < numrects; i++) {        RECT rc;        SetRect (&rc, rects[i].x, rects[i].y,                         rects[i].x + rects[i].w, rects[i].y + rects[i].h);        if (IsRectEmpty (&bound))            bound = rc;        else            GetBoundRect (&bound, &bound, &rc);    }    this->hidden->hdr->update = bound;    this->hidden->hdr->dirty = TRUE;}static GAL_VideoDevice *QVFB_CreateDevice (int devindex){    GAL_VideoDevice *this;    /* Initialize all variables that we clean on shutdown */    this = (GAL_VideoDevice *)malloc(sizeof(GAL_VideoDevice));    if (this) {        memset (this, 0, (sizeof *this));        this->hidden = (struct GAL_PrivateVideoData *) malloc ((sizeof *this->hidden));    }    if ((this == NULL) || (this->hidden == NULL)) {        GAL_OutOfMemory ();        if (this) free (this);        return (0);    }    memset (this->hidden, 0, (sizeof *this->hidden));    /* Set the function pointers */    this->VideoInit = QVFB_VideoInit;    this->ListModes = QVFB_ListModes;    this->SetVideoMode = QVFB_SetVideoMode;    this->SetColors = QVFB_SetColors;    this->VideoQuit = QVFB_VideoQuit;    this->AllocHWSurface = QVFB_AllocHWSurface;    this->FreeHWSurface = QVFB_FreeHWSurface;    this->UpdateRects = QVFB_UpdateRects;    this->CheckHWBlit = NULL;    this->FillHWRect = NULL;    this->SetHWColorKey = NULL;    this->SetHWAlpha = NULL;    this->free = QVFB_DeleteDevice;    return this;}VideoBootStrap QVFB_bootstrap = {    "qvfb", "Qt Virtual FrameBuffer",    QVFB_Available, QVFB_CreateDevice};static int QVFB_VideoInit (_THIS, GAL_PixelFormat *vformat){    char file [50];    int display;    key_t key;    int shmid;    struct GAL_PrivateVideoData* data = this->hidden;    if (GetMgEtcIntValue ("qvfb", "display", &display) < 0)        display = 0;    sprintf (file, QT_VFB_MOUSE_PIPE, display);    key = ftok (file, 'b');    shmid = shmget (key, 0, 0);    if (shmid != -1)        data->shmrgn = (unsigned char *)shmat (shmid, 0, 0);    if ((int)data->shmrgn == -1 || data->shmrgn == NULL) {        GAL_SetError ("QVFB NEWGAL Engine: Unable to attach to virtual FrameBuffer server.\n");        return -1;    }    data->hdr = (struct QVFbHeader *) data->shmrgn;    vformat->BitsPerPixel = data->hdr->depth;    switch (vformat->BitsPerPixel) {        case 8:            vformat->BytesPerPixel = 1;            data->hdr->numcols = 256;            break;        case 12:            vformat->BitsPerPixel = 16;            vformat->BytesPerPixel = 2;            vformat->Rmask = 0x00000F00;            vformat->Gmask = 0x000000F0;            vformat->Bmask = 0x0000000F;            break;        case 16:            vformat->BytesPerPixel = 2;            vformat->Rmask = 0x0000F800;            vformat->Gmask = 0x000007E0;            vformat->Bmask = 0x0000001F;            break;        case 32:            vformat->BytesPerPixel = 4;            vformat->Rmask = 0x00FF0000;            vformat->Gmask = 0x0000FF00;            vformat->Bmask = 0x000000FF;            break;        default:            GAL_SetError ("QVFB NEWGAL Engine: Not supported depth: %d, "                "please try to use Shadow NEWGAL engine with targetname qvfb.\n", vformat->BitsPerPixel);            return -1;    }    return 0;}static GAL_Rect **QVFB_ListModes (_THIS, GAL_PixelFormat *format, Uint32 flags){    return (GAL_Rect **) -1;}static GAL_Surface *QVFB_SetVideoMode (_THIS, GAL_Surface *current,                                int width, int height, int bpp, Uint32 flags){    /* Set up the mode framebuffer */    current->flags = GAL_HWSURFACE | GAL_FULLSCREEN;    current->w = this->hidden->hdr->width;    current->h = this->hidden->hdr->height;    current->pitch = this->hidden->hdr->linestep;    current->pixels = this->hidden->shmrgn + this->hidden->hdr->dataoffset;    /* We're done */    return current;}/* We don't actually allow hardware surfaces other than the main one */static int QVFB_AllocHWSurface(_THIS, GAL_Surface *surface){    return -1;}static void QVFB_FreeHWSurface(_THIS, GAL_Surface *surface){    surface->pixels = NULL;}static int QVFB_SetColors(_THIS, int firstcolor, int ncolors, GAL_Color *colors){    int i, pixel = firstcolor;    for (i = 0; i < ncolors; i++) {        this->hidden->hdr->clut [pixel]                 = (0xff << 24) | ((colors[i].r & 0xff) << 16) | ((colors[i].g & 0xff) << 8) | (colors[i].b & 0xff);        pixel ++;    }    return 1;}static void QVFB_VideoQuit (_THIS){    shmdt (this->hidden->shmrgn);}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产日韩欧美精品| 成人看片黄a免费看在线| 久久久91精品国产一区二区三区| 91美女片黄在线观看91美女| 国产福利一区二区三区视频| 国产精品911| 99在线精品免费| 日本电影欧美片| 欧美日产国产精品| 91精品国产高清一区二区三区蜜臀 | 精品国产sm最大网站| 欧美日韩视频在线一区二区| 欧美日韩成人综合| 欧美一区二区三区日韩| 久久久99久久精品欧美| 136国产福利精品导航| 亚洲国产精品一区二区www| 亚洲精品免费在线播放| 欧美一区二区三区视频在线观看| 精品久久免费看| 国产精品盗摄一区二区三区| 亚洲黄色小说网站| 奇米亚洲午夜久久精品| 日韩电影免费在线| 国产精品综合二区| 欧美性猛交xxxxxx富婆| 制服丝袜在线91| 中文字幕不卡在线观看| 午夜视频一区在线观看| 国产精品亚洲一区二区三区在线| 成人av电影在线| 日韩欧美国产精品一区| 欧美国产成人精品| 日韩精品久久久久久| 成人国产精品免费| 精品奇米国产一区二区三区| 亚洲欧美色图小说| 成人黄色在线看| 2017欧美狠狠色| 日本最新不卡在线| 91久久精品国产91性色tv | 欧美伦理影视网| 国产欧美精品区一区二区三区 | 久久久99久久| 中文字幕一区二区不卡| 精品系列免费在线观看| 欧美一区二区女人| 一区二区三区不卡在线观看 | 日韩精品一区二| 一区二区三区在线播| 99久久婷婷国产综合精品电影| 欧美mv日韩mv国产网站app| 亚洲欧洲制服丝袜| 成人一级视频在线观看| 亚洲精品一区二区三区四区高清| 亚洲最新在线观看| 一本久道久久综合中文字幕| 精品少妇一区二区三区| 日本在线播放一区二区三区| 欧洲精品一区二区| 日韩国产精品91| 久久婷婷一区二区三区| 成人精品小蝌蚪| 亚洲一区二区三区精品在线| 欧美亚洲动漫制服丝袜| 日本欧美一区二区三区乱码| 日韩美一区二区三区| 精品一区二区三区欧美| 久久一区二区三区四区| 国产麻豆精品在线观看| 国产精品久久久一区麻豆最新章节| 成人教育av在线| 婷婷久久综合九色综合伊人色| 欧美日韩大陆在线| 国产高清不卡一区| 婷婷丁香激情综合| 亚洲男人天堂av| 成av人片一区二区| 日韩国产欧美三级| 亚洲三级久久久| 欧美精品一区二区三区在线 | 国产精品一二二区| 一区二区三区中文字幕电影| 5月丁香婷婷综合| 不卡的电视剧免费网站有什么| 亚洲午夜影视影院在线观看| 久久综合狠狠综合| 欧美一级精品大片| 91精品国产综合久久久久久久久久 | 九色|91porny| 亚洲一二三区不卡| 性做久久久久久免费观看欧美| 99riav久久精品riav| 男人操女人的视频在线观看欧美| 中文字幕制服丝袜成人av | 精品少妇一区二区三区| 欧美军同video69gay| 欧美日韩一区中文字幕| 欧美猛男gaygay网站| 在线这里只有精品| 欧美日韩黄色一区二区| 欧美专区在线观看一区| 国产一区二区精品在线观看| 国产精品一区在线观看乱码| 久久国产精品区| 成人国产电影网| 欧美日韩在线不卡| 日韩一级欧美一级| 欧美日本视频在线| 精品日韩99亚洲| 亚洲美女电影在线| 另类小说一区二区三区| 99视频国产精品| 欧美日韩视频一区二区| 久久久www成人免费无遮挡大片| 亚洲国产精品成人综合 | 国产色产综合色产在线视频 | 成人综合激情网| 色噜噜狠狠成人网p站| 在线电影国产精品| 国产亚洲欧美色| 亚洲综合激情另类小说区| 日韩激情一区二区| 99精品桃花视频在线观看| 欧美日韩视频不卡| 中文字幕佐山爱一区二区免费| 亚洲欧美欧美一区二区三区| 日韩高清在线电影| 久久er精品视频| 成人午夜激情片| 欧美大片国产精品| 国产精品免费aⅴ片在线观看| 亚洲欧美综合另类在线卡通| 精品一区二区三区免费观看 | 爽好多水快深点欧美视频| 国产成人鲁色资源国产91色综 | 欧美肥大bbwbbw高潮| 中文字幕亚洲在| 国产99久久久国产精品| 精品国产露脸精彩对白| 亚洲成a人v欧美综合天堂| 91免费精品国自产拍在线不卡| 久久久三级国产网站| 久久99精品国产.久久久久 | 日韩欧美中文一区二区| 欧美高清在线视频| 成人午夜免费av| 18欧美乱大交hd1984| 久久国产精品露脸对白| 欧美日韩一卡二卡| 午夜视频在线观看一区二区三区| 成人免费看的视频| 亚洲欧美另类综合偷拍| 欧美视频一二三区| 琪琪久久久久日韩精品| 国产日韩在线不卡| 91国偷自产一区二区使用方法| 日韩制服丝袜先锋影音| 久久久久久免费| 在线看不卡av| 国产91精品露脸国语对白| 亚洲欧美色一区| 欧美精品一区二区久久久| 99久久亚洲一区二区三区青草| 亚洲一区二区三区四区中文字幕 | 国产三级欧美三级日产三级99| 99久久精品国产一区二区三区| 亚洲一区在线免费观看| 精品成人一区二区三区| 91丨九色porny丨蝌蚪| 久久国产日韩欧美精品| 亚洲综合一区二区| 精品理论电影在线观看 | 久久久另类综合| 日韩亚洲欧美综合| 欧美色爱综合网| 91热门视频在线观看| 国产精品 日产精品 欧美精品| 亚洲一二三四在线观看| 亚洲精品中文字幕在线观看| 久久一二三国产| www久久久久| 日韩免费看网站| 91精品一区二区三区久久久久久 | 欧美高清视频不卡网| 97久久精品人人做人人爽| 国产91高潮流白浆在线麻豆| 精品一区二区三区免费视频| 日韩在线一二三区| 日韩高清在线电影| 三级欧美韩日大片在线看| 亚洲三级在线播放| 亚洲免费av观看| 亚洲一区二区三区视频在线| 国产精品第五页| 国产精品久久久久久久久果冻传媒| 中文字幕日韩精品一区 | 老司机午夜精品| 国产精品66部| 色综合天天视频在线观看|