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

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

?? video_out_x11.c

?? mpeg2dec-0.4.1.tar.gz mpeg2 decoder source code.Have been compiled successfully.
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
	instance->frame[i].data = instance->frame[i].ximage->data = alloc;	alloc += size;    }    return 0;}static void x11_teardown (x11_instance_t * instance){    int i;    for (i = 0; i < 3; i++) {	while (instance->frame[i].wait_completion)	    x11_event (instance);	XDestroyImage (instance->frame[i].ximage);    }    destroy_shm (instance);}static void x11_close (vo_instance_t * _instance){    x11_instance_t * instance = (x11_instance_t *) _instance;    if (instance->teardown != NULL)	instance->teardown (instance);    XFreeGC (instance->display, instance->gc);    XDestroyWindow (instance->display, instance->window);#ifdef LIBVO_XV    if (instance->adaptors)	XvFreeAdaptorInfo (instance->adaptorInfo);#endif    XCloseDisplay (instance->display);    free (instance);}#ifdef LIBVO_XVstatic void xv_setup_fbuf (vo_instance_t * _instance,			   uint8_t ** buf, void ** id){    x11_instance_t * instance = (x11_instance_t *) _instance;    uint8_t * data;    data = (uint8_t *) instance->frame[instance->index].xvimage->data;    buf[0] = data + instance->frame[instance->index].xvimage->offsets[0];    buf[1] = data + instance->frame[instance->index].xvimage->offsets[2];    buf[2] = data + instance->frame[instance->index].xvimage->offsets[1];    *id = instance->frame + instance->index++;}static void xv_draw_frame (vo_instance_t * _instance,			   uint8_t * const * buf, void * id){    x11_frame_t * frame = (x11_frame_t *) id;    x11_instance_t * instance = (x11_instance_t *) _instance;    XvShmPutImage (instance->display, instance->port, instance->window,		   instance->gc, frame->xvimage, 0, 0,		   instance->width, instance->height, 0, 0,		   instance->width, instance->height, True);    XFlush (instance->display);    frame->wait_completion = 1;}static int xv_check_fourcc (x11_instance_t * instance, XvPortID port,			    int fourcc, const char * fourcc_str){    XvImageFormatValues * formatValues;    int formats;    int i;    formatValues = XvListImageFormats (instance->display, port, &formats);    for (i = 0; i < formats; i++)	if ((formatValues[i].id == fourcc) &&	    (! (strcmp (formatValues[i].guid, fourcc_str)))) {	    XFree (formatValues);	    return 0;	}    XFree (formatValues);    return 1;}static int xv_check_extension (x11_instance_t * instance,			       int fourcc, const char * fourcc_str){    unsigned int i;    unsigned long j;    if (!instance->adaptorInfo) {	unsigned int version;	unsigned int release;	unsigned int dummy;	if ((XvQueryExtension (instance->display, &version, &release,			       &dummy, &dummy, &dummy) != Success) ||	    (version < 2) || ((version == 2) && (release < 2))) {	    fprintf (stderr, "No xv extension\n");	    return 1;	}	XvQueryAdaptors (instance->display, instance->window,			 &instance->adaptors, &instance->adaptorInfo);    }    for (i = 0; i < instance->adaptors; i++)	if (instance->adaptorInfo[i].type & XvImageMask)	    for (j = 0; j < instance->adaptorInfo[i].num_ports; j++)		if ((! (xv_check_fourcc (instance,					 instance->adaptorInfo[i].base_id + j,					 fourcc, fourcc_str))) &&		    (XvGrabPort (instance->display,				 instance->adaptorInfo[i].base_id + j,				 0) == Success)) {		    instance->port = instance->adaptorInfo[i].base_id + j;		    return 0;		}    fprintf (stderr, "Cannot find xv %s port\n", fourcc_str);    return 1;}static int xv_alloc_frames (x11_instance_t * instance, int size,			    int fourcc){    char * alloc;    int i = 0;    alloc = (char *) create_shm (instance, 3 * size);    if (alloc == NULL)	return 1;    while (i < 3) {	instance->frame[i].wait_completion = 0;	instance->frame[i].xvimage =	    XvShmCreateImage (instance->display, instance->port, fourcc,			      alloc, instance->width, instance->height,			      &(instance->shminfo));	instance->frame[i].data = alloc;	alloc += size;	if ((instance->frame[i].xvimage == NULL) ||	    (instance->frame[i++].xvimage->data_size != size)) {	    while (--i >= 0)		XFree (instance->frame[i].xvimage);	    destroy_shm (instance);	    return 1;	}    }    return 0;}static void xv_teardown (x11_instance_t * instance){    int i;    for (i = 0; i < 3; i++) {	while (instance->frame[i].wait_completion)	    x11_event (instance);	XFree (instance->frame[i].xvimage);    }    destroy_shm (instance);    XvUngrabPort (instance->display, instance->port, 0);}#endifstatic int common_setup (vo_instance_t * _instance, unsigned int width,			 unsigned int height, unsigned int chroma_width,			 unsigned int chroma_height,			 vo_setup_result_t * result){    x11_instance_t * instance = (x11_instance_t *) _instance;    if (instance->display != NULL) {	/* Already setup, just adjust to the new size */	if (instance->teardown != NULL)	    instance->teardown (instance);        XResizeWindow (instance->display, instance->window, width, height);    } else {	/* Not setup yet, do the full monty */        if (open_display (instance, width, height))            return 1;        XMapWindow (instance->display, instance->window);    }    instance->vo.setup_fbuf = NULL;    instance->vo.start_fbuf = NULL;    instance->vo.set_fbuf = NULL;    instance->vo.draw = NULL;    instance->vo.discard = NULL;    instance->vo.close = x11_close;    instance->width = width;    instance->height = height;    instance->index = 0;    instance->teardown = NULL;    result->convert = NULL;#ifdef LIBVO_XV    if (instance->xv == 1 &&	(chroma_width == width >> 1) && (chroma_height == height >> 1) &&	!xv_check_extension (instance, FOURCC_YV12, "YV12") &&	!xv_alloc_frames (instance, 3 * width * height / 2, FOURCC_YV12)) {	instance->vo.setup_fbuf = xv_setup_fbuf;	instance->vo.start_fbuf = x11_start_fbuf;	instance->vo.draw = xv_draw_frame;	instance->teardown = xv_teardown;    } else if (instance->xv && (chroma_width == width >> 1) &&	       !xv_check_extension (instance, FOURCC_UYVY, "UYVY") &&	       !xv_alloc_frames (instance, 2 * width * height, FOURCC_UYVY)) {	instance->vo.setup_fbuf = x11_setup_fbuf;	instance->vo.start_fbuf = x11_start_fbuf;	instance->vo.draw = xv_draw_frame;	instance->teardown = xv_teardown;	result->convert = mpeg2convert_uyvy;    } else#endif    if (!x11_alloc_frames (instance)) {	int bpp;	instance->vo.setup_fbuf = x11_setup_fbuf;	instance->vo.start_fbuf = x11_start_fbuf;	instance->vo.draw = x11_draw_frame;	instance->teardown = x11_teardown;#ifdef WORDS_BIGENDIAN	if (instance->frame[0].ximage->byte_order != MSBFirst) {	    fprintf (stderr, "No support for non-native byte order\n");	    return 1;	}#else	if (instance->frame[0].ximage->byte_order != LSBFirst) {	    fprintf (stderr, "No support for non-native byte order\n");	    return 1;	}#endif	/*	 * depth in X11 terminology land is the number of bits used to	 * actually represent the colour.	 *	 * bpp in X11 land means how many bits in the frame buffer per	 * pixel.	 *	 * ex. 15 bit color is 15 bit depth and 16 bpp. Also 24 bit	 *     color is 24 bit depth, but can be 24 bpp or 32 bpp.	 *	 * If we have blue in the lowest bit then "obviously" RGB	 * (the guy who wrote this convention never heard of endianness ?)	 */	bpp = ((instance->vinfo.depth == 24) ?	       instance->frame[0].ximage->bits_per_pixel :	       instance->vinfo.depth);	result->convert =	    mpeg2convert_rgb (((instance->frame[0].ximage->blue_mask & 1) ?			       MPEG2CONVERT_RGB : MPEG2CONVERT_BGR), bpp);	if (result->convert == NULL) {	    fprintf (stderr, "%dbpp not supported\n", bpp);	    return 1;	}    }    return 0;}static vo_instance_t * common_open (int xv){    x11_instance_t * instance;    instance = (x11_instance_t *) malloc (sizeof (x11_instance_t));    if (instance == NULL)	return NULL;    instance->vo.setup = common_setup;    instance->vo.close = (void (*) (vo_instance_t *)) free;    instance->display = NULL;#ifdef LIBVO_XV    instance->xv = xv;#endif    return (vo_instance_t *) instance;}vo_instance_t * vo_x11_open (void){    return common_open (0);}#ifdef LIBVO_XVvo_instance_t * vo_xv_open (void){    return common_open (1);}vo_instance_t * vo_xv2_open (void){    return common_open (2);}#endif#endif

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲精品乱码久久久久久蜜桃| 日本高清视频一区二区| 亚洲免费在线视频| 2024国产精品视频| 欧美最猛性xxxxx直播| 国产乱码精品一区二区三| 亚洲va欧美va人人爽| 亚洲国产成人私人影院tom| 欧美一区二区三区四区五区 | 久久久精品tv| 欧美视频自拍偷拍| 成人高清免费观看| 久久99精品国产麻豆不卡| 亚洲国产视频网站| 国产精品久久久久久久久久久免费看| 日韩视频123| 欧美日韩久久久一区| 色婷婷av一区二区三区大白胸 | 日韩精品三区四区| 亚洲欧美视频一区| 国产精品久久久久婷婷| 欧美精品一区二区精品网| 欧美精品日韩综合在线| 色哟哟在线观看一区二区三区| 成人午夜在线视频| 国产成人av电影| 国产一区二区精品久久91| 麻豆精品一区二区三区| 日韩国产在线一| 婷婷综合另类小说色区| 亚洲国产aⅴ天堂久久| 一区二区欧美精品| 亚洲男帅同性gay1069| 国产精品不卡在线| 1024成人网| 综合av第一页| 亚洲最新视频在线播放| 一区二区三区在线观看网站| 一区av在线播放| 亚洲一区二区高清| 亚洲一区在线视频| 视频在线观看一区二区三区| 天堂蜜桃一区二区三区| 日韩二区三区四区| 久久精品国产成人一区二区三区 | 国产露脸91国语对白| 狠狠色丁香婷婷综合久久片| 久久99国产乱子伦精品免费| 精品一区二区三区视频在线观看| 极品少妇xxxx偷拍精品少妇| 国产乱对白刺激视频不卡 | 日韩欧美你懂的| 日韩三级免费观看| 欧美精品一区二区三| 国产亚洲精品7777| 国产精品美女视频| 一区二区在线观看av| 亚洲国产精品尤物yw在线观看| 天堂久久一区二区三区| 精品一区二区日韩| av影院午夜一区| 欧美日韩小视频| 欧美一区二区美女| 久久久www免费人成精品| 中文av一区特黄| 一区二区国产视频| 日韩在线a电影| 国产一区二区三区四区五区入口| 成人午夜av在线| 色呦呦国产精品| 日韩欧美一级在线播放| 欧美激情一区二区三区蜜桃视频| 亚洲精品自拍动漫在线| 日韩电影免费在线看| 国产福利精品一区| 色婷婷精品久久二区二区蜜臂av | 久久综合久久久久88| 国产精品欧美经典| 午夜婷婷国产麻豆精品| 国产一区二区h| 在线观看免费一区| 精品国产一区二区三区久久久蜜月| 成人欧美一区二区三区白人| 日日嗨av一区二区三区四区| 国产二区国产一区在线观看| 欧美三级午夜理伦三级中视频| 欧美变态tickling挠脚心| 亚洲欧美另类久久久精品2019| 看电影不卡的网站| 91视频在线观看免费| 日韩欧美黄色影院| 亚洲自拍偷拍网站| 国产电影精品久久禁18| 欧美日韩电影在线| 中文成人av在线| 免费在线一区观看| 色悠久久久久综合欧美99| 亚洲精品一区二区三区蜜桃下载| 亚洲一级二级在线| 成人福利视频网站| 欧美成人a视频| 亚洲成av人片一区二区梦乃| www.日韩精品| 国产亚洲综合在线| 奇米精品一区二区三区四区| 色欧美日韩亚洲| 国产农村妇女毛片精品久久麻豆| 日一区二区三区| 91久久精品一区二区二区| 欧美国产视频在线| 精品写真视频在线观看| 91精品国产91热久久久做人人| 亚洲色图欧美在线| 国产成人av影院| 日韩欧美一区二区不卡| 天天亚洲美女在线视频| 欧美在线观看一区| 亚洲欧美另类久久久精品2019| 处破女av一区二区| 国产亚洲精品bt天堂精选| 狠狠色丁香婷婷综合| 7878成人国产在线观看| 亚洲图片自拍偷拍| 91成人网在线| 亚洲欧美日韩国产一区二区三区| av在线综合网| 最新热久久免费视频| 成人黄色片在线观看| 国产精品嫩草影院com| 成人天堂资源www在线| 欧美极品xxx| 99久久精品免费精品国产| 国产精品日日摸夜夜摸av| 国产白丝网站精品污在线入口| 久久免费午夜影院| 国产在线视频精品一区| 欧美精品一区二区蜜臀亚洲| 国产精品99精品久久免费| 久久看人人爽人人| 国产成人av影院| 亚洲欧洲另类国产综合| 日本乱人伦aⅴ精品| 亚洲国产精品麻豆| 欧美日韩大陆一区二区| 琪琪久久久久日韩精品| 91精品国产综合久久香蕉的特点| 日韩**一区毛片| 精品国偷自产国产一区| 国产制服丝袜一区| 国产精品久久毛片a| 色综合久久久久| 亚洲va韩国va欧美va| 欧美二区三区的天堂| 久久精品国产一区二区| 久久久久久黄色| 91网页版在线| 日韩二区在线观看| 国产香蕉久久精品综合网| 99国产精品久久| 亚洲成a人v欧美综合天堂| 亚洲精品在线观看网站| www.视频一区| 日韩精品亚洲专区| 国产日产欧美一区二区三区| 99在线热播精品免费| 亚洲成年人网站在线观看| 精品国产露脸精彩对白| 不卡视频在线看| 日韩av在线播放中文字幕| 久久久久久久久99精品| 欧美在线一区二区| 国内精品伊人久久久久影院对白| 欧美国产一区二区| 欧美视频在线不卡| 精彩视频一区二区三区| 亚洲视频电影在线| 欧美成人a视频| 一本到三区不卡视频| 久久99深爱久久99精品| 亚洲综合色丁香婷婷六月图片| 欧美成人vr18sexvr| 日本乱人伦一区| 国产九色精品成人porny| 亚洲精品视频一区二区| 精品少妇一区二区三区日产乱码 | 天天综合天天做天天综合| 久久九九影视网| 91麻豆精品国产| 91在线视频观看| 国产最新精品免费| 亚洲一级二级在线| 国产精品久久国产精麻豆99网站| 91麻豆精品国产91| 色就色 综合激情| 丁香一区二区三区| 日韩国产欧美在线视频| 一区二区欧美视频| 日本一区二区三区免费乱视频| 欧美一区二区三区电影| 91网页版在线|