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

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

?? mem_transfer.c

?? 用MPEG-4對YUV視頻文件編碼壓縮成divx視頻文件
?? C
?? 第 1 頁 / 共 3 頁
字號:
	else if(temp==2)
	{
		for(j =0; j < 8; j++)
		{
		
			/*get three word*/
			src0 = *(ptr_ref++);
			src1 = *(ptr_ref++);
			src2 = *(ptr_ref--);	
			/*make up two word*/
			ref0 = FUNSHIFT2(src1,src0);
			ref1 = FUNSHIFT2(src2,src1);
			ref16_0 = MERGELSB(0,ref0);
			ref16_1 = MERGEMSB(0,ref0);
			ref16_2 = MERGELSB(0,ref1);
			ref16_3 = MERGEMSB(0,ref1);
			cur0 = *(ptr_cur++);
			cur1 = *(ptr_cur--);
			cur16_0 = MERGELSB(0,cur0);
			cur16_1 = MERGEMSB(0,cur0);
			cur16_2 = MERGELSB(0,cur1);
			cur16_3 = MERGEMSB(0,cur1);
			*(ptr_cur++ ) = ref0;
			*(ptr_cur)= ref1;
			*(ptr_dct++)  = DSPIDUALSUB(cur16_0,ref16_0);
			*(ptr_dct++)  = DSPIDUALSUB(cur16_1,ref16_1);
			*(ptr_dct++)  = DSPIDUALSUB(cur16_2,ref16_2);
			*(ptr_dct++)  = DSPIDUALSUB(cur16_3,ref16_3);
			ptr_ref += cur_ref_stride;
			ptr_cur += cur_ref_stride;
			/*ptr_dct += 4;*/
			
			

		}
	}
	else if(temp==3)
	{
		for(j =0; j < 8; j++)
		{
		
			/*get three word*/
			src0 = *(ptr_ref++);
			src1 = *(ptr_ref++);
			src2 = *(ptr_ref--);	
			/*make up two word*/
			ref0 = FUNSHIFT1(src1,src0);
			ref1 = FUNSHIFT1(src2,src1);
			ref16_0 = MERGELSB(0,ref0);
			ref16_1 = MERGEMSB(0,ref0);
			ref16_2 = MERGELSB(0,ref1);
			ref16_3 = MERGEMSB(0,ref1);
			cur0 = *(ptr_cur++);
			cur1 = *(ptr_cur--);
			cur16_0 = MERGELSB(0,cur0);
			cur16_1 = MERGEMSB(0,cur0);
			cur16_2 = MERGELSB(0,cur1);
			cur16_3 = MERGEMSB(0,cur1);
			*(ptr_cur++) = ref0;
			*(ptr_cur  ) = ref1;
			*(ptr_dct++)  = DSPIDUALSUB(cur16_0,ref16_0);
			*(ptr_dct++)  = DSPIDUALSUB(cur16_1,ref16_1);
			*(ptr_dct++)  = DSPIDUALSUB(cur16_2,ref16_2);
			*(ptr_dct++)  = DSPIDUALSUB(cur16_3,ref16_3);
			ptr_ref += cur_ref_stride;
			ptr_cur += cur_ref_stride;
			/*ptr_dct += 4;*/
			
			

		}
	}

}
#endif 
#ifdef  optimize_8to16sub_1
void
transfer_8to16sub_c(int16_t * const dct,		/*<--> the dct coefficient buffer*/
					uint8_t * const cur,		/*<-->in:the current buffer/out:save the ref*/	
					const uint8_t * ref,		/*<-- the reference buffer*/
					const uint32_t stride		/*<-- the dct coefficient buffer*/
					)
{
	uint32_t i, j;
	uint8_t c0,c1,c2,c3,c4,c5,c6,c7;
	uint8_t r0,r1,r2,r3,r4,r5,r6,r7;
	
	uint32_t cur_ref_stride,dct_stride;
	cur_ref_stride = 0;
	dct_stride = 0;
	

	for (j = 0; j < 8; j++) {
		/*for (i = 0; i < 8; i++) {*/
			c0 = cur[cur_ref_stride + 0];
			c1 = cur[cur_ref_stride + 1];
			c2 = cur[cur_ref_stride + 2];
			c3 = cur[cur_ref_stride + 3];
			c4 = cur[cur_ref_stride + 4];
			c5 = cur[cur_ref_stride + 5];
			c6 = cur[cur_ref_stride + 6];
			c7 = cur[cur_ref_stride + 7];
			r0 = ref[cur_ref_stride + 0];
			r1 = ref[cur_ref_stride + 1];
			r2 = ref[cur_ref_stride + 2];
			r3 = ref[cur_ref_stride + 3];
			r4 = ref[cur_ref_stride + 4];
			r5 = ref[cur_ref_stride + 5];
			r6 = ref[cur_ref_stride + 6];
			r7 = ref[cur_ref_stride + 7];
			cur[cur_ref_stride + 0] = r0;
			cur[cur_ref_stride + 1] = r1;
			cur[cur_ref_stride + 2] = r2;
			cur[cur_ref_stride + 3] = r3;
			cur[cur_ref_stride + 4] = r4;
			cur[cur_ref_stride + 5] = r5;
			cur[cur_ref_stride + 6] = r6;
			cur[cur_ref_stride + 7] = r7;
			dct[dct_stride+ 0] = (int16_t) c0 - (int16_t) r0;
			dct[dct_stride+ 1] = (int16_t) c1 - (int16_t) r1;
			dct[dct_stride+ 2] = (int16_t) c2 - (int16_t) r2;
			dct[dct_stride+ 3] = (int16_t) c3 - (int16_t) r3;
			dct[dct_stride+ 4] = (int16_t) c4 - (int16_t) r4;
			dct[dct_stride+ 5] = (int16_t) c5 - (int16_t) r5;
			dct[dct_stride+ 6] = (int16_t) c6 - (int16_t) r6;
			dct[dct_stride+ 7] = (int16_t) c7 - (int16_t) r7;
			cur_ref_stride += stride;
			dct_stride += 8; 
			
		/*}*/
	}
}
#endif 


