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

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

?? fbvideo.c

?? mini gui 1.6.8 lib and source
?? C
?? 第 1 頁 / 共 3 頁
字號:
            FB_NeoMagicAccel (this, finfo.accel);#endif            break;            default:#ifdef FBACCEL_DEBUG            fprintf(stderr, "FBCON NEWGAL Engine: Unknown hardware accelerator!\n");#endif            break;        }    }    if (FB_OpenKeyboard(this) < 0) {        FB_VideoQuit(this);        return(-1);    }    /* We're done! */    return(0);}static GAL_Rect **FB_ListModes(_THIS, GAL_PixelFormat *format, Uint32 flags){    return (GAL_Rect**) -1;}/* Various screen update functions available */#if 0static void FB_DirectUpdate(_THIS, int numrects, GAL_Rect *rects);#endif#ifdef VGA16_FBCON_SUPPORTstatic void FB_VGA16Update(_THIS, int numrects, GAL_Rect *rects);#endif#ifdef FBCON_DEBUGstatic void print_vinfo(struct fb_var_screeninfo *vinfo){    fprintf(stderr, "Printing vinfo:\n");    fprintf(stderr, "txres: %d\n", vinfo->xres);    fprintf(stderr, "tyres: %d\n", vinfo->yres);    fprintf(stderr, "txres_virtual: %d\n", vinfo->xres_virtual);    fprintf(stderr, "tyres_virtual: %d\n", vinfo->yres_virtual);    fprintf(stderr, "txoffset: %d\n", vinfo->xoffset);    fprintf(stderr, "tyoffset: %d\n", vinfo->yoffset);    fprintf(stderr, "tbits_per_pixel: %d\n", vinfo->bits_per_pixel);    fprintf(stderr, "tgrayscale: %d\n", vinfo->grayscale);    fprintf(stderr, "tnonstd: %d\n", vinfo->nonstd);    fprintf(stderr, "tactivate: %d\n", vinfo->activate);    fprintf(stderr, "theight: %d\n", vinfo->height);    fprintf(stderr, "twidth: %d\n", vinfo->width);    fprintf(stderr, "taccel_flags: %d\n", vinfo->accel_flags);    fprintf(stderr, "tpixclock: %d\n", vinfo->pixclock);    fprintf(stderr, "tleft_margin: %d\n", vinfo->left_margin);    fprintf(stderr, "tright_margin: %d\n", vinfo->right_margin);    fprintf(stderr, "tupper_margin: %d\n", vinfo->upper_margin);    fprintf(stderr, "tlower_margin: %d\n", vinfo->lower_margin);    fprintf(stderr, "thsync_len: %d\n", vinfo->hsync_len);    fprintf(stderr, "tvsync_len: %d\n", vinfo->vsync_len);    fprintf(stderr, "tsync: %d\n", vinfo->sync);    fprintf(stderr, "tvmode: %d\n", vinfo->vmode);    fprintf(stderr, "tred: %d/%d\n", vinfo->red.length, vinfo->red.offset);    fprintf(stderr, "tgreen: %d/%d\n", vinfo->green.length, vinfo->green.offset);    fprintf(stderr, "tblue: %d/%d\n", vinfo->blue.length, vinfo->blue.offset);    fprintf(stderr, "talpha: %d/%d\n", vinfo->transp.length, vinfo->transp.offset);}static void print_finfo(struct fb_fix_screeninfo *finfo){    fprintf(stderr, "Printing finfo:\n");    fprintf(stderr, "tsmem_start = %p\n", (char *)finfo->smem_start);    fprintf(stderr, "tsmem_len = %d\n", finfo->smem_len);    fprintf(stderr, "ttype = %d\n", finfo->type);    fprintf(stderr, "ttype_aux = %d\n", finfo->type_aux);    fprintf(stderr, "tvisual = %d\n", finfo->visual);    fprintf(stderr, "txpanstep = %d\n", finfo->xpanstep);    fprintf(stderr, "typanstep = %d\n", finfo->ypanstep);    fprintf(stderr, "tywrapstep = %d\n", finfo->ywrapstep);    fprintf(stderr, "tline_length = %d\n", finfo->line_length);    fprintf(stderr, "tmmio_start = %p\n", (char *)finfo->mmio_start);    fprintf(stderr, "tmmio_len = %d\n", finfo->mmio_len);    fprintf(stderr, "taccel = %d\n", finfo->accel);}#endif#ifdef VGA16_FBCON_SUPPORTstatic GAL_Surface *FB_SetVGA16Mode(_THIS, GAL_Surface *current,                int width, int height, int bpp, Uint32 flags){    struct fb_fix_screeninfo finfo;    struct fb_var_screeninfo vinfo;    /* Set the terminal into graphics mode */    if ( FB_EnterGraphicsMode(this) < 0 ) {        return(NULL);    }    /* Restore the original palette */    FB_RestorePalette(this);    /* Set the video mode and get the final screen format */    if ( ioctl(console_fd, FBIOGET_VSCREENINFO, &vinfo) < 0 ) {        GAL_SetError("FBCON NEWGAL Engine: Couldn't get console screen info\n");        return(NULL);    }    cache_vinfo = vinfo;#ifdef FBCON_DEBUG    fprintf(stderr, "FBCON NEWGAL Engine: Printing actual vinfo:\n");    print_vinfo(&vinfo);#endif    if ( ! GAL_ReallocFormat(current, bpp, 0, 0, 0, 0) ) {        return(NULL);    }    current->format->palette->ncolors = 16;    /* Get the fixed information about the console hardware.       This is necessary since finfo.line_length changes.     */    if ( ioctl(console_fd, FBIOGET_FSCREENINFO, &finfo) < 0 ) {        GAL_SetError("FBCON NEWGAL Engine: Couldn't get console hardware info\n");        return(NULL);    }#ifdef FBCON_DEBUG    fprintf(stderr, "FBCON NEWGAL Engine: Printing actual finfo:\n");    print_finfo(&finfo);#endif    /* Save hardware palette, if needed */    FB_SavePalette(this, &finfo, &vinfo);    /* Set up the new mode framebuffer */    current->flags = GAL_FULLSCREEN;    current->w = vinfo.xres;    current->h = vinfo.yres;    current->pitch = current->w;    current->pixels = malloc(current->h*current->pitch);    /* Set the update rectangle function */    this->UpdateRects = FB_VGA16Update;    /* We're done */    return(current);}#endif /* VGA16_FBCON_SUPPORT */static GAL_Surface *FB_SetVideoMode(_THIS, GAL_Surface *current,                int width, int height, int bpp, Uint32 flags){    struct fb_fix_screeninfo finfo;    struct fb_var_screeninfo vinfo;    int i;    Uint32 Rmask;    Uint32 Gmask;    Uint32 Bmask;    char *surfaces_mem;    int surfaces_len;#if defined(_LITE_VERSION) && !defined(_STAND_ALONE)    if (mgIsServer)#endif    {        /* Set the terminal into graphics mode */        if (FB_EnterGraphicsMode(this) < 0) {            return(NULL);        }        /* Restore the original palette */        FB_RestorePalette (this);    }    /* Set the video mode and get the final screen format */    if (ioctl(console_fd, FBIOGET_VSCREENINFO, &vinfo) < 0 ) {        GAL_SetError("FBCON NEWGAL Engine: Couldn't get console screen info");        return(NULL);    }#ifdef FBCON_DEBUG    fprintf(stderr, "FBCON NEWGAL Engine: Printing original vinfo:\n");    print_vinfo(&vinfo);#endif#if defined(_LITE_VERSION) && !defined(_STAND_ALONE)    if (!mgIsServer) {        vinfo.xres = width;        vinfo.yres = height;    }    if ( mgIsServer && ((vinfo.xres != width) || (vinfo.yres != height) ||         (vinfo.bits_per_pixel != bpp) /* || (flags & GAL_DOUBLEBUF) */) ) {#else    if ( ((vinfo.xres != width) || (vinfo.yres != height) ||         (vinfo.bits_per_pixel != bpp) /* || (flags & GAL_DOUBLEBUF) */) ) {#endif        vinfo.activate = FB_ACTIVATE_NOW;        vinfo.accel_flags = 0;        vinfo.bits_per_pixel = bpp;        vinfo.xres = width;        vinfo.xres_virtual = width;        vinfo.yres = height;#if 0        if ( flags & GAL_DOUBLEBUF ) {            vinfo.yres_virtual = height*2;        } else {            vinfo.yres_virtual = height;        }#else        vinfo.yres_virtual = height;#endif        vinfo.xoffset = 0;        vinfo.yoffset = 0;        vinfo.red.length = vinfo.red.offset = 0;        vinfo.green.length = vinfo.green.offset = 0;        vinfo.blue.length = vinfo.blue.offset = 0;        vinfo.transp.length = vinfo.transp.offset = 0;#ifdef FBCON_DEBUG        fprintf(stderr, "FBCON NEWGAL Engine: Printing wanted vinfo:\n");        print_vinfo(&vinfo);#endif        if ( ioctl(console_fd, FBIOPUT_VSCREENINFO, &vinfo) < 0 ) {            vinfo.yres_virtual = height;            if ( ioctl(console_fd, FBIOPUT_VSCREENINFO, &vinfo) < 0 ) {                GAL_SetError("FBCON NEWGAL Engine: Couldn't set console screen info");                return(NULL);            }        }    } else {        int maxheight;        /* Figure out how much video memory is available */#if 0        if ( flags & GAL_DOUBLEBUF ) {            maxheight = height*2;        } else {            maxheight = height;        }#else        maxheight = height;#endif        if ( vinfo.yres_virtual > maxheight ) {            vinfo.yres_virtual = maxheight;        }    }    cache_vinfo = vinfo;#ifdef FBCON_DEBUG    fprintf (stderr, "FBCON NEWGAL Engine: Printing actual vinfo:\n");    print_vinfo(&vinfo);#endif    Rmask = 0;    for ( i=0; i<vinfo.red.length; ++i ) {        Rmask <<= 1;        Rmask |= (0x00000001<<vinfo.red.offset);    }    Gmask = 0;    for ( i=0; i<vinfo.green.length; ++i ) {        Gmask <<= 1;        Gmask |= (0x00000001<<vinfo.green.offset);    }    Bmask = 0;    for ( i=0; i<vinfo.blue.length; ++i ) {        Bmask <<= 1;        Bmask |= (0x00000001<<vinfo.blue.offset);    }    if (!GAL_ReallocFormat(current, vinfo.bits_per_pixel,                                      Rmask, Gmask, Bmask, 0) ) {        return(NULL);    }    /* Get the fixed information about the console hardware.       This is necessary since finfo.line_length changes.     */    if ( ioctl(console_fd, FBIOGET_FSCREENINFO, &finfo) < 0 ) {        GAL_SetError("FBCON NEWGAL Engine: Couldn't get console hardware info");        return(NULL);    }    /* Save hardware palette, if needed */    FB_SavePalette(this, &finfo, &vinfo);    /* Set up the new mode framebuffer */    current->flags = (GAL_FULLSCREEN|GAL_HWSURFACE);    current->w = vinfo.xres;    current->h = vinfo.yres;    current->pitch = finfo.line_length;    current->pixels = mapped_mem+mapped_offset;    /* Set up the information for hardware surfaces */    surfaces_mem = (char *)current->pixels +                            vinfo.yres_virtual*current->pitch;    surfaces_len = (mapped_memlen-(surfaces_mem-mapped_mem));#if defined(_LITE_VERSION) && !defined(_STAND_ALONE)    if (mgIsServer)#endif    {        FB_FreeHWSurfaces(this);        FB_InitHWSurfaces(this, current, surfaces_mem, surfaces_len);    }#if defined(_LITE_VERSION) && !defined(_STAND_ALONE)    else {        current->hwdata = NULL;    }#endif    /* Let the application know we have a hardware palette */    switch (finfo.visual) {        case FB_VISUAL_PSEUDOCOLOR:        current->flags |= GAL_HWPALETTE;        break;        default:        break;    }#if 0    /* Update for double-buffering, if we can */    if ( flags & GAL_DOUBLEBUF ) {        if ( vinfo.yres_virtual == (height*2) ) {            current->flags |= GAL_DOUBLEBUF;            flip_page = 0;            flip_address[0] = (char *)current->pixels;            flip_address[1] = (char *)current->pixels+                                      current->h*current->pitch;            this->screen = current;            FB_FlipHWSurface(this, current);            this->screen = NULL;        }    }    /* Set the update rectangle function */    this->UpdateRects = FB_DirectUpdate;#endif    /* We're done */    return(current);}#ifdef FBCON_DEBUGstatic void FB_DumpHWSurfaces(_THIS){    vidmem_bucket *bucket;    fprintf(stderr, "Memory left: %d (%d total)\n", surfaces_memleft, surfaces_memtotal);    fprintf(stderr, "\n");    fprintf(stderr, "         Base  Size\n");    for ( bucket=&surfaces; bucket; bucket=bucket->next ) {        fprintf(stderr, "Bucket:  %p, %d (%s)\n", bucket->base, bucket->size, bucket->used ? "used" : "free");        if ( bucket->prev ) {            if ( bucket->base != bucket->prev->base+bucket->prev->size ) {                fprintf(stderr, "Warning, corrupt bucket list! (prev)\n");            }        } else {            if ( bucket != &surfaces ) {                fprintf(stderr, "Warning, corrupt bucket list! (!prev)\n");            }        }        if ( bucket->next ) {            if ( bucket->next->base != bucket->base+bucket->size ) {                fprintf(stderr, "Warning, corrupt bucket list! (next)\n");            }        }    }    fprintf(stderr, "\n");}#endifstatic int FB_InitHWSurfaces(_THIS, GAL_Surface *screen, char *base, int size){    vidmem_bucket *bucket;    surfaces_memtotal = size;    surfaces_memleft = size;    if ( surfaces_memleft > 0 ) {        bucket = (vidmem_bucket *)malloc(sizeof(*bucket));        if ( bucket == NULL ) {            GAL_OutOfMemory();            return(-1);        }        bucket->prev = &surfaces;        bucket->used = 0;        bucket->dirty = 0;        bucket->base = base;        bucket->size = size;        bucket->next = NULL;    } else {        bucket = NULL;    }    surfaces.prev = NULL;    surfaces.used = 1;    surfaces.dirty = 0;    surfaces.base = screen->pixels;    surfaces.size = (unsigned int)((long)base - (long)surfaces.base);    surfaces.next = bucket;    screen->hwdata = (struct private_hwdata *)&surfaces;    return(0);}static void FB_FreeHWSurfaces(_THIS){    vidmem_bucket *bucket, *freeable;    bucket = surfaces.next;    while ( bucket ) {        freeable = bucket;        bucket = bucket->next;        free(freeable);    }    surfaces.next = NULL;}static void FB_RequestHWSurface (_THIS, const REQ_HWSURFACE* request, REP_HWSURFACE* reply){    if (request->bucket == NULL) {     /* alloc hw surface */        vidmem_bucket *bucket;        int size;        int extra;        reply->bucket = NULL;        /* Temporarily, we only allow surfaces the same width as display.           Some blitters require the pitch between two hardware surfaces           to be the same.  Others have interesting alignment restrictions.           Until someone who knows these details looks at the code...        */        if (request->pitch > GAL_VideoSurface->pitch) {            GAL_SetError("FBCON NEWGAL Engine: Surface requested wider than screen\n");            return;        }        reply->pitch = GAL_VideoSurface->pitch;        size = request->h * reply->pitch;#ifdef FBCON_DEBUG        fprintf(stderr, "Allocating bucket of %d bytes\n", size);#endif        /* Quick check for available mem */        if ( size > surfaces_memleft ) {            GAL_SetError("FBCON NEWGAL Engine: Not enough video memory\n");            return;        }        /* Search for an empty bucket big enough */        for ( bucket=&surfaces; bucket; bucket=bucket->next ) {            if ( ! bucket->used && (size <= bucket->size) ) {                break;            }        }        if ( bucket == NULL ) {            GAL_SetError("FBCON NEWGAL Engine: Video memory too fragmented\n");            return;        }        /* Create a new bucket for left-over memory */        extra = (bucket->size - size);        if ( extra ) {            vidmem_bucket *newbucket;#ifdef FBCON_DEBUG            fprintf(stderr, "Adding new free bucket of %d bytes\n", extra);#endif            newbucket = (vidmem_bucket *)malloc(sizeof(*newbucket));            if ( newbucket == NULL ) {                GAL_OutOfMemory();                return;            }            newbucket->prev = bucket;            newbucket->used = 0;            newbucket->base = bucket->base + size;            newbucket->size = extra;            newbucket->next = bucket->next;            if ( bucket->next ) {                bucket->next->prev = newbucket;            }            bucket->next = newbucket;        }        /* Set the current bucket values and return it! */        bucket->used = 1;        bucket->size = size;        bucket->dirty = 0;#ifdef FBCON_DEBUG        fprintf(stderr, "Allocated %d bytes at %p\n", bucket->size, bucket->base);#endif        surfaces_memleft -= size;        reply->bucket = bucket;        reply->offset = bucket->base - mapped_mem;    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲九九爱视频| 三级亚洲高清视频| 国产综合久久久久久鬼色 | 成人污污视频在线观看| 26uuu亚洲婷婷狠狠天堂| 精品一区二区三区在线观看| 日韩欧美第一区| 国产成+人+日韩+欧美+亚洲| 亚洲色图视频免费播放| 日本道在线观看一区二区| 亚洲妇熟xx妇色黄| 久久免费看少妇高潮| 高潮精品一区videoshd| 午夜精品久久久久久| 久久久欧美精品sm网站| 在线看不卡av| 成人一区二区三区视频在线观看| 亚洲精选一二三| 欧美经典三级视频一区二区三区| 欧美三级视频在线观看| 成人免费视频国产在线观看| 亚洲成年人网站在线观看| 国产女人18毛片水真多成人如厕 | 色婷婷av久久久久久久| 老司机精品视频导航| 亚洲午夜在线电影| 国产精品久久久久久久久晋中| 欧美日韩中文国产| 色综合久久综合中文综合网| 国产乱码一区二区三区| 美女mm1313爽爽久久久蜜臀| 亚洲国产成人高清精品| 一区二区日韩电影| 一区二区三区丝袜| 亚洲精品精品亚洲| 中文字幕一区日韩精品欧美| 精品免费一区二区三区| 91精品在线一区二区| 91精品国产综合久久久蜜臀粉嫩| 欧美日韩成人在线| 欧美疯狂性受xxxxx喷水图片| 精品视频123区在线观看| 欧美日韩精品是欧美日韩精品| 欧美在线综合视频| 欧美一区二区三区在线视频| 日韩欧美在线影院| 精品美女在线播放| 亚洲欧美日韩国产一区二区三区| 99久久综合精品| 日韩av中文在线观看| 亚洲国产精品影院| 激情综合亚洲精品| 成人性视频网站| 欧美精品一二三区| 欧美激情一区二区三区不卡| 亚洲午夜影视影院在线观看| 免费看欧美女人艹b| 国产精品中文字幕日韩精品 | 国产精品国产自产拍在线| 91精品国产手机| 国产女人aaa级久久久级| 自拍av一区二区三区| 午夜欧美2019年伦理| 日产精品久久久久久久性色| 狠狠色综合日日| 99久久国产综合色|国产精品| 91国产免费看| 国产欧美综合色| 免费在线一区观看| 99精品欧美一区| 日韩欧美一级二级三级| 亚洲欧美在线视频| 久久精品72免费观看| 91香蕉视频mp4| 欧美极品aⅴ影院| 久久精品国产**网站演员| 色综合久久久久久久久| 色悠悠久久综合| 中文字幕一区二区在线播放| 免费黄网站欧美| 51久久夜色精品国产麻豆| 国产精品伦理一区二区| 日本中文在线一区| 欧美性高清videossexo| 日韩理论片中文av| 一本到不卡免费一区二区| 久久久精品一品道一区| 久久超碰97人人做人人爱| 欧美精品xxxxbbbb| 日韩精品欧美成人高清一区二区| 色激情天天射综合网| 亚洲欧美激情在线| 在线观看免费成人| 婷婷久久综合九色综合绿巨人| 蜜桃av一区二区| 精品人伦一区二区色婷婷| 麻豆精品视频在线观看免费 | 国产精品久久久久精k8 | 老司机免费视频一区二区三区| 国产成人av一区二区三区在线 | 久久色视频免费观看| 国产真实乱偷精品视频免| 国产欧美日本一区二区三区| 成人美女在线观看| 一区二区三区中文字幕电影| 欧美日韩精品欧美日韩精品 | 国产精品高潮久久久久无| 欧美在线制服丝袜| 国内精品在线播放| 亚洲国产精品欧美一二99 | 99久久精品国产麻豆演员表| 一区二区在线免费| 色视频欧美一区二区三区| 免费观看一级特黄欧美大片| 中文字幕高清不卡| 91精品国产综合久久蜜臀| 日韩av成人高清| 亚洲免费资源在线播放| 久久精品人人做人人综合| 欧美日韩国产在线观看| 91视频在线观看| 琪琪久久久久日韩精品| 午夜精品久久一牛影视| 亚洲男人电影天堂| 国产亚洲欧洲997久久综合| 欧美精品高清视频| 欧美综合欧美视频| 日本二三区不卡| 91捆绑美女网站| 99精品久久免费看蜜臀剧情介绍| 三级在线观看一区二区| 五月开心婷婷久久| 欧美一级生活片| av激情成人网| 亚洲va韩国va欧美va| 丝袜亚洲另类欧美| 麻豆精品新av中文字幕| 久久aⅴ国产欧美74aaa| 国产一区二区三区日韩| 国产精品自拍网站| 国产精品自在在线| 国产伦精一区二区三区| 成人免费视频一区二区| 国产精品一级黄| 色8久久人人97超碰香蕉987| 欧美日韩国产影片| 国产精品情趣视频| 亚洲成人自拍偷拍| 国产呦萝稀缺另类资源| 粉嫩aⅴ一区二区三区四区| 日本韩国欧美一区| 久久久国产精华| 一区二区三区精品| 粉嫩高潮美女一区二区三区| 欧美日韩高清影院| 中文字幕一区二区三区在线播放| 亚洲不卡一区二区三区| 成人精品国产一区二区4080| 欧美视频一区在线| 国产精品白丝在线| 免费视频一区二区| 日本精品免费观看高清观看| 国产婷婷色一区二区三区在线| 亚洲精品视频一区| 成人性生交大片| 久久女同精品一区二区| 久久草av在线| 日韩欧美一区二区三区在线| 亚洲va国产va欧美va观看| av成人动漫在线观看| 欧美午夜影院一区| 亚洲精品视频在线| 欧美精选在线播放| 日韩av不卡一区二区| 日韩午夜激情免费电影| 午夜精品国产更新| 精品欧美一区二区三区精品久久 | 中文字幕一区在线观看| 国产成人99久久亚洲综合精品| 欧美大白屁股肥臀xxxxxx| 国产精品69毛片高清亚洲| 一区二区三区四区在线播放 | 久久久噜噜噜久久人人看| 99久久精品免费看| 蜜臀精品久久久久久蜜臀| 亚洲欧洲精品天堂一级| 91精品久久久久久久久99蜜臂| 成年人国产精品| 国产酒店精品激情| 久久精品72免费观看| 亚洲高清在线精品| 亚洲欧美激情插| 亚洲欧洲另类国产综合| 久久精品夜夜夜夜久久| 精品欧美乱码久久久久久 | 在线观看免费成人| 色综合久久综合网| 色综合天天视频在线观看| 丁香激情综合国产| 国产成a人亚洲精|