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

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

?? gme_for_iso.cpp

?? 小波圖像變換
?? CPP
?? 第 1 頁 / 共 4 頁
字號:
									dl = dy1 - y1;
									d1ml = 1. -dl;
									dI1x1y1[0] = pref_work[iref_pel];
									dI1x1y1[1] = pref_work[iref_pel1];
									dI1x1y1[2] = pref_work[iref_pel2];
									dI1x1y1[3] = pref_work[iref_pel3];
									dI1 = d1mk*d1ml*dI1x1y1[0] + dk*d1ml*dI1x1y1[1] +
										d1mk*dl*dI1x1y1[2] + dk*dl*dI1x1y1[3];
									de = dI1 - pcurr_work[icurr_pel];
									if(iite==0)
										iperror_histgram[(Int)(fabs(de))]++;
									if(fabs(de) < ithreshold_T) {
										dI1dx = (dI1x1y1[1]-dI1x1y1[0])*d1ml + (dI1x1y1[3]-dI1x1y1[2])*dl;
										dI1dy = (dI1x1y1[2]-dI1x1y1[0])*d1mk + (dI1x1y1[3]-dI1x1y1[1])*dk;
										ddedm[0] = dx * dI1dx;
										ddedm[1] = dy * dI1dx;
										ddedm[2] = dI1dx;
										ddedm[3] = dx * dI1dy;
										ddedm[4] = dy * dI1dy;
										ddedm[5] = dI1dy;
										db[0] += -de*ddedm[0];
										db[1] += -de*ddedm[1];
										db[2] += -de*ddedm[2];
										db[3] += -de*ddedm[3];
										db[4] += -de*ddedm[4];
										db[5] += -de*ddedm[5];
										for(yj=0; yj<6; yj++)
											for(xi=0; xi<=yj; xi++)
												dA[yj*6+xi] += ddedm[yj] * ddedm[xi];
											dE2 += de*de;
									} // threshold
								} // limit of ref_luma area
							} // limit of curr_luma area
							
						} // limit of curr_alpha value
						
					} // x
					icurr_pel += icurr_offset;
				} // y
				
			}
			
			if(iite==0){
				istop = istop*90/100;
				itmp=0;
				for(xi=0;xi<256;xi++){
					itmp+=iperror_histgram[xi];
					if(itmp > istop){
						ithreshold_T = xi-1;
						break; 
					}
				}
			}
			
			for(yj=0; yj<5; yj++)
				for(xi=yj+1; xi<6; xi++)
					dA[yj*6+xi] = dA[xi*6+yj];
				
			icheck = DeltaMP(dA, 6, db, dm);
			
			if(icheck){ 
				for(xi=0; xi<6; xi++)
					dTM[xi] += dm[xi];
				
				if(fabs(dm[2]) < 0.001 && fabs(dm[5]) < 0.001 && fabs(dm[0]) < 0.00001 &&
					fabs(dm[1]) < 0.00001 && fabs(dm[3]) < 0.00001 && 
					fabs(dm[4]) < 0.00001 ) break;
			}else {
				// printf("not up to matrix\n");
				break;
			}
				
		} // iteration

		if(ilevel){
			dTM[2] *= 2;
			dTM[5] *= 2;
			
			ifilter_offset =
				icurr_width * (EXPANDY_REF_FRAME>>ilevel) + (EXPANDY_REF_FRAME>>ilevel);
			pref_work -= ifilter_offset ;
			delete [] pref_work; pref_work = NULL;
			pcurr_work -= ifilter_offset ;
			delete [] pcurr_work; pcurr_work = NULL;
			if(m_volmd.fAUsage != RECTANGLE) {
				pref_alpha_work -= ifilter_offset ;
				delete [] pref_alpha_work; pref_alpha_work = NULL;
				pcurr_alpha_work -= ifilter_offset ;
				delete [] pcurr_alpha_work; pcurr_alpha_work = NULL;
			}
			
			
		}

		icurr_width *= 2;
		icurr_height *= 2;
		icurr_left *= 2;
		icurr_top *= 2;
		icurr_right *= 2;
		icurr_bottom *= 2;
		iref_width *= 2;
		iref_height *= 2;
		iref_left *= 2;
		iref_top *= 2;
		iref_right *= 2;
		iref_bottom *= 2;


	} // level

	pparameter -> dp1 = dTM[0];
	pparameter -> dp2 = dTM[1];
	pparameter -> dp3 = dTM[2];
	pparameter -> dp4 = dTM[3];
	pparameter -> dp5 = dTM[4];
	pparameter -> dp6 = dTM[5];
	pparameter -> dp7 = 0.0;
	pparameter -> dp8 = 0.0;
	delete [] dm; dm=NULL;
	delete [] db; db= NULL;
	delete [] dA; dA= NULL;
	delete [] dTM; dTM= NULL;
	delete [] ddedm; ddedm = NULL;
	delete [] dI1x1y1; dI1x1y1 = NULL;
	delete [] iperror_histgram; iperror_histgram = NULL;


}