/*!
 ************************************************************************   
 * \brief
 *    the function does the 16->8 bit transfer and this serie of operations 
 *    SRC (16bit) = SRC
 *    DST (8bit)  = max(min(DST+SRC, 255), 0)
 ************************************************************************
 */
#ifdef _TRIMEDIA
#define  optimize_16to8add_2 
#endif
         
#ifndef _TRIMEDIA
void
transfer_16to8add_c(uint8_t * const dst,		/*<--> the destination buffer*/
					const int16_t * const src,	/*<--  the source buffer*/
					uint32_t stride				/*<--  stride*/
					)
{
	uint32_t i, j;
	int16_t pixel;

	for (j = 0; j < 8; j++) {
		for (i = 0; i < 8; i++) {
			pixel = (int16_t) dst[j * stride + i] + src[j * 8 + i];
			if (pixel < 0) {
				pixel = 0;
			} else if (pixel > 255) {
				pixel = 255;
			}
			dst[j * stride + i] = (uint8_t) pixel;
		}
	}
}
#endif

#ifdef  optimize_16to8add_2
void
transfer_16to8add_c(uint8_t * const dst,		/*<--> the destination buffer*/
					const int16_t * const src,	/*<--  the source buffer*/
					uint32_t stride				/*<--  stride*/
					)
{
	
	uint32_t i, j;
/*	
	uint32_t  * restrict ptr_dst = (uint32_t  *)dst;
	const uint32_t * restrict ptr_src = (uint32_t *)src;
*/
	uint32_t  * ptr_dst = (uint32_t  *)dst;
	const uint32_t * ptr_src = (uint32_t *)src;

	uint32_t src0,src1,src2,src3;
	uint32_t dst0,dst1;
	uint32_t dst16_0,dst16_1,dst16_2,dst16_3;
	int32_t pixel0,pixel1,pixel2,pixel3;
	uint32_t u_pixel0,u_pixel1,u_pixel2,u_pixel3;
	uint32_t dst32_0,dst32_1,dst32_2,dst32_3;
	uint32_t temp0,temp1;
	uint32_t stride1;
	int16_t pixel;
	stride1 = (stride>>2)-1;

	for (j = 0; j < 8; j++) {
			dst0 = *(ptr_dst++);
			dst1 = *(ptr_dst--);
			dst16_0 = MERGELSB(0,dst0);
			dst16_1 = MERGEMSB(0,dst0);
			dst16_2 = MERGELSB(0,dst1);
			dst16_3 = MERGEMSB(0,dst1);
			src0 = *(ptr_src++);
			src1 = *(ptr_src++);
			src2 = *(ptr_src++);
			src3 = *(ptr_src++);
			pixel0 = DSPIDUALADD(dst16_0,src0);
			pixel1 = DSPIDUALADD(dst16_1,src1);
			pixel2 = DSPIDUALADD(dst16_2,src2);
			pixel3 = DSPIDUALADD(dst16_3,src3);
			u_pixel0 = DUALUCLIPI(pixel0,255);
			u_pixel1 = DUALUCLIPI(pixel1,255); 
			u_pixel2 = DUALUCLIPI(pixel2,255); 
			u_pixel3 = DUALUCLIPI(pixel3,255); 
			dst32_0 = PACK16LSB(u_pixel1,u_pixel0);
			dst32_1 = PACK16MSB(u_pixel1,u_pixel0);
			temp0   = FUNSHIFT1 (dst32_1,0);
			*(ptr_dst++) = dst32_0 + temp0;
			dst32_2 = PACK16LSB(u_pixel3,u_pixel2);
			dst32_3 = PACK16MSB(u_pixel3,u_pixel2);
			temp1   = FUNSHIFT1 (dst32_3,0);
			*(ptr_dst)   = dst32_2 + temp1;	
			ptr_dst += stride1;		
			
	}
}
#endif
/*unroll the inner loop */

