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

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

?? store.c

?? h.263解碼器 視頻會議 圖像采集 圖像壓縮
?? C
字號:
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <fcntl.h>#ifdef WIN32#include <io.h>#endif#include "config.h"#include "tmndec.h"#include "global.h"#ifdef WINDOWSint displayImage (unsigned char *lum, unsigned char *Cr, unsigned char *Cb);#endif/* private prototypes */static void store_one _ANSI_ARGS_((char *outname, unsigned char *src[],  int offset, int incr, int height));static void store_yuv _ANSI_ARGS_((char *outname, unsigned char *src[],  int offset, int incr, int height));static void store_yuv_append _ANSI_ARGS_((char *outname, unsigned char *src[],  int offset, int incr, int height));static void store_sif _ANSI_ARGS_((char *outname, unsigned char *src[],  int offset, int incr, int height));static void store_ppm_tga _ANSI_ARGS_((char *outname, unsigned char *src[],  int offset, int incr, int height, int tgaflag));static void store_yuv1 _ANSI_ARGS_((char *name, unsigned char *src,  int offset, int incr, int width, int height, int append));static void putbyte _ANSI_ARGS_((int c));static void putword _ANSI_ARGS_((int w));static void conv422to444 _ANSI_ARGS_((unsigned char *src, unsigned char *dst));static void conv420to422 _ANSI_ARGS_((unsigned char *src, unsigned char *dst));#define OBFRSIZE 4096static unsigned char obfr[OBFRSIZE];static unsigned char *optr;static int outfile;/* * store a picture as either one frame or two fields */void storeframe(src,frame)unsigned char *src[];int frame;{  char outname[32];  /* progressive */  sprintf(outname,outputname,frame,'f');  store_one(outname,src,0,coded_picture_width,vertical_size);}/* * store one frame or one field */static void store_one(outname,src,offset,incr,height)char *outname;unsigned char *src[];int offset, incr, height;{  switch (outtype)  {  case T_YUV:    store_yuv(outname,src,offset,incr,height);    break;  case T_YUV_CONC:    store_yuv_append(outname,src,offset,incr,height);    break;  case T_SIF:    store_sif(outname,src,offset,incr,height);    break;  case T_TGA:    store_ppm_tga(outname,src,offset,incr,height,1);    break;  case T_PPM:    store_ppm_tga(outname,src,offset,incr,height,0);    break;#ifdef DISPLAY  case T_X11:    dither(src);    break;#endif#ifdef WINDOWS  case T_WIN:    displayImage(src[0],src[2],src[1]);    break;#endif  default:    break;  }}/* separate headerless files for y, u and v */static void store_yuv(outname,src,offset,incr,height)char *outname;unsigned char *src[];int offset,incr,height;{  int hsize;  char tmpname[32];  hsize = horizontal_size;  sprintf(tmpname,"%s.Y",outname);  store_yuv1(tmpname,src[0],offset,incr,hsize,height,0);  offset>>=1; incr>>=1; hsize>>=1;  height>>=1;  sprintf(tmpname,"%s.U",outname);  store_yuv1(tmpname,src[1],offset,incr,hsize,height,0);  sprintf(tmpname,"%s.V",outname);  store_yuv1(tmpname,src[2],offset,incr,hsize,height,0);}/* concatenated headerless file for y, u and v */static void store_yuv_append(outname,src,offset,incr,height)char *outname;unsigned char *src[];int offset,incr,height;{  int hsize;  hsize = horizontal_size;  store_yuv1(outname,src[0],offset,incr,hsize,height,1);  offset>>=1; incr>>=1; hsize>>=1;  height>>=1;  store_yuv1(outname,src[1],offset,incr,hsize,height,1);  store_yuv1(outname,src[2],offset,incr,hsize,height,1);}/* auxiliary routine */static void store_yuv1(name,src,offset,incr,width,height,append)char *name;unsigned char *src;int offset,incr,width,height,append;{  int i, j;  unsigned char *p;  if (append) {    if ((outfile = open(name,O_APPEND|O_WRONLY|O_BINARY,0666))==-1) {      sprintf(errortext,"Couldn't append to %s\n",name);      error(errortext);    }  }  else {    if ((outfile = open(name,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666))==-1) {      sprintf(errortext,"Couldn't create %s\n",name);      error(errortext);    }  }  if (!quiet)    fprintf(stderr,"saving %s\n",name);  optr=obfr;  for (i=0; i<height; i++) {    p = src + offset + incr*i;    for (j=0; j<width; j++)      putbyte(*p++);  }  if (optr!=obfr)    write(outfile,obfr,optr-obfr);  close(outfile);}/* * store as headerless file in U,Y,V,Y format */static void store_sif (outname,src,offset,incr,height)char *outname;unsigned char *src[];int offset, incr, height;{  int i,j;  unsigned char *py, *pu, *pv;  static unsigned char *u422, *v422;  if (!u422) {    if (!(u422 = (unsigned char *)malloc((coded_picture_width>>1)         *coded_picture_height)))      error("malloc failed");    if (!(v422 = (unsigned char *)malloc((coded_picture_width>>1)         *coded_picture_height)))      error("malloc failed");  }    conv420to422(src[1],u422);  conv420to422(src[2],v422);  strcat(outname,".SIF");  if (!quiet)    fprintf(stderr,"saving %s\n",outname);  if ((outfile = open(outname,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666))==-1)  {    sprintf(errortext,"Couldn't create %s\n",outname);    error(errortext);  }  optr = obfr;  for (i=0; i<height; i++)  {    py = src[0] + offset + incr*i;    pu = u422 + (offset>>1) + (incr>>1)*i;    pv = v422 + (offset>>1) + (incr>>1)*i;    for (j=0; j<horizontal_size; j+=2)    {      putbyte(*pu++);      putbyte(*py++);      putbyte(*pv++);      putbyte(*py++);    }  }  if (optr!=obfr)    write(outfile,obfr,optr-obfr);  close(outfile);}/* * store as PPM (PBMPLUS) or uncompressed Truevision TGA ('Targa') file */static void store_ppm_tga(outname,src,offset,incr,height,tgaflag)char *outname;unsigned char *src[];int offset, incr, height;int tgaflag;{  int i, j;  int y, u, v, r, g, b;  int crv, cbu, cgu, cgv;  unsigned char *py, *pu, *pv;  static unsigned char tga24[14] = {0,0,2,0,0,0,0, 0,0,0,0,0,24,32};  char header[32];  static unsigned char *u422, *v422, *u444, *v444;  if (!u444) {    if (!(u422 = (unsigned char *)malloc((coded_picture_width>>1)         *coded_picture_height)))      error("malloc failed");    if (!(v422 = (unsigned char *)malloc((coded_picture_width>>1)         *coded_picture_height)))      error("malloc failed");    if (!(u444 = (unsigned char *)malloc(coded_picture_width         *coded_picture_height)))      error("malloc failed");    if (!(v444 = (unsigned char *)malloc(coded_picture_width         *coded_picture_height)))      error("malloc failed");  }  conv420to422(src[1],u422);  conv420to422(src[2],v422);  conv422to444(u422,u444);  conv422to444(v422,v444);  strcat(outname,tgaflag ? ".tga" : ".ppm");  if (!quiet)    fprintf(stderr,"saving %s\n",outname);  if ((outfile = open(outname,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666))==-1)    {      sprintf(errortext,"Couldn't create %s\n",outname);      error(errortext);    }  optr = obfr;  if (tgaflag) {    /* TGA header */    for (i=0; i<12; i++)      putbyte(tga24[i]);    putword(horizontal_size); putword(height);    putbyte(tga24[12]); putbyte(tga24[13]);  }  else {    /* PPM header */    sprintf(header,"P6\n%d %d\n255\n",horizontal_size,height);    for (i=0; header[i]!=0; i++)      putbyte(header[i]);  }  /* matrix coefficients */  crv = convmat[matrix_coefficients][0];  cbu = convmat[matrix_coefficients][1];  cgu = convmat[matrix_coefficients][2];  cgv = convmat[matrix_coefficients][3];    for (i=0; i<height; i++) {    py = src[0] + offset + incr*i;    pu = u444 + offset + incr*i;    pv = v444 + offset + incr*i;    for (j=0; j<horizontal_size; j++) {      u = *pu++ - 128;      v = *pv++ - 128;      y = 76309 * (*py++ - 16); /* (255/219)*65536 */      r = clp[(y + crv*v + 32768)>>16];      g = clp[(y - cgu*u - cgv*v + 32768)>>16];      b = clp[(y + cbu*u + 32786)>>16];      if (tgaflag) {        putbyte(b); putbyte(g); putbyte(r);      }      else {        putbyte(r); putbyte(g); putbyte(b);      }    }  }  if (optr!=obfr)    write(outfile,obfr,optr-obfr);  close(outfile);}static void putbyte(c)int c;{  *optr++ = c;  if (optr == obfr+OBFRSIZE)  {    write(outfile,obfr,OBFRSIZE);    optr = obfr;  }}static void putword(w)int w;{  putbyte(w); putbyte(w>>8);}/* horizontal 1:2 interpolation filter */static void conv422to444(src,dst)unsigned char *src,*dst;{  int i, i2, w, j, im3, im2, im1, ip1, ip2, ip3;  w = coded_picture_width>>1;  for (j=0; j<coded_picture_height; j++) {    for (i=0; i<w; i++) {      i2 = i<<1;      im3 = (i<3) ? 0 : i-3;      im2 = (i<2) ? 0 : i-2;      im1 = (i<1) ? 0 : i-1;      ip1 = (i<w-1) ? i+1 : w-1;      ip2 = (i<w-2) ? i+2 : w-1;      ip3 = (i<w-3) ? i+3 : w-1;      /* FIR filter coefficients (*256): 5 -21 70 228 -37 11 */      dst[i2] =   clp[(int)(  5*src[im3]              -21*src[im2]              +70*src[im1]              +228*src[i]              -37*src[ip1]              +11*src[ip2]+128)>>8];      dst[i2+1] = clp[(int)(  5*src[ip3]              -21*src[ip2]              +70*src[ip1]              +228*src[i]              -37*src[im1]              +11*src[im2]+128)>>8];    }    src+= w;    dst+= coded_picture_width;  }}/* vertical 1:2 interpolation filter */static void conv420to422(src,dst)unsigned char *src,*dst;{  int w, h, i, j, j2;  int jm3, jm2, jm1, jp1, jp2, jp3;  w = coded_picture_width>>1;  h = coded_picture_height>>1;  /* intra frame */  for (i=0; i<w; i++) {    for (j=0; j<h; j++) {      j2 = j<<1;      jm3 = (j<3) ? 0 : j-3;      jm2 = (j<2) ? 0 : j-2;      jm1 = (j<1) ? 0 : j-1;      jp1 = (j<h-1) ? j+1 : h-1;      jp2 = (j<h-2) ? j+2 : h-1;      jp3 = (j<h-3) ? j+3 : h-1;            /* FIR filter coefficients (*256): 5 -21 70 228 -37 11 */      /* New FIR filter coefficients (*256): 3 -16 67 227 -32 7 */      dst[w*j2] =     clp[(int)(  3*src[w*jm3]          -16*src[w*jm2]          +67*src[w*jm1]          +227*src[w*j]          -32*src[w*jp1]          +7*src[w*jp2]+128)>>8];      dst[w*(j2+1)] = clp[(int)(  3*src[w*jp3]          -16*src[w*jp2]          +67*src[w*jp1]          +227*src[w*j]          -32*src[w*jm1]          +7*src[w*jm2]+128)>>8];    }    src++;    dst++;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美女国产一区二区三区| 国产一区二区三区精品欧美日韩一区二区三区 | 午夜电影久久久| 久久久久国产精品免费免费搜索| 一本大道久久a久久精品综合| 激情欧美一区二区| 亚洲国产精品久久艾草纯爱| 国产欧美日韩在线看| 欧美一区二区日韩| 99久久精品国产毛片| 国产在线国偷精品产拍免费yy| 香蕉乱码成人久久天堂爱免费| 日韩美女啊v在线免费观看| 日韩久久久久久| 在线播放日韩导航| 色婷婷久久久亚洲一区二区三区| 成人免费视频一区| 国模冰冰炮一区二区| 蜜臂av日日欢夜夜爽一区| 亚洲一区二区三区在线看| 亚洲欧洲在线观看av| 午夜欧美电影在线观看| 成人欧美一区二区三区1314| 国产日韩精品一区二区三区| 精品国精品国产| 日韩一级视频免费观看在线| 在线观看免费亚洲| 色域天天综合网| eeuss鲁一区二区三区| 国产suv精品一区二区883| 国产成人丝袜美腿| 成人一级视频在线观看| 国产白丝精品91爽爽久久| 国产毛片精品国产一区二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 麻豆精品国产传媒mv男同| 蜜乳av一区二区| 韩国在线一区二区| 国产成人鲁色资源国产91色综 | 国产精品久久三区| 久久精品亚洲精品国产欧美kt∨| 日韩欧美一区中文| 欧美成人高清电影在线| 日韩欧美国产综合一区 | 成人黄页毛片网站| av在线综合网| 色老汉一区二区三区| 日本国产一区二区| 欧美系列日韩一区| 欧美丰满一区二区免费视频| 日韩三级伦理片妻子的秘密按摩| 欧美xfplay| 久久在线观看免费| 日本一区二区三区四区在线视频 | 精品午夜一区二区三区在线观看| 美日韩一区二区| 国产美女av一区二区三区| 国产成人精品在线看| 本田岬高潮一区二区三区| av在线一区二区三区| 在线观看免费亚洲| 日韩欧美国产三级电影视频| 久久免费视频一区| 亚洲人成影院在线观看| 亚洲成人自拍网| 国产久卡久卡久卡久卡视频精品| 成人午夜短视频| 在线观看国产91| 精品久久五月天| 亚洲视频一二三区| 琪琪久久久久日韩精品| 国产盗摄一区二区| 欧美性色综合网| 久久女同性恋中文字幕| 亚洲精品视频在线看| 天使萌一区二区三区免费观看| 精品影院一区二区久久久| 成人一级片网址| 欧美精品v日韩精品v韩国精品v| 精品国产乱码久久久久久免费| 国产精品色噜噜| 亚洲成av人在线观看| 国产精品一级片在线观看| 99国内精品久久| 欧美一区二区三区免费视频 | 日韩一区二区不卡| 国产片一区二区三区| 手机精品视频在线观看| 成人精品免费视频| 91精品国产综合久久久蜜臀图片| 国产嫩草影院久久久久| 日韩av在线发布| 99久久综合狠狠综合久久| 欧美一区二区免费| 亚洲欧洲精品一区二区三区不卡 | 亚洲超碰精品一区二区| 国产精品一二三区| 欧美精品一卡二卡| 亚洲乱码国产乱码精品精小说 | 国产精品久久久久久一区二区三区| 亚洲国产人成综合网站| 精品系列免费在线观看| 7777精品伊人久久久大香线蕉完整版 | 亚洲成在线观看| av在线播放一区二区三区| 欧美一二三区在线观看| 亚洲国产综合在线| 成人av免费在线播放| 精品少妇一区二区三区日产乱码 | 成人免费视频一区| 精品国产伦一区二区三区免费| 一区二区三区资源| zzijzzij亚洲日本少妇熟睡| 久久亚洲二区三区| 水蜜桃久久夜色精品一区的特点| 91久久精品一区二区三区| 欧美激情在线一区二区三区| 成人网页在线观看| 精品久久久久久久一区二区蜜臀| 一区二区三区四区不卡视频| 成人app下载| 国产女主播视频一区二区| 韩国女主播成人在线| 6080日韩午夜伦伦午夜伦| 午夜视频一区在线观看| 91国在线观看| 亚洲九九爱视频| 91免费版在线| 亚洲日本电影在线| 99久久久久久| 最近中文字幕一区二区三区| 成人激情动漫在线观看| 国产精品美女久久久久久2018| 国产精品自拍在线| 久久影音资源网| 国产在线国偷精品产拍免费yy| 精品国产乱码久久久久久闺蜜| 久久99热这里只有精品| 日韩女优电影在线观看| 韩国三级在线一区| 国产欧美一区视频| 成人免费看黄yyy456| 国产精品丝袜91| 99精品热视频| 亚洲欧美国产三级| 欧美午夜片在线观看| 日韩中文字幕区一区有砖一区| 91精品国产色综合久久不卡电影 | 色综合天天综合在线视频| 亚洲美女区一区| 欧美亚洲高清一区| 日韩在线播放一区二区| 日韩视频一区二区三区| 91精品国产全国免费观看 | 亚洲成人动漫精品| 欧美巨大另类极品videosbest | 国产欧美日韩三级| 97se亚洲国产综合在线| 一区二区久久久| 5月丁香婷婷综合| 精品一二三四在线| 中文成人综合网| 欧美中文一区二区三区| 日韩高清一级片| 精品国产欧美一区二区| 成人做爰69片免费看网站| 亚洲精品综合在线| 91精品国产综合久久精品| 国产在线精品一区二区三区不卡| 国产精品色在线| 欧美日韩高清一区二区不卡| 国产一区二区在线看| 亚洲视频香蕉人妖| 欧美一区二区精品久久911| 国产一区二区三区四区五区美女| 国产精品久久久久影院色老大| 精品视频一区二区三区免费| 久久精品国产亚洲高清剧情介绍 | 一区二区三区在线影院| 日韩欧美一卡二卡| av一区二区久久| 天天影视涩香欲综合网| 日本一区二区视频在线观看| 欧美日韩国产乱码电影| 国产福利不卡视频| 亚洲一二三四在线观看| 2024国产精品视频| 欧美综合色免费| 国产福利精品一区| 日日欢夜夜爽一区| 亚洲欧洲成人自拍| 日韩女优制服丝袜电影| 欧美中文字幕亚洲一区二区va在线 | 国产精品二三区| 日韩小视频在线观看专区| 99国产精品99久久久久久| 久久99精品久久久久久国产越南 | 美国av一区二区| 有码一区二区三区| 国产日韩欧美亚洲|