Void CVideoObjectEncoder::ModifiedThreeStepSearch(PixelC *pref_work, 
												  PixelC *pcurr_work, 
												  Int icurr_width, Int icurr_height, Int iref_width, Int iref_height,
												  Int icurr_left, Int icurr_top, Int icurr_right, Int icurr_bottom,
												  Int iref_left, Int iref_top, Int iref_right, Int iref_bottom,
												  Int *ibest_locationx, Int *ibest_locationy) 
{
	
	Int xi,yj, irange, ilocationx, ilocationy, ino_of_pel=0;
	Int icurr_pel, iref_pel, iref_x, iref_y;
	Int irange_locationx=0, irange_locationy=0;
	Double dE1 = 0, dmin_error=300;
	Int icurr_offsety;
	
	icurr_offsety = icurr_width - icurr_right + icurr_left;
	
	for (irange = 4; irange >=1 ; irange/=2) {
		irange_locationx=*ibest_locationx;
		irange_locationy=*ibest_locationy;
		for (ilocationy = irange_locationy-irange; ilocationy <= irange_locationy+irange; 
		ilocationy += irange) {
			for (ilocationx = irange_locationx-irange; ilocationx <= irange_locationx+irange; 
			ilocationx += irange) {
				dE1 = 0.0;
				ino_of_pel = 0;
				icurr_pel = icurr_left + icurr_top*icurr_width;
				for (yj = icurr_top; yj< icurr_bottom ; yj++) {
					for (xi = icurr_left; xi< icurr_right ; xi++, icurr_pel++) {
						
						iref_x = ilocationx + xi;
						iref_y = ilocationy + yj;
						iref_pel = iref_y * iref_width + iref_x;
						
						if ((iref_x >=  iref_left) && (iref_x < iref_right) &&
							(iref_y >=  iref_top) && (iref_y < iref_bottom)){ 
							
							dE1 += Double(abs((Int)pcurr_work[icurr_pel] - (Int)pref_work[iref_pel]));
							ino_of_pel ++;
							
						} // limit of ref value
					} // i
					icurr_pel += icurr_offsety;
				} // j
				
				if (ino_of_pel > 0)
					dE1 = dE1 / ino_of_pel;
				else
					dE1 = dmin_error;
				if ((dE1 < dmin_error) || (dE1 == dmin_error && (abs(*ibest_locationx) + 
					abs(*ibest_locationy)) > (abs(ilocationx) + abs(ilocationy)))) {
					dmin_error = dE1;
					*ibest_locationx = ilocationx;
					*ibest_locationy = ilocationy;
				}
				
			} // locationx
		} // locationy
	} // range
	
}

