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

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

?? subreader.c.svn-base

?? sigmadesign smp8623 gui source code ,bingo
?? SVN-BASE
?? 第 1 頁 / 共 4 頁
字號:
	RMascii *p=NULL, *next,separator;	int i,len,plen;	while (!current->text[0]) {		if (!stream_read_line (st, line, LINE_LEN)) return NULL;		if ((len=sscanf (line, "%d:%d:%d%c%n",&a1,&a2,&a3,&separator,&plen)) < 4)			continue;		if (!(current->start = a1*360000+a2*6000+a3*100))			continue;                /* removed by wodzu		p=line; 		// finds the body of the subtitle 		for (i=0; i<3; i++){		   p=RMFindAsciiCharacter(p,':');		   if (p==NULL) break;		   ++p;		}		if (p==NULL) {		    printf("SUB: Skipping incorrect subtitle line!\n");		    continue;		}                */                // by wodzu: hey! this time we know what length it has! what is                // that magic for? it can't deal with space instead of third                // colon! look, what simple it can be:                p = &line[ plen ]; 		i=0;		if (*p!='|') {			//			next = p,i=0;			while ((next =sub_readtext (next, &(current->text[i])))) {				if (current->text[i]==ERR) {return ERR;}				i++;				if (i>=SUB_MAX_TEXT) { current->lines=i;return current;}			}			current->lines=i+1;		}	}	return current;}static subtitle *sub_read_line_rt(stream_t *st,subtitle *current) {	//TODO: This format uses quite rich (sub/super)set of xhtml	// I couldn't check it since DTD is not included.	// WARNING: full XML parses can be required for proper parsing    RMascii line[LINE_LEN+1];    int a1,a2,a3,a4,b1,b2,b3,b4;    RMascii *p=NULL,*next=NULL;    int i,len,plen;    while (!current->text[0]) {	if (!stream_read_line (st, line, LINE_LEN)) return NULL;	//TODO: it seems that format of time is not easily determined, it may be 1:12, 1:12.0 or 0:1:12.0	//to describe the same moment in time. Maybe there are even more formats in use.	//if ((len=sscanf (line, "<Time Begin=\"%d:%d:%d.%d\" End=\"%d:%d:%d.%d\"",&a1,&a2,&a3,&a4,&b1,&b2,&b3,&b4)) < 8)	plen=a1=a2=a3=a4=b1=b2=b3=b4=0;	if (	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d.%d\" %*[Ee]nd=\"%d.%d\"%*[^<]<clear/>%n",&a3,&a4,&b3,&b4,&plen)) < 4) &&	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d.%d\" %*[Ee]nd=\"%d:%d.%d\"%*[^<]<clear/>%n",&a3,&a4,&b2,&b3,&b4,&plen)) < 5) &&	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d:%d\" %*[Ee]nd=\"%d:%d\"%*[^<]<clear/>%n",&a2,&a3,&b2,&b3,&plen)) < 4) &&	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d:%d\" %*[Ee]nd=\"%d:%d.%d\"%*[^<]<clear/>%n",&a2,&a3,&b2,&b3,&b4,&plen)) < 5) &&//	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d:%d.%d\" %*[Ee]nd=\"%d:%d\"%*[^<]<clear/>%n",&a2,&a3,&a4,&b2,&b3,&plen)) < 5) &&	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d:%d.%d\" %*[Ee]nd=\"%d:%d.%d\"%*[^<]<clear/>%n",&a2,&a3,&a4,&b2,&b3,&b4,&plen)) < 6) &&	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d:%d:%d.%d\" %*[Ee]nd=\"%d:%d:%d.%d\"%*[^<]<clear/>%n",&a1,&a2,&a3,&a4,&b1,&b2,&b3,&b4,&plen)) < 8) &&	//now try it without end time	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d.%d\"%*[^<]<clear/>%n",&a3,&a4,&plen)) < 2) &&	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d:%d\"%*[^<]<clear/>%n",&a2,&a3,&plen)) < 2) &&	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d:%d.%d\"%*[^<]<clear/>%n",&a2,&a3,&a4,&plen)) < 3) &&	((len=sscanf (line, "<%*[tT]ime %*[bB]egin=\"%d:%d:%d.%d\"%*[^<]<clear/>%n",&a1,&a2,&a3,&a4,&plen)) < 4)	)	    continue;	current->start = a1*360000+a2*6000+a3*100+a4/10;	current->end   = b1*360000+b2*6000+b3*100+b4/10;	if (b1 == 0 && b2 == 0 && b3 == 0 && b4 == 0)	  current->end = current->start+200;	p=line;	p+=plen;i=0;	// TODO: I don't know what kind of convention is here for marking multiline subs, maybe <br/> like in xml?	next = strstr(line,"<clear/>");	if(next && RMasciiLength(next)>8){	  next+=8;i=0;	  while ((next =sub_readtext (next, &(current->text[i])))) {		if (current->text[i]==ERR) {return ERR;}		i++;		if (i>=SUB_MAX_TEXT) { current->lines=i;return current;}	  }	}			current->lines=i+1;    }    return current;}static subtitle *sub_read_line_ssa(stream_t *st,subtitle *current) {/* * Sub Station Alpha v4 (and v2?) scripts have 9 commas before subtitle * other Sub Station Alpha scripts have only 8 commas before subtitle * Reading the "ScriptType:" field is not reliable since many scripts appear * w/o it * * http://www.scriptclub.org is a good place to find more examples * http://www.eswat.demon.co.uk is where the SSA specs can be found */        int comma;        static int max_comma = 32; /* let's use 32 for the case that the */                    /*  amount of commas increase with newer SSA versions */	int hour1, min1, sec1, hunsec1,	    hour2, min2, sec2, hunsec2, nothing;	int num;	RMascii line[LINE_LEN+1],	     line3[LINE_LEN+1],	     *line2;	RMascii *tmp;	do {		if (!stream_read_line (st, line, LINE_LEN)) return NULL;	} while (sscanf (line, "Dialogue: Marked=%d,%d:%d:%d.%d,%d:%d:%d.%d,"			"%[^\n\r]", &nothing,			&hour1, &min1, &sec1, &hunsec1,			&hour2, &min2, &sec2, &hunsec2,			line3) < 9		 &&		 sscanf (line, "Dialogue: %d,%d:%d:%d.%d,%d:%d:%d.%d,"			 "%[^\n\r]", &nothing,			 &hour1, &min1, &sec1, &hunsec1,			 &hour2, &min2, &sec2, &hunsec2,			 line3) < 9	    );        line2=strchr(line3, ',');        for (comma = 4; comma < max_comma; comma ++)          {            tmp = line2;            if(!(tmp=strchr(++tmp, ','))) break;            if(*(++tmp) == ' ') break;                  /* a space after a comma means we're already in a sentence */            line2 = tmp;          }        if(comma < max_comma)max_comma = comma;	/* eliminate the trailing comma */	if(*line2 == ',') line2++;	current->lines=0;num=0;	current->start = 360000*hour1 + 6000*min1 + 100*sec1 + hunsec1;	current->end   = 360000*hour2 + 6000*min2 + 100*sec2 + hunsec2;        while (((tmp=strstr(line2, "\\n")) != NULL) || ((tmp=strstr(line2, "\\N")) != NULL) ){		current->text[num]=MALLOC(tmp-line2+1);		strncpy (current->text[num], line2, tmp-line2);		current->text[num][tmp-line2]='\0';		line2=tmp+2;		num++;		current->lines++;		if (current->lines >=  SUB_MAX_TEXT) return current;	}	current->text[num]=strdup(line2);	current->lines++;	return current;}static void sub_pp_ssa(subtitle *sub) {	int l=sub->lines;	RMascii *so,*de,*start;	while (l){            	/* eliminate any text enclosed with {}, they are font and color settings */            	so=de=sub->text[--l];            	while (*so) {            		if(*so == '{' && so[1]=='\\') {            			for (start=so; *so && *so!='}'; so++);            			if(*so) so++; else so=start;            		}            		if(*so) {            			*de=*so;            			so++; de++;            		}            	}            	*de=*so;        }}/* * PJS subtitles reader. * That's the "Phoenix Japanimation Society" format. * I found some of them in http://www.scriptsclub.org/ (used for anime). * The time is in tenths of second. * * by set, based on code by szabi (dunnowhat sub format ;-) */static subtitle *sub_read_line_pjs(stream_t *st,subtitle *current) {    RMascii line[LINE_LEN+1];    RMascii text[LINE_LEN+1], *s, *d;    if (!stream_read_line (st, line, LINE_LEN))	return NULL;    /* skip spaces */    for (s=line; *s && isspace(*s); s++);    /* allow empty lines at the end of the file */    if (*s==0)	return NULL;    /* get the time */    if (sscanf (s, "%ld,%ld,", &(current->start),		&(current->end)) <2) {	return ERR;    }    /* the files I have are in tenths of second */    current->start *= 10;    current->end *= 10;    /* walk to the beggining of the string */    for (; *s; s++) if (*s==',') break;    if (*s) {	for (s++; *s; s++) if (*s==',') break;	if (*s) s++;    }    if (*s!='"') {	return ERR;    }    /* copy the string to the text buffer */    for (s++, d=text; *s && *s!='"'; s++, d++)	*d=*s;    *d=0;    current->text[0] = strdup(text);    current->lines = 1;    return current;}#ifndef USE_SORTSUB//we don't need this if we use previous_sub_endsubtitle *previous_aqt_sub = NULL;#endifstatic subtitle *sub_read_line_aqt(stream_t *st,subtitle *current) {    RMascii line[LINE_LEN+1];    RMascii *next;    int i;    while (1) {    // try to locate next subtitle        if (!stream_read_line (st, line, LINE_LEN))		return NULL;        if (!(sscanf (line, "-->> %ld", &(current->start)) <1))		break;    }#ifdef USE_SORTSUB    previous_sub_end = (current->start) ? current->start - 1 : 0;#else    if (previous_aqt_sub != NULL)	previous_aqt_sub->end = current->start-1;    previous_aqt_sub = current;#endif    if (!stream_read_line (st, line, LINE_LEN))	return NULL;    sub_readtext((RMascii *) &line,&current->text[0]);    current->lines = 1;    current->end = current->start; // will be corrected by next subtitle    if (!stream_read_line (st, line, LINE_LEN))	return current;    next = line,i=1;    while ((next =sub_readtext (next, &(current->text[i])))) {	if (current->text[i]==ERR) {return ERR;}	i++;	if (i>=SUB_MAX_TEXT) { current->lines=i;return current;}	}    current->lines=i+1;    if ((current->text[0]=="") && (current->text[1]=="")) {#ifdef USE_SORTSUB	previous_sub_end = 0;#else	// void subtitle -> end of previous marked and exit	previous_aqt_sub = NULL;#endif	return NULL;	}    return current;}#ifndef USE_SORTSUBsubtitle *previous_subrip09_sub = NULL;#endifstatic subtitle *sub_read_line_subrip09(stream_t *st,subtitle *current) {    RMascii line[LINE_LEN+1];    int a1,a2,a3;    RMascii * next=NULL;    int i,len;    while (1) {    // try to locate next subtitle        if (!stream_read_line (st, line, LINE_LEN))		return NULL;        if (!((len=sscanf (line, "[%d:%d:%d]",&a1,&a2,&a3)) < 3))		break;    }    current->start = a1*360000+a2*6000+a3*100;#ifdef USE_SORTSUB    previous_sub_end = (current->start) ? current->start - 1 : 0;#else    if (previous_subrip09_sub != NULL)	previous_subrip09_sub->end = current->start-1;    previous_subrip09_sub = current;#endif    if (!stream_read_line (st, line, LINE_LEN))	return NULL;    next = line,i=0;    current->text[0]=""; // just to be sure that string is clear    while ((next =sub_readtext (next, &(current->text[i])))) {	if (current->text[i]==ERR) {return ERR;}	i++;	if (i>=SUB_MAX_TEXT) { current->lines=i;return current;}	}    current->lines=i+1;    if ((current->text[0]=="") && (i==0)) {#ifdef USE_SORTSUB	previous_sub_end = 0;#else	// void subtitle -> end of previous marked and exit	previous_subrip09_sub = NULL;#endif	return NULL;	}    return current;}static subtitle *sub_read_line_jacosub(stream_t* st, subtitle * current){    RMascii line1[LINE_LEN], line2[LINE_LEN], directive[LINE_LEN], *p, *q;    unsigned a1, a2, a3, a4, b1, b2, b3, b4, comment = 0;    static unsigned jacoTimeres = 30;    static int jacoShift = 0;    RMMemset(current, 0, sizeof(subtitle));    RMMemset(line1, 0, LINE_LEN);    RMMemset(line2, 0, LINE_LEN);    RMMemset(directive, 0, LINE_LEN);    while (!current->text[0]) {	if (!stream_read_line(st, line1, LINE_LEN)) {	    return NULL;	}	if (sscanf	    (line1, "%u:%u:%u.%u %u:%u:%u.%u %[^\n\r]", &a1, &a2, &a3, &a4,	     &b1, &b2, &b3, &b4, line2) < 9) {	    if (sscanf(line1, "@%u @%u %[^\n\r]", &a4, &b4, line2) < 3) {		if (line1[0] == '#') {		    int hours = 0, minutes = 0, seconds, delta, inverter =			1;		    unsigned units = jacoShift;		    switch (toupper(line1[1])) {		    case 'S':			if (isalpha(line1[2])) {			    delta = 6;			} else {			    delta = 2;			}			if (sscanf(&line1[delta], "%d", &hours)) {			    if (hours < 0) {				hours *= -1;				inverter = -1;			    }			    if (sscanf(&line1[delta], "%*d:%d", &minutes)) {				if (sscanf				    (&line1[delta], "%*d:%*d:%d",				     &seconds)) {				    sscanf(&line1[delta], "%*d:%*d:%*d.%d",					   &units);				} else {				    hours = 0;				    sscanf(&line1[delta], "%d:%d.%d",					   &minutes, &seconds, &units);				    minutes *= inverter;				}			    } else {				hours = minutes = 0;				sscanf(&line1[delta], "%d.%d", &seconds,				       &units);				seconds *= inverter;			    }			    jacoShift =				((hours * 3600 + minutes * 60 +				  seconds) * jacoTimeres +				 units) * inverter;			}			break;		    case 'T':			if (isalpha(line1[2])) {			    delta = 8;			} else {			    delta = 2;			}			sscanf(&line1[delta], "%u", &jacoTimeres);			break;		    }		}		continue;	    } else {		current->start =		    (RMuint32) ((a4 + jacoShift) * 100.0 /				     jacoTimeres);		current->end =		    (RMuint32) ((b4 + jacoShift) * 100.0 /				     jacoTimeres);	    }	} else {	    current->start =		(RMuint32) (((a1 * 3600 + a2 * 60 + a3) * jacoTimeres + a4 +			 jacoShift) * 100.0 / jacoTimeres);	    current->end =		(RMuint32) (((b1 * 3600 + b2 * 60 + b3) * jacoTimeres + b4 +			 jacoShift) * 100.0 / jacoTimeres);	}	current->lines = 0;	p = line2;	while ((*p == ' ') || (*p == '\t')) {	    ++p;	}	if (isalpha(*p)||*p == '[') {	    int cont, jLength;	    if (sscanf(p, "%s %[^\n\r]", directive, line1) < 2)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品一二三四区| 国产精品美女一区二区三区| 婷婷久久综合九色综合绿巨人| 91黄色免费网站| 亚洲一区二区三区视频在线| 欧美区一区二区三区| 美女精品一区二区| 国产欧美日韩中文久久| 色婷婷久久久亚洲一区二区三区| 亚洲综合免费观看高清完整版在线| 欧美性大战久久| 久久国产人妖系列| 国产色一区二区| 91亚洲国产成人精品一区二三| 日韩欧美视频一区| 亚洲电影在线免费观看| 欧美日韩不卡视频| 免费高清视频精品| 欧美国产精品v| 欧美在线观看视频一区二区三区| 亚洲成国产人片在线观看| 日韩欧美自拍偷拍| 成人av网在线| 丝袜诱惑制服诱惑色一区在线观看| 精品国产第一区二区三区观看体验| 从欧美一区二区三区| 亚洲国产成人91porn| 久久免费偷拍视频| 欧美亚日韩国产aⅴ精品中极品| 水野朝阳av一区二区三区| 亚洲国产电影在线观看| 欧美日韩视频一区二区| 国产高清视频一区| 久久久综合激的五月天| 国产ts人妖一区二区| 亚洲大片一区二区三区| 久久免费精品国产久精品久久久久| 色综合一区二区| 91亚洲精品久久久蜜桃| 久久99精品久久久久婷婷| 亚洲欧美二区三区| 国产亚洲精品aa| 欧美高清www午色夜在线视频| 成人激情文学综合网| 美女脱光内衣内裤视频久久网站 | 日本不卡视频在线| 亚洲欧洲日韩一区二区三区| 精品少妇一区二区三区视频免付费 | 日韩专区在线视频| 国产精品女主播av| 久久中文字幕电影| 69精品人人人人| 一本大道久久a久久综合| 狠狠色丁香婷婷综合| 亚洲444eee在线观看| 亚洲精品视频自拍| 国产精品久久久久桃色tv| 久久亚洲私人国产精品va媚药| 欧美色精品天天在线观看视频| fc2成人免费人成在线观看播放| 国内精品嫩模私拍在线| 久久精品国产色蜜蜜麻豆| 日韩综合在线视频| 五月天欧美精品| 亚洲国产婷婷综合在线精品| 亚洲男女毛片无遮挡| 1区2区3区精品视频| 国产午夜精品美女毛片视频| 精品国产一区二区精华| 欧美一区二区三区在线| 91.com视频| 欧美一二三区在线| 日韩午夜在线影院| 欧美精品一二三四| 3atv一区二区三区| 欧美一区二区福利在线| 91精品福利在线一区二区三区| 欧美日韩亚洲综合一区| 欧美日韩成人综合| 欧美高清www午色夜在线视频| 欧美高清hd18日本| 日韩午夜av电影| 精品久久人人做人人爽| 久久综合九色综合欧美亚洲| 久久午夜羞羞影院免费观看| 国产无一区二区| 中文无字幕一区二区三区| 中文字幕在线不卡视频| 亚洲综合久久久久| 日韩不卡在线观看日韩不卡视频| 日本免费新一区视频| 久久er精品视频| www.亚洲人| 欧美日韩一区久久| 精品久久久久av影院| 亚洲国产精品99久久久久久久久| 亚洲国产精品v| 一区二区三区四区五区视频在线观看 | 亚洲成人精品影院| 美国三级日本三级久久99| 国产精品自在在线| caoporen国产精品视频| 欧美久久久一区| 久久精品视频免费观看| 一区二区三区在线视频观看| 日韩有码一区二区三区| 精品一区二区在线观看| www.亚洲在线| 91麻豆精品国产91久久久更新时间| 久久一留热品黄| 亚洲精品免费播放| 久久精品国产99国产精品| 成人av网在线| 日韩亚洲电影在线| 亚洲视频一区二区免费在线观看| 亚洲成av人综合在线观看| 国产成人鲁色资源国产91色综| 精品视频在线免费| 久久精品视频在线看| 午夜伦欧美伦电影理论片| 国产精品一区二区男女羞羞无遮挡| 欧美在线观看视频一区二区三区| 精品国产一区二区三区久久久蜜月| 亚洲九九爱视频| 国产一区二区三区在线观看免费 | 欧美日韩1234| 国产欧美日韩三级| 视频一区中文字幕国产| 91小视频免费看| 精品国产91久久久久久久妲己 | 日韩欧美国产高清| 亚洲狼人国产精品| 国产成都精品91一区二区三| 欧美卡1卡2卡| 亚洲欧美激情插| 懂色av一区二区三区免费观看| 日韩欧美中文字幕制服| 亚洲一区精品在线| 成人av免费网站| 国产日韩精品一区| 免费成人在线播放| 欧美人与z0zoxxxx视频| 一区二区高清免费观看影视大全 | 亚洲成a人v欧美综合天堂下载| 成人app在线观看| 久久影视一区二区| 久久激情五月激情| 在线播放中文字幕一区| 亚洲精品视频自拍| 91丨porny丨中文| 国产精品女同一区二区三区| 国产成人午夜99999| 欧美va亚洲va香蕉在线| 日韩国产欧美三级| 777午夜精品免费视频| 亚洲第一福利一区| 欧美性色黄大片手机版| 一区二区三区在线视频免费观看| 97se亚洲国产综合自在线| 国产欧美一区二区在线观看| 国产一区二区三区免费| 精品国产乱码久久久久久蜜臀| 美女任你摸久久| 日韩免费高清av| 久久99久久精品| 精品免费99久久| 国产精品一区三区| 国产欧美日韩视频在线观看| 高清国产午夜精品久久久久久| 国产欧美综合在线观看第十页| 国产精品自拍网站| 国产欧美日本一区二区三区| 国产成人免费高清| 18欧美乱大交hd1984| 色综合久久天天| 亚洲国产一区视频| 欧美一区二区大片| 精品一区二区三区影院在线午夜 | 亚洲人快播电影网| 91精彩视频在线| 亚洲成年人影院| 精品久久人人做人人爰| 高清国产一区二区| 亚洲精品水蜜桃| 欧美一区在线视频| 国产剧情在线观看一区二区| 欧美国产日韩精品免费观看| 99国产精品久久久久久久久久久 | **性色生活片久久毛片| 欧美专区亚洲专区| 亚洲国产精品一区二区www| 欧美一级片在线看| 国产黄色精品网站| 亚洲黄网站在线观看| 91精品国产丝袜白色高跟鞋| 国产精品乡下勾搭老头1| 中文字幕在线播放不卡一区| 欧美日韩高清一区二区不卡| 国产乱人伦偷精品视频不卡| 一区二区三区四区精品在线视频 |