#ifdef  optimize_16to8add_1
void
transfer_16to8add_c(uint8_t * const dst,		/*<--> the destination buffer*/
					const int16_t * const src,	/*<--  the source buffer*/
					uint32_t stride				/*<--  stride*/
					)
{
	uint32_t i, j;
	int16_t pixel0,pixel1,pixel2,pixel3,pixel4,pixel5,pixel6,pixel7;
	uint16_t upixel0,upixel1,upixel2,upixel3,upixel4,upixel5,upixel6,upixel7;

	uint32_t dst_stride,src_stride;
	dst_stride = 0;
	src_stride =0;

	for (j = 0; j < 8; j++) {
		
		
		
		
		/*for (i = 0; i < 8; i++) {*/
			pixel0 = (int16_t) dst[dst_stride + 0] + src[src_stride + 0];
			pixel1 = (int16_t) dst[dst_stride + 1] + src[src_stride + 1];
			pixel2 = (int16_t) dst[dst_stride + 2] + src[src_stride + 2];
			pixel3 = (int16_t) dst[dst_stride + 3] + src[src_stride + 3];
			pixel4 = (int16_t) dst[dst_stride + 4] + src[src_stride + 4];
			pixel5 = (int16_t) dst[dst_stride + 5] + src[src_stride + 5];
			pixel6 = (int16_t) dst[dst_stride + 6] + src[src_stride + 6];
			pixel7 = (int16_t) dst[dst_stride + 7] + src[src_stride + 7];
			upixel0 = UCLIPI(pixel0,255);
			upixel1 = UCLIPI(pixel1,255);
			upixel2 = UCLIPI(pixel2,255);
			upixel3 = UCLIPI(pixel3,255);
			upixel4 = UCLIPI(pixel4,255);
			upixel5 = UCLIPI(pixel5,255);
			upixel6 = UCLIPI(pixel6,255);
			upixel7 = UCLIPI(pixel7,255);
			dst[dst_stride + 0]= (uint8_t)upixel0;
			dst[dst_stride + 1]= (uint8_t)upixel1;
			dst[dst_stride + 2]= (uint8_t)upixel2;
			dst[dst_stride + 3]= (uint8_t)upixel3;
			dst[dst_stride + 4]= (uint8_t)upixel4;
			dst[dst_stride + 5]= (uint8_t)upixel5;
			dst[dst_stride + 6]= (uint8_t)upixel6;
			dst[dst_stride + 7]= (uint8_t)upixel7;
			dst_stride += stride;
			src_stride += 8;
			
			

		/*	if (pixel < 0) {
				pixel = 0;
			} else if (pixel > 255) {
				pixel = 255;
			}
			dst[j * stride + i] = (uint8_t) pixel;
		}*/
	}
}
#endif
/*!
 ************************************************************************   
 * \brief
 *    Then the function does the 8->8 bit transfer and this serie of operations 
 *    SRC (8bit) = SRC
 *    DST (8bit) = SRC
 ************************************************************************
 */

/*#ifdef _TRIMEDIA*/
void
transfer8x8_copy_c(uint8_t * const dst,			/*<--> the destination buffer*/
				   const uint8_t * const src,	/*<--  the source buffer*/
				   const uint32_t stride		/*<--  stride*/
				   )
{
	uint32_t i, j;
	

	for (j = 0; j < 8; j++) {
		for (i = 0; i < 8; i++) {
		dst[j * stride + i] = src[j * stride + i];
		}                                            
	}
}
/*#endif*/
/*#define optimize_8x8_copy_1*/
#ifdef  optimize_8x8_copy_1