Void CVideoObjectEncoder::ModifiedThreeStepSearch_WithShape(PixelC *pref_work, 
															PixelC *pcurr_work, 
															PixelC *pref_alpha_work, PixelC *pcurr_alpha_work,
															Int icurr_width, Int icurr_height, Int iref_width, Int iref_height,
															Int icurr_left, Int icurr_top, Int icurr_right, Int icurr_bottom,
															Int iref_left, Int iref_top, Int iref_right, Int iref_bottom,
															Int *ibest_locationx, Int *ibest_locationy) 
{
	
	Int xi,yj, irange, ilocationx, ilocationy, ino_of_pel=0;
	Int icurr_pel, iref_pel, iref_x, iref_y;
	Int irange_locationx=0, irange_locationy=0;
	Double dE1 = 0, dmin_error=300;
	Int icurr_offsety;
	
	icurr_offsety = icurr_width - icurr_right + icurr_left;
	
	for (irange = 4; irange >=1 ; irange/=2) {
		irange_locationx=*ibest_locationx;
		irange_locationy=*ibest_locationy;
		for (ilocationy = irange_locationy-irange; ilocationy <= irange_locationy+irange; 
		ilocationy += irange) {
			for (ilocationx = irange_locationx-irange; ilocationx <= irange_locationx+irange; 
			ilocationx += irange) {
				dE1 = 0.0;
				ino_of_pel = 0;
				icurr_pel = icurr_left + icurr_top*icurr_width;
				for (yj = icurr_top; yj< icurr_bottom ; yj++) {
					for (xi = icurr_left; xi< icurr_right ; xi++, icurr_pel++) {
						
						if (pcurr_alpha_work[icurr_pel]) {  
							
							iref_x = ilocationx + xi;
							iref_y = ilocationy + yj;
							iref_pel = iref_y * iref_width + iref_x;
							
							if ((iref_x >=  iref_left) && (iref_x < iref_right) &&
								(iref_y >=  iref_top) && (iref_y < iref_bottom) &&
								pref_alpha_work[iref_pel]) {
								
								dE1 += Double(abs((Int)pcurr_work[icurr_pel] - (Int)pref_work[iref_pel]));
								ino_of_pel ++;
								
							} // limit of ref area
						} // limit of curr_alpha value
					} // i
					icurr_pel += icurr_offsety;
				} // j
				
				if (ino_of_pel > 0)
					dE1 = dE1 / ino_of_pel;
				else
					dE1 = dmin_error;
				if ((dE1 < dmin_error) || (dE1 == dmin_error && (abs(*ibest_locationx) + 
					abs(*ibest_locationy)) > (abs(ilocationx) + abs(ilocationy)))) {
					dmin_error = dE1;
					*ibest_locationx = ilocationx;
					*ibest_locationy = ilocationy;
				}
				
			} // locationx
		} // locationy/
	} // range
	
}


