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

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

?? reduced.c

?? mpeg4 video codec mpeg4 video codec
?? C
字號:
/***************************************************************************** * *  XVID MPEG-4 VIDEO CODEC *   Reduced-Resolution utilities * *  Copyright(C) 2002 Pascal Massimino <skal@planet-d.net> * *  XviD is free software; you can redistribute it and/or modify it *  under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA * * $Id: reduced.c,v 1.1 2006/02/23 15:13:27 kevin-fu Exp $ * ****************************************************************************/#include "../portab.h"#include "../global.h"#include "reduced.h"/* function pointers */COPY_UPSAMPLED_8X8_16TO8 * copy_upsampled_8x8_16to8;ADD_UPSAMPLED_8X8_16TO8 * add_upsampled_8x8_16to8;VFILTER_31 * vfilter_31;HFILTER_31 * hfilter_31;FILTER_18X18_TO_8X8 * filter_18x18_to_8x8;FILTER_DIFF_18X18_TO_8X8 * filter_diff_18x18_to_8x8;/*---------------------------------------------------------------------------- * Upsampling (1/3/3/1) filter *--------------------------------------------------------------------------*/#define ADD(dst,src)  (dst) = CLIP((dst)+(src), 0, 255)static __inline void Filter_31(uint8_t *Dst1, uint8_t *Dst2,                             const int16_t *Src1, const int16_t *Src2){    /* Src[] is assumed to be >=0. So we can use ">>2" instead of "/2" */  int16_t a = (3*Src1[0]+  Src2[0]+2) >> 2;  int16_t b = (  Src1[0]+3*Src2[0]+2) >> 2;  Dst1[0] = CLIP(a, 0, 255);  Dst2[0] = CLIP(b, 0, 255);}static __inline void Filter_9331(uint8_t *Dst1, uint8_t *Dst2,                               const int16_t *Src1, const int16_t *Src2){    /* Src[] is assumed to be >=0. So we can use ">>4" instead of "/16" */  int16_t a = (9*Src1[0]+  3*Src1[1]+ 3*Src2[0] + 1*Src2[1] + 8) >> 4;  int16_t b = (3*Src1[0]+  9*Src1[1]+ 1*Src2[0] + 3*Src2[1] + 8) >> 4;  int16_t c = (3*Src1[0]+  1*Src1[1]+ 9*Src2[0] + 3*Src2[1] + 8) >> 4;  int16_t d = (1*Src1[0]+  3*Src1[1]+ 3*Src2[0] + 9*Src2[1] + 8) >> 4;  Dst1[0] = CLIP(a, 0, 255);  Dst1[1] = CLIP(b, 0, 255);  Dst2[0] = CLIP(c, 0, 255);  Dst2[1] = CLIP(d, 0, 255);}void xvid_Copy_Upsampled_8x8_16To8_C(uint8_t *Dst, const int16_t *Src, const int BpS){  int x, y;  Dst[0] = CLIP(Src[0], 0, 255);  for(x=0; x<7; ++x) Filter_31(Dst+2*x+1, Dst+2*x+2, Src+x, Src+x+1);  Dst[15] = CLIP(Src[7], 0, 255);  Dst += BpS;  for(y=0; y<7; ++y) {    uint8_t *const Dst2 = Dst + BpS;    Filter_31(Dst, Dst2, Src, Src+8);    for(x=0; x<7; ++x)      Filter_9331(Dst+2*x+1, Dst2+2*x+1, Src+x, Src+x+8);    Filter_31(Dst+15, Dst2+15, Src+7, Src+7+8);    Src += 8;    Dst += 2*BpS;  }  Dst[0] = CLIP(Src[0], 0, 255);  for(x=0; x<7; ++x) Filter_31(Dst+2*x+1, Dst+2*x+2, Src+x, Src+x+1);  Dst[15] = CLIP(Src[7], 0, 255);}static __inline void Filter_Add_31(uint8_t *Dst1, uint8_t *Dst2,                             const int16_t *Src1, const int16_t *Src2){    /* Here, we must use "/4", since Src[] is in [-256, 255] */  int16_t a = (3*Src1[0]+  Src2[0] + 2) / 4;  int16_t b = (  Src1[0]+3*Src2[0] + 2) / 4;  ADD(Dst1[0], a);  ADD(Dst2[0], b);}static __inline void Filter_Add_9331(uint8_t *Dst1, uint8_t *Dst2,                                   const int16_t *Src1, const int16_t *Src2){  int16_t a = (9*Src1[0]+  3*Src1[1]+ 3*Src2[0] + 1*Src2[1] + 8) / 16;  int16_t b = (3*Src1[0]+  9*Src1[1]+ 1*Src2[0] + 3*Src2[1] + 8) / 16;  int16_t c = (3*Src1[0]+  1*Src1[1]+ 9*Src2[0] + 3*Src2[1] + 8) / 16;  int16_t d = (1*Src1[0]+  3*Src1[1]+ 3*Src2[0] + 9*Src2[1] + 8) / 16;  ADD(Dst1[0], a);  ADD(Dst1[1], b);  ADD(Dst2[0], c);  ADD(Dst2[1], d);}void xvid_Add_Upsampled_8x8_16To8_C(uint8_t *Dst, const int16_t *Src, const int BpS){  int x, y;  ADD(Dst[0], Src[0]);  for(x=0; x<7; ++x) Filter_Add_31(Dst+2*x+1, Dst+2*x+2, Src+x, Src+x+1);  ADD(Dst[15], Src[7]);  Dst += BpS;  for(y=0; y<7; ++y) {    uint8_t *const Dst2 = Dst + BpS;    Filter_Add_31(Dst, Dst2, Src, Src+8);    for(x=0; x<7; ++x)      Filter_Add_9331(Dst+2*x+1, Dst2+2*x+1, Src+x, Src+x+8);    Filter_Add_31(Dst+15, Dst2+15, Src+7, Src+7+8);    Src += 8;    Dst += 2*BpS;  }  ADD(Dst[0], Src[0]);  for(x=0; x<7; ++x) Filter_Add_31(Dst+2*x+1, Dst+2*x+2, Src+x, Src+x+1);  ADD(Dst[15], Src[7]);}#undef ADD/*---------------------------------------------------------------------------- * horizontal and vertical deblocking *--------------------------------------------------------------------------*/void xvid_HFilter_31_C(uint8_t *Src1, uint8_t *Src2, int Nb_Blks){  Nb_Blks *= 8;  while(Nb_Blks-->0) {    uint8_t a = ( 3*Src1[0] + 1*Src2[0] + 2 ) >> 2;    uint8_t b = ( 1*Src1[0] + 3*Src2[0] + 2 ) >> 2;    *Src1++ = a;    *Src2++ = b;  }}void xvid_VFilter_31_C(uint8_t *Src1, uint8_t *Src2, const int BpS, int Nb_Blks){  Nb_Blks *= 8;  while(Nb_Blks-->0) {    uint8_t a = ( 3*Src1[0] + 1*Src2[0] + 2 ) >> 2;    uint8_t b = ( 1*Src1[0] + 3*Src2[0] + 2 ) >> 2;    *Src1 = a;    *Src2 = b;    Src1 += BpS;    Src2 += BpS;  }}/*---------------------------------------------------------------------------- * 16x16 -> 8x8  (1/3/3/1) downsampling * * Warning! These read 1 pixel outside of the input 16x16 block! *--------------------------------------------------------------------------*/void xvid_Filter_18x18_To_8x8_C(int16_t *Dst, const uint8_t *Src, const int BpS){  int16_t *T, Tmp[18*8];  int i, j;  T = Tmp;  Src -= BpS;  for(j=-1; j<17; j++) {    for(i=0; i<8; ++i)      T[i] = Src[2*i-1] + 3*Src[2*i+0] + 3*Src[2*i+1] + Src[2*i+2];    T += 8;    Src += BpS;  }  T = Tmp + 8;  for(j=0; j<8; j++) {    for(i=0; i<8; ++i)      Dst[i] = ( T[-8+i] + 3*T[0+i] + 3*T[8+i] + T[16+i] + 32 ) / 64;    Dst += 8;    T += 16;  }}void xvid_Filter_Diff_18x18_To_8x8_C(int16_t *Dst, const uint8_t *Src, const int BpS){  int16_t *T, Tmp[18*8];  int i, j;  T = Tmp;  Src -= BpS;  for(j=-1; j<17; j++) {    for(i=0; i<8; ++i)      T[i] = Src[2*i-1] + 3*Src[2*i+0] + 3*Src[2*i+1] + Src[2*i+2];    T += 8;    Src += BpS;  }  T = Tmp;  for(j=0; j<8; j++) {    for(i=0; i<8; ++i)      Dst[i] -= ( T[i] + 3*T[8+i] + 3*T[16+i] + T[24+i] + 32 ) / 64;    Dst += 8;    T += 16;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线视频不卡二| 99久久精品一区| 色综合天天综合狠狠| 精品久久久久一区| 亚洲18女电影在线观看| av欧美精品.com| 国产午夜亚洲精品不卡| 奇米在线7777在线精品| 在线观看中文字幕不卡| 亚洲伊人伊色伊影伊综合网| 不卡高清视频专区| 亚洲第一搞黄网站| 日韩免费性生活视频播放| 精品影院一区二区久久久| 久久嫩草精品久久久精品一| 国产成人精品免费视频网站| 一区二区三区在线不卡| 日韩免费在线观看| 91天堂素人约啪| 日韩国产高清在线| 国产女人18毛片水真多成人如厕 | 蜜桃av一区二区三区| 亚洲精品一线二线三线无人区| 成人精品国产一区二区4080| 亚洲午夜精品一区二区三区他趣| 日韩欧美国产一区二区三区 | 色8久久精品久久久久久蜜 | 人禽交欧美网站| 欧美激情一区二区三区不卡| 日韩欧美一级二级| 91福利国产精品| 国产999精品久久| 蜜臀久久99精品久久久久宅男| 国产精品久久久久天堂| 国产午夜精品一区二区三区四区| 国产成人精品亚洲777人妖| 国产午夜亚洲精品理论片色戒| 日韩欧美国产一区二区三区| 国产三级精品视频| 亚洲乱码中文字幕| 日本一不卡视频| 成人涩涩免费视频| 91精品国产色综合久久不卡电影 | 91精品国产欧美一区二区| 一本高清dvd不卡在线观看| 色999日韩国产欧美一区二区| 成人免费毛片片v| 国产酒店精品激情| 国产成人综合网站| 成人美女在线观看| 色综合久久久久综合体| www.亚洲在线| 欧美系列一区二区| 91麻豆精品91久久久久久清纯| 欧美日韩精品免费| 欧美情侣在线播放| 精品久久久久久久久久久久久久久久久| 7777精品伊人久久久大香线蕉的 | 激情图区综合网| 经典一区二区三区| 白白色亚洲国产精品| 在线不卡一区二区| 欧美一级免费观看| 中文在线免费一区三区高中清不卡| 国产精品久久看| 日本系列欧美系列| 国产激情一区二区三区四区| 一道本成人在线| 欧美日韩视频在线第一区| 日韩一级免费一区| 国产精品对白交换视频| 免费的国产精品| 成人h动漫精品| 91精品久久久久久久久99蜜臂| 欧美国产禁国产网站cc| 午夜av电影一区| 91丝袜呻吟高潮美腿白嫩在线观看| 欧美电影在线免费观看| 18成人在线观看| 精品一区二区三区在线播放 | 久久男人中文字幕资源站| 亚洲免费视频中文字幕| 国内精品伊人久久久久av一坑| 91蜜桃视频在线| 国产欧美日韩在线视频| 捆绑调教一区二区三区| 欧美在线高清视频| 亚洲伊人色欲综合网| 91污在线观看| 依依成人精品视频| eeuss鲁片一区二区三区在线看| 日本一区二区三区高清不卡| 久久99精品国产| 久久综合视频网| 北岛玲一区二区三区四区| 亚洲人成网站精品片在线观看| 91麻豆精品视频| 麻豆精品久久久| 国产网红主播福利一区二区| 日本精品视频一区二区| 日韩av电影天堂| 国产精品国产三级国产普通话蜜臀| 91丨九色丨尤物| 精品无码三级在线观看视频| 国产精品美女久久久久久2018| 欧美日韩亚洲另类| 丁香婷婷综合色啪| 麻豆国产欧美日韩综合精品二区| 成熟亚洲日本毛茸茸凸凹| 日韩欧美国产成人一区二区| 亚洲成a人v欧美综合天堂下载 | 国产精品初高中害羞小美女文| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 欧美绝品在线观看成人午夜影视| 首页国产丝袜综合| 国产欧美日韩精品a在线观看| 色噜噜狠狠一区二区三区果冻| 日日夜夜一区二区| 中文字幕一区二区三| 8x8x8国产精品| 成人黄色国产精品网站大全在线免费观看| 亚洲三级久久久| 337p日本欧洲亚洲大胆色噜噜| 91亚洲永久精品| 国产美女精品在线| 日韩电影免费一区| 亚洲综合丁香婷婷六月香| 久久久久久久久久久久久夜| 欧美伦理电影网| 久久久久久日产精品| 欧美电影在哪看比较好| av午夜精品一区二区三区| 国产成人精品亚洲午夜麻豆| 精品写真视频在线观看| 亚洲成人激情av| 亚洲一区二区三区四区在线观看| 国产精品天干天干在观线| 久久久夜色精品亚洲| 日韩欧美一二三| 日韩亚洲欧美一区| 欧美乱妇15p| 欧美精品久久99| 91精品国产色综合久久不卡蜜臀| 欧美精品第1页| 69久久99精品久久久久婷婷| 91精品国产91综合久久蜜臀| 这里是久久伊人| 欧美一区二区三区视频免费播放| 欧美日韩高清一区二区三区| 欧美一级xxx| 久久久久99精品国产片| 中文字幕成人在线观看| 成人欧美一区二区三区小说| 亚洲观看高清完整版在线观看| 天堂资源在线中文精品| 日韩国产欧美在线播放| 青青草成人在线观看| 国产精品影视在线| 在线观看视频一区二区欧美日韩| 欧美日韩一区二区三区四区| 欧美一区二区高清| 亚洲国产精品成人综合色在线婷婷| 亚洲三级电影网站| 久久精品国产免费看久久精品| 成人短视频下载| 日韩欧美高清dvd碟片| 亚洲日本免费电影| 久久草av在线| 欧美日韩一区二区电影| 中文欧美字幕免费| 免费欧美高清视频| 91视频.com| 亚洲国产成人在线| 蜜桃av噜噜一区| 91成人看片片| 中文字幕亚洲一区二区va在线| 美脚の诱脚舐め脚责91| 91久久香蕉国产日韩欧美9色| 国产日韩精品久久久| 黑人巨大精品欧美黑白配亚洲| 欧美日韩精品二区第二页| 亚洲欧洲精品一区二区精品久久久| 久久er99热精品一区二区| 777a∨成人精品桃花网| 亚洲成人av资源| 欧美婷婷六月丁香综合色| 亚洲精品精品亚洲| 91美女蜜桃在线| 亚洲美女在线一区| 欧美在线免费观看亚洲| 亚洲视频一区二区在线| www..com久久爱| 亚洲欧美电影院| 欧美色视频一区| 日韩高清不卡一区二区三区| 日韩一区二区三区高清免费看看| 三级欧美在线一区| 日韩一区二区三区免费看 | 亚洲国产精品一区二区尤物区| 99久久伊人精品|