void
transfer8x8_copy_c(uint8_t * const dst,			/*<--> the destination buffer*/
				   const uint8_t * const src,	/*<--  the source buffer*/
				   const uint32_t stride		/*<--  stride*/
				   )
{
	uint32_t i, j;
	uint8_t const *ptr_src = src;  /*src value don't change */
	uint8_t       *ptr_dst = dst;      /*dst value change */
	uint32_t  stride1 = stride - 8;
	
	#pragma TCS_unroll=2
	for (j = 0; j < 8; j++) {
		
		*ptr_dst++ = *ptr_src++;
		*ptr_dst++ = *ptr_src++;
		*ptr_dst++ = *ptr_src++;
		*ptr_dst++ = *ptr_src++;
		*ptr_dst++ = *ptr_src++;
		*ptr_dst++ = *ptr_src++;
		*ptr_dst++ = *ptr_src++;
		*ptr_dst++ = *ptr_src++;	
		ptr_dst += stride1;
		ptr_src += stride1;
		                               
	}
}
#endif
#ifdef  optimize_8x8_copy_2

void
transfer8x8_copy_c(uint8_t * const dst,			/*<--> the destination buffer*/
				   const uint8_t * const src,	/*<--  the source buffer*/
				   const uint32_t stride		/*<--  stride*/
				   )
{
	uint32_t i, j;
	uint8_t const *ptr_src = src;  /*src value don't change */
	uint8_t       *ptr_dst = dst;      /*dst value change */
	
	
	#pragma TCS_unroll=2
	for (j = 0; j < 8; j++) {
		
		*(ptr_dst+0) = *(ptr_src+0);
		*(ptr_dst+1) = *(ptr_src+1);
		*(ptr_dst+2) = *(ptr_src+2);
		*(ptr_dst+3) = *(ptr_src+3);
		*(ptr_dst+4) = *(ptr_src+4);
		*(ptr_dst+5) = *(ptr_src+5);
		*(ptr_dst+6) = *(ptr_src+6);
		*(ptr_dst+7) = *(ptr_src+7);	
		ptr_dst += stride;
		ptr_src += stride;
		                               
	}
}
#endif
/*method 3,to make up word ,later to do */


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区视频免费观看| 激情文学综合网| 欧美成人伊人久久综合网| 久久精品国产亚洲a| 日本一区二区三区四区| 在线观看视频欧美| 麻豆91免费看| 免费观看在线综合色| 欧美mv和日韩mv的网站| 欧洲另类一二三四区| 另类小说色综合网站| 日韩精品专区在线影院重磅| 成人丝袜视频网| 久久成人av少妇免费| 久久超碰97人人做人人爱| 国产宾馆实践打屁股91| 国产成人一级电影| 久久99热这里只有精品| 黄色日韩三级电影| 另类小说视频一区二区| 国内精品久久久久影院色| 麻豆精品视频在线观看免费| 麻豆免费看一区二区三区| 国产精品99久久久久久久vr| 亚洲天堂av一区| 久久伊人蜜桃av一区二区| 91老司机福利 在线| 夜夜爽夜夜爽精品视频| 国产亚洲精品7777| 日韩一区二区不卡| 在线观看亚洲a| 欧美丰满美乳xxx高潮www| 久久午夜国产精品| 成人妖精视频yjsp地址| 337p日本欧洲亚洲大胆色噜噜| 久久久影视传媒| 久久午夜色播影院免费高清| 欧美www视频| 久久综合999| 精品福利二区三区| 久久久91精品国产一区二区精品 | 99国产麻豆精品| eeuss鲁片一区二区三区| kk眼镜猥琐国模调教系列一区二区| 成人免费视频国产在线观看| 成人福利在线看| 99久久精品国产毛片| 成人高清免费在线播放| 日本高清不卡视频| 51精品秘密在线观看| 日韩精品一区国产麻豆| 久久久久国产精品麻豆ai换脸 | 中文字幕制服丝袜一区二区三区 | 亚洲三级在线免费观看| 亚洲国产成人高清精品| 美女视频一区二区三区| 国产精品一区二区久久精品爱涩| av在线不卡免费看| 国产98色在线|日韩| 91丝袜美女网| 欧美军同video69gay| 精品国产自在久精品国产| 中文在线一区二区| 亚洲影视资源网| 日韩av不卡在线观看| 精品一区二区三区免费播放| 国产在线精品免费| 色综合天天在线| 91精品国产福利| 国产精品丝袜久久久久久app| 亚洲午夜精品一区二区三区他趣| 精品国产电影一区二区| 国产免费久久精品| 五月婷婷欧美视频| 99在线精品视频| 欧美一区二区二区| 99re这里只有精品视频首页| 午夜精品免费在线观看| 免费观看在线综合| 欧美日韩精品欧美日韩精品一| 精品国产一区二区三区久久影院| 亚洲少妇最新在线视频| 午夜精彩视频在线观看不卡| 成人在线一区二区三区| 91精品国产黑色紧身裤美女| 国产精品电影院| 精品写真视频在线观看| 国产日本欧洲亚洲| 国产乱理伦片在线观看夜一区| 在线观看中文字幕不卡| 亚洲少妇最新在线视频| 午夜国产精品影院在线观看| 大白屁股一区二区视频| 亚洲精品在线观| 国产精品99久久久久久宅男| 丝袜亚洲另类欧美| 亚洲色图清纯唯美| 6080国产精品一区二区| 亚洲综合免费观看高清在线观看| 狠狠网亚洲精品| 日韩一级精品视频在线观看| 自拍偷拍亚洲欧美日韩| 成人午夜看片网址| 欧美v国产在线一区二区三区| 免费在线观看日韩欧美| 91成人免费电影| 久久亚洲精品国产精品紫薇 | 国产白丝精品91爽爽久久| 精品国产一二三| 激情综合网激情| 精品国产伦一区二区三区观看方式| 国产成人精品免费一区二区| 2023国产精品| 成人福利视频在线| 免费精品视频在线| 久久精品国产99| 国产呦精品一区二区三区网站| 韩国v欧美v亚洲v日本v| 欧美精品一二三区| 日韩在线卡一卡二| 欧美三区免费完整视频在线观看| 亚洲国产精品久久久久婷婷884| 91在线精品一区二区| 欧美日高清视频| 亚洲国产一区二区视频| 日本韩国欧美在线| 亚洲一区国产视频| 色8久久精品久久久久久蜜| 亚洲欧美日韩成人高清在线一区| 成人h动漫精品一区二| 成人欧美一区二区三区| 99久久99久久精品免费观看 | 丁香六月久久综合狠狠色| 国产女人18水真多18精品一级做| 国产精品18久久久久久久久久久久| 国产精品久久久久久久久果冻传媒| 国产精品一级在线| 亚洲精品老司机| 色狠狠色狠狠综合| 男男gaygay亚洲| 久久久久久亚洲综合| 国产精品一区二区男女羞羞无遮挡 | 欧美放荡的少妇| 日韩va亚洲va欧美va久久| 久久综合九色综合欧美98| 国产黑丝在线一区二区三区| 国产精品二三区| 欧美午夜电影网| 午夜精品福利一区二区三区av| 欧美一区二区女人| 亚洲国产中文字幕在线视频综合 | 日韩午夜电影av| 一区二区成人在线| 精品国产一区二区亚洲人成毛片| 国产乱码精品一区二区三| 一区二区三区中文字幕| 在线不卡a资源高清| 国产成人av网站| 亚洲美女电影在线| 欧美精品一区二区三区一线天视频 | 欧美本精品男人aⅴ天堂| 国产成人在线网站| 国精产品一区一区三区mba桃花| 午夜久久福利影院| 精品福利一区二区三区 | 亚洲综合一区二区三区| 亚洲色图欧美激情| 亚洲成人av福利| 精品粉嫩超白一线天av| 日韩一级完整毛片| 欧美mv日韩mv亚洲| 欧美国产成人在线| 亚洲制服丝袜在线| 蜜臀99久久精品久久久久久软件| 奇米色777欧美一区二区| 韩国成人福利片在线播放| 国产精品系列在线播放| 午夜影院在线观看欧美| 日韩激情一二三区| 国产乱子伦视频一区二区三区| 成人国产精品免费观看| 欧美亚洲动漫另类| 亚洲国产精品综合小说图片区| 午夜国产不卡在线观看视频| 亚洲午夜久久久久中文字幕久| 中文字幕在线免费不卡| 久久久久青草大香线综合精品| 国产欧美日韩在线观看| 国产精品久久久久精k8| 亚洲h精品动漫在线观看| 国产精品久久久久久久久久久免费看| 国产亚洲1区2区3区| 午夜欧美在线一二页| 成a人片亚洲日本久久| 日韩欧美一级二级三级久久久| 国产清纯白嫩初高生在线观看91 | 日韩主播视频在线| 波多野洁衣一区| 精品乱人伦小说| 国产·精品毛片|