Void CVideoObjectEncoder::ThreeTapFilter(PixelC *pLow, PixelC *pHight, Int iwidth,
										 Int iheight)
{
	Int xi, yj, ihwidth = iwidth/2, iwwidth = iwidth*2, iwidth2 = iwidth+2;
	PixelC *plt, *pct, *prt,
		*plc, *pcc, *prc,
		*plb, *pcb, *prb, *pp;
	
	pp=pLow; plt=pHight; pct=pHight; prt=pHight+1;
	plc=pHight; pcc=pHight; prc=pHight+1;
	plb=plc+iwidth; pcb=pcc+iwidth; prb=prc+iwidth;
	*pp = (PixelC)(((UInt)(*plt) + (((UInt)(*pct))<<1) + (UInt)(*prt) +
		(((UInt)(*plc))<<1) + (((UInt)(*pcc))<<2) + (((UInt)(*prc))<<1) +
		(UInt)(*plb) + (((UInt)(*pcb))<<1) + (UInt)(*prb) + 8) >> 4);
	
	pp=pLow+1; plt=pHight+1; pct=pHight+2; prt=pHight+3;
	plc=pHight+1; pcc=pHight+2; prc=pHight+3;
	plb=plc+iwidth; pcb=pcc+iwidth; prb=prc+iwidth;
	for(xi=1; xi<iwidth/2-1; xi++, pp++, plt+=2, pct+=2, prt+=2,
		plc+=2, pcc+=2, prc+=2,
		plb+=2, pcb+=2, prb+=2)
		*pp = (PixelC)(((UInt)(*plt) + (((UInt)(*pct))<<1) + (UInt)(*prt) +
		(((UInt)(*plc))<<1) + (((UInt)(*pcc))<<2) + (((UInt)(*prc))<<1) +
		(UInt)(*plb) + (((UInt)(*pcb))<<1) + (UInt)(*prb) + 8) >> 4);
	
	pp=pLow+ihwidth; plt=pHight+iwidth; pct=pHight+iwidth; prt=pHight+iwidth+1;
	plc=plt+iwidth; pcc=pct+iwidth; prc=prt+iwidth;
	plb=plc+iwidth; pcb=pcc+iwidth; prb=prc+iwidth;
	for(xi=1; xi<iheight/2-1; xi++, pp+=ihwidth, plt+=iwwidth, pct+=iwwidth, prt+=iwwidth,
		plc+=iwwidth, pcc+=iwwidth, prc+=iwwidth,
		plb+=iwwidth, pcb+=iwwidth, prb+=iwwidth)
		*pp = (PixelC)(((UInt)(*plt) + (((UInt)(*pct))<<1) + (UInt)(*prt) +
		(((UInt)(*plc))<<1) + (((UInt)(*pcc))<<2) + (((UInt)(*prc))<<1) +
		(UInt)(*plb) + (((UInt)(*pcb))<<1) + (UInt)(*prb) + 8) >> 4);
	
	pp=pLow+ihwidth+1; plt=pHight+1; pct=pHight+2; prt=pHight+3;
	plc=plt+iwidth; pcc=pct+iwidth; prc=prt+iwidth;
	plb=plc+iwidth; pcb=pcc+iwidth; prb=prc+iwidth;
	for(yj=1; yj<iheight/2-2; yj++, pp++, plt+=iwidth2, pct+=iwidth2, prt+=iwidth2,
		plc+=iwidth2, pcc+=iwidth2, prc+=iwidth2,
		plb+=iwidth2, pcb+=iwidth2, prb+=iwidth2)
		for(xi=1; xi<ihwidth; xi++, pp++, plt+=2, pct+=2, prt+=2,
			plc+=2, pcc+=2, prc+=2,
			plb+=2, pcb+=2, prb+=2)
		{
			*pp = (PixelC)(((UInt)(*plt) + (((UInt)(*pct))<<1) + (UInt)(*prt) +
				(((UInt)(*plc))<<1) + (((UInt)(*pcc))<<2) + (((UInt)(*prc))<<1) +
				(UInt)(*plb) + (((UInt)(*pcb))<<1) + (UInt)(*prb) + 8) >> 4);
		}
		
}


Int CVideoObjectEncoder::DeltaMP(Double *dA, Int in, Double *db, Double *dm)
{
	int xi, yj, xi2, in2=in*2, ik, i_pivot;
	Double *dAi = new Double [in * in * 2];
	Double dpivot, dtmp;
	
	dpivot = *dA;
	for(yj = 0; yj < in; yj++)
		for(xi = 0; xi < in; xi++)
			if(fabs(*(dA + yj * in + xi)) > fabs(dpivot))
				dpivot = *(dA + yj * in + xi);
			
	if(fabs(dpivot) < 0.000000001) {
		delete [] dAi; dAi= NULL;
		return(0);
	}
	dpivot = 1.0 / dpivot; 
	
	for(yj = 0; yj < in; yj++)
		for(xi = 0, xi2 = in; xi < in; xi++, xi2++){
			*(dAi + yj * in2 + xi) = (*(dA + yj * in + xi))*dpivot;
			if(xi == yj)
				*(dAi + yj * in2 + xi2) = dpivot;
			else
				*(dAi + yj * in2 + xi2) = 0.0;
		}
		
	for(xi = 0; xi < in; xi++) {
		
		i_pivot = xi;
		dpivot = *(dAi + xi * in2 + xi);
		for(yj = xi; yj < in; yj++)
			if(fabs(*(dAi + yj * in2 + xi)) > fabs(dpivot))
			{
				i_pivot = yj;
				dpivot = *(dAi + yj * in2 + xi);
			}
			if(fabs(dpivot) < 0.000000001) {
				delete [] dAi; dAi = NULL;
				return(0);
			}
			if(i_pivot!=xi)
				for(ik = 0; ik < in2; ik++) {
					dtmp = *(dAi + xi * in2 + ik);
					*(dAi + xi * in2 + ik) = *(dAi + i_pivot * in2 + ik);
					*(dAi + i_pivot * in2 + ik) = dtmp;
				}
				
				for(yj = 0; yj < in; yj++) {
					if(yj != xi)
					{
						dpivot = *(dAi + yj * in2 + xi) / *(dAi + xi * in2 + xi);
						for(ik = xi+1; ik < in2; ik++)
							*(dAi + yj * in2 + ik) -=
							dpivot*(*(dAi + xi * in2 + ik));
					}
				}
				
	}
	
	for(yj = 0; yj < in; yj++)
		for(xi = 0, xi2 = in; xi < in; xi++, xi2++)
			*(dAi + yj * in2 + xi2) /= *(dAi + yj * in2 + yj);
		
	for(xi = 0; xi < in; xi++)
		*(dm + xi) = 0.0;
	
	for(yj = 0; yj < in; yj++)
		for(xi = 0, xi2 = in; xi < in; xi++, xi2++)
			*(dm + yj) += (*(dAi + yj * in2 +xi2))*(*(db + xi));
		
	delete [] dAi; dAi = NULL;
	return(1);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲自拍偷拍图区| 国产999精品久久| 日韩码欧中文字| 久久久久久久久久久久久女国产乱| 欧美日韩一区在线| 欧美性猛片xxxx免费看久爱| 91色porny| 日本高清成人免费播放| 91丨九色丨国产丨porny| 97精品久久久午夜一区二区三区| 国产.欧美.日韩| 高清成人免费视频| 成人精品小蝌蚪| 一本一道波多野结衣一区二区| 色婷婷综合激情| 日韩一级大片在线| 国产欧美一区二区精品忘忧草 | 欧美狂野另类xxxxoooo| 欧美男人的天堂一二区| 91精品国产欧美一区二区成人 | 成人av在线资源网| 日本国产一区二区| 欧美一区二区精品在线| 国产亚洲精品7777| 亚洲观看高清完整版在线观看 | 精品视频999| 国产精品久久久久久久久果冻传媒| 26uuu精品一区二区在线观看| 91麻豆精品国产91久久久久| 91猫先生在线| 精品综合免费视频观看| 国产清纯美女被跳蛋高潮一区二区久久w | 91蜜桃免费观看视频| 成人午夜在线播放| 国产aⅴ综合色| 成人亚洲一区二区一| 成人理论电影网| 不卡欧美aaaaa| 91丨九色porny丨蝌蚪| 色综合久久九月婷婷色综合| 成人三级在线视频| 日韩精品免费专区| 蜜臀a∨国产成人精品| 国内精品免费**视频| 国产一区二区成人久久免费影院| 国产成人鲁色资源国产91色综 | 国产一区二区三区精品欧美日韩一区二区三区 | 99精品热视频| 欧美在线视频全部完| 欧美高清在线精品一区| 亚洲男人电影天堂| 丝袜亚洲另类丝袜在线| 综合色中文字幕| 日韩av网站在线观看| 国产一区二区三区电影在线观看| 在线观看三级视频欧美| 欧美tickling网站挠脚心| 国产精品丝袜黑色高跟| 亚洲国产欧美日韩另类综合| 久久精品72免费观看| 成人激情黄色小说| 欧美日韩久久久一区| 久久久久久免费| 亚洲自拍偷拍九九九| 看片网站欧美日韩| 国产成人在线电影| 欧美日韩国产综合视频在线观看 | 韩国三级在线一区| 色综合欧美在线| 欧美高清视频不卡网| 国产精品视频第一区| 午夜精品久久久久久久久久久| 国产在线一区二区综合免费视频| 91网站在线播放| 久久久久久久久久久黄色| 欧美日韩精品免费| 国产精品久久免费看| 日韩福利视频网| 91免费在线看| 精品欧美久久久| 亚洲一区二区三区中文字幕| 国产永久精品大片wwwapp| 欧美日韩国产电影| 久久久精品欧美丰满| 一区二区欧美国产| 丰满少妇在线播放bd日韩电影| 欧美日韩国产片| 亚洲婷婷综合久久一本伊一区| 国产一区二区免费在线| 日韩欧美国产电影| 亚洲成人自拍偷拍| 色噜噜偷拍精品综合在线| 久久人人爽人人爽| 蜜桃精品视频在线| 欧美年轻男男videosbes| 亚洲欧美区自拍先锋| 久久蜜桃av一区二区天堂| 成人国产在线观看| 中文字幕精品一区二区精品绿巨人 | 国产精品第13页| 一本色道久久加勒比精品| 国产精品麻豆久久久| 麻豆一区二区在线| 亚洲国产高清在线观看视频| 国产精品1024| 亚洲制服丝袜一区| 欧美电影在哪看比较好| 午夜久久久久久久久| 欧美精品一卡二卡| 日韩电影一区二区三区| 91精品久久久久久久91蜜桃| 日韩电影免费在线看| 日韩一区二区视频在线观看| 久久国产生活片100| 精品sm捆绑视频| 经典一区二区三区| 久久久久久久久免费| 精品一区二区免费视频| 日韩欧美一区二区三区在线| 日韩精品每日更新| 日韩精品在线一区| 国产成人一区在线| 国产精品国产三级国产a| 国产高清久久久久| 欧美在线小视频| 26uuu精品一区二区| 国产夫妻精品视频| 国产人成一区二区三区影院| 国产精品美女久久久久av爽李琼| 亚洲伊人伊色伊影伊综合网| 日韩情涩欧美日韩视频| 日本aⅴ亚洲精品中文乱码| 欧美酷刑日本凌虐凌虐| 国内精品国产成人国产三级粉色| 国产成人综合网| 国产精品五月天| 成人免费视频网站在线观看| 一区二区免费看| 久久看人人爽人人| 色狠狠色噜噜噜综合网| 国产成人一级电影| 亚洲国产aⅴ成人精品无吗| 精品国产乱子伦一区| 色婷婷一区二区三区四区| 亚洲一区中文日韩| 欧美日韩亚洲不卡| 国产一区二区精品久久91| 樱花草国产18久久久久| 精品国产亚洲在线| 欧美三级韩国三级日本一级| 国产成人午夜高潮毛片| 午夜久久电影网| 日本欧美肥老太交大片| 亚洲伦理在线精品| 久久精品一区二区三区四区| 久久精品亚洲麻豆av一区二区| 在线观看亚洲精品| 午夜亚洲国产au精品一区二区| 亚洲一本大道在线| 国产清纯在线一区二区www| 久久麻豆一区二区| 日韩精品专区在线| 666欧美在线视频| 欧美成人猛片aaaaaaa| 欧美伊人久久大香线蕉综合69| 久久er99精品| 国产成人av电影在线| 精一区二区三区| 亚洲天堂2016| 中文字幕一区二区三区四区不卡 | 精油按摩中文字幕久久| 久久精品免费在线观看| 欧美大片一区二区| 成人国产精品免费观看动漫| 狠狠色综合播放一区二区| 国产精品久久毛片a| 91一区二区在线观看| 国内一区二区视频| 久久国产精品露脸对白| 麻豆成人综合网| 日韩影院精彩在线| 轻轻草成人在线| 日韩国产精品91| 日本欧美一区二区在线观看| 日韩中文字幕一区二区三区| 亚洲成a人片在线不卡一二三区| 亚洲免费观看高清完整版在线| 久久先锋影音av| 日韩精品一区二区三区中文不卡| 337p亚洲精品色噜噜噜| 欧美一区2区视频在线观看| 日韩一区二区三区免费看 | 国产精品77777竹菊影视小说| 美女视频免费一区| 日韩精品亚洲一区| 日韩一卡二卡三卡四卡| 欧美精品一区二区三区蜜桃视频 | 日韩精品一区第一页| 麻豆91精品视频| 国产一区二区视频在线|