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

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

?? putseq.c

?? mpeg2編解碼(VC源碼).rar
?? C
字號:
/* putseq.c, sequence level routines                                        *//* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. *//* * Disclaimer of Warranty * * These software programs are available to the user without any license fee or * royalty on an "as is" basis.  The MPEG Software Simulation Group disclaims * any and all warranties, whether express, implied, or statuary, including any * implied warranties or merchantability or of fitness for a particular * purpose.  In no event shall the copyright-holder be liable for any * incidental, punitive, or consequential damages of any kind whatsoever * arising from the use of these programs. * * This disclaimer of warranty extends to the user of these programs and user's * customers, employees, agents, transferees, successors, and assigns. * * The MPEG Software Simulation Group does not represent or warrant that the * programs furnished hereunder are free of infringement of any third-party * patents. * * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware, * are subject to royalty fees to patent holders.  Many of these patents are * general enough such that they are unavoidable regardless of implementation * design. * */#include <stdio.h>#include <string.h>#include "config.h"#include "global.h"void putseq(){  /* this routine assumes (N % M) == 0 */  int i, j, k, f, f0, n, np, nb, sxf, syf, sxb, syb;  int ipflag;  FILE *fd;  char name[256];  unsigned char *neworg[3], *newref[3];  static char ipb[5] = {' ','I','P','B','D'};  rc_init_seq(); /* initialize rate control */  /* sequence header, sequence extension and sequence display extension */  putseqhdr();  if (!mpeg1)  {    putseqext();    putseqdispext();  }  /* optionally output some text data (description, copyright or whatever) */  if (strlen(id_string) > 1)    putuserdata(id_string);  /* loop through all frames in encoding/decoding order */  for (i=0; i<nframes; i++)  {    if (!quiet)    {      fprintf(stderr,"Encoding frame %d ",i);      fflush(stderr);    }    /* f0: lowest frame number in current GOP     *     * first GOP contains N-(M-1) frames,     * all other GOPs contain N frames     */    f0 = N*((i+(M-1))/N) - (M-1);    if (f0<0)      f0=0;    if (i==0 || (i-1)%M==0)    {      /* I or P frame */      for (j=0; j<3; j++)      {        /* shuffle reference frames */        neworg[j] = oldorgframe[j];        newref[j] = oldrefframe[j];        oldorgframe[j] = neworgframe[j];        oldrefframe[j] = newrefframe[j];        neworgframe[j] = neworg[j];        newrefframe[j] = newref[j];      }      /* f: frame number in display order */      f = (i==0) ? 0 : i+M-1;      if (f>=nframes)        f = nframes - 1;      if (i==f0) /* first displayed frame in GOP is I */      {        /* I frame */        pict_type = I_TYPE;        forw_hor_f_code = forw_vert_f_code = 15;        back_hor_f_code = back_vert_f_code = 15;        /* n: number of frames in current GOP         *         * first GOP contains (M-1) less (B) frames         */        n = (i==0) ? N-(M-1) : N;        /* last GOP may contain less frames */        if (n > nframes-f0)          n = nframes-f0;        /* number of P frames */        if (i==0)          np = (n + 2*(M-1))/M - 1; /* first GOP */        else          np = (n + (M-1))/M - 1;        /* number of B frames */        nb = n - np - 1;        rc_init_GOP(np,nb);        putgophdr(f0,i==0); /* set closed_GOP in first GOP only */      }      else      {        /* P frame */        pict_type = P_TYPE;        forw_hor_f_code = motion_data[0].forw_hor_f_code;        forw_vert_f_code = motion_data[0].forw_vert_f_code;        back_hor_f_code = back_vert_f_code = 15;        sxf = motion_data[0].sxf;        syf = motion_data[0].syf;      }    }    else    {      /* B frame */      for (j=0; j<3; j++)      {        neworg[j] = auxorgframe[j];        newref[j] = auxframe[j];      }      /* f: frame number in display order */      f = i - 1;      pict_type = B_TYPE;      n = (i-2)%M + 1; /* first B: n=1, second B: n=2, ... */      forw_hor_f_code = motion_data[n].forw_hor_f_code;      forw_vert_f_code = motion_data[n].forw_vert_f_code;      back_hor_f_code = motion_data[n].back_hor_f_code;      back_vert_f_code = motion_data[n].back_vert_f_code;      sxf = motion_data[n].sxf;      syf = motion_data[n].syf;      sxb = motion_data[n].sxb;      syb = motion_data[n].syb;    }    temp_ref = f - f0;    frame_pred_dct = frame_pred_dct_tab[pict_type-1];    q_scale_type = qscale_tab[pict_type-1];    intravlc = intravlc_tab[pict_type-1];    altscan = altscan_tab[pict_type-1];    fprintf(statfile,"\nFrame %d (#%d in display order):\n",i,f);    fprintf(statfile," picture_type=%c\n",ipb[pict_type]);    fprintf(statfile," temporal_reference=%d\n",temp_ref);    fprintf(statfile," frame_pred_frame_dct=%d\n",frame_pred_dct);    fprintf(statfile," q_scale_type=%d\n",q_scale_type);    fprintf(statfile," intra_vlc_format=%d\n",intravlc);    fprintf(statfile," alternate_scan=%d\n",altscan);    if (pict_type!=I_TYPE)    {      fprintf(statfile," forward search window: %d...%d / %d...%d\n",        -sxf,sxf,-syf,syf);      fprintf(statfile," forward vector range: %d...%d.5 / %d...%d.5\n",        -(4<<forw_hor_f_code),(4<<forw_hor_f_code)-1,        -(4<<forw_vert_f_code),(4<<forw_vert_f_code)-1);    }    if (pict_type==B_TYPE)    {      fprintf(statfile," backward search window: %d...%d / %d...%d\n",        -sxb,sxb,-syb,syb);      fprintf(statfile," backward vector range: %d...%d.5 / %d...%d.5\n",        -(4<<back_hor_f_code),(4<<back_hor_f_code)-1,        -(4<<back_vert_f_code),(4<<back_vert_f_code)-1);    }
    //lspseq 
    if (T_SEQ ==inputtype) //plused by lsp
    {
      readframe2(tplorg,f+frame0,neworg);
    }
    else
    {      sprintf(name,tplorg,f+frame0);      readframe(name,neworg);
    }
    //lspseq end    if (fieldpic)    {      if (!quiet)      {        fprintf(stderr,"\nfirst field  (%s) ",topfirst ? "top" : "bot");        fflush(stderr);      }      pict_struct = topfirst ? TOP_FIELD : BOTTOM_FIELD;      motion_estimation(oldorgframe[0],neworgframe[0],                        oldrefframe[0],newrefframe[0],                        neworg[0],newref[0],                        sxf,syf,sxb,syb,mbinfo,0,0);      predict(oldrefframe,newrefframe,predframe,0,mbinfo);      dct_type_estimation(predframe[0],neworg[0],mbinfo);      transform(predframe,neworg,mbinfo,blocks);      putpict(neworg[0]);      for (k=0; k<mb_height2*mb_width; k++)      {        if (mbinfo[k].mb_type & MB_INTRA)          for (j=0; j<block_count; j++)            iquant_intra(blocks[k*block_count+j],blocks[k*block_count+j],                         dc_prec,intra_q,mbinfo[k].mquant);        else          for (j=0;j<block_count;j++)            iquant_non_intra(blocks[k*block_count+j],blocks[k*block_count+j],                             inter_q,mbinfo[k].mquant);      }      itransform(predframe,newref,mbinfo,blocks);      calcSNR(neworg,newref);      stats();      if (!quiet)      {        fprintf(stderr,"second field (%s) ",topfirst ? "bot" : "top");        fflush(stderr);      }      pict_struct = topfirst ? BOTTOM_FIELD : TOP_FIELD;      ipflag = (pict_type==I_TYPE);      if (ipflag)      {        /* first field = I, second field = P */        pict_type = P_TYPE;        forw_hor_f_code = motion_data[0].forw_hor_f_code;        forw_vert_f_code = motion_data[0].forw_vert_f_code;        back_hor_f_code = back_vert_f_code = 15;        sxf = motion_data[0].sxf;        syf = motion_data[0].syf;      }      motion_estimation(oldorgframe[0],neworgframe[0],                        oldrefframe[0],newrefframe[0],                        neworg[0],newref[0],                        sxf,syf,sxb,syb,mbinfo,1,ipflag);      predict(oldrefframe,newrefframe,predframe,1,mbinfo);      dct_type_estimation(predframe[0],neworg[0],mbinfo);      transform(predframe,neworg,mbinfo,blocks);      putpict(neworg[0]);      for (k=0; k<mb_height2*mb_width; k++)      {        if (mbinfo[k].mb_type & MB_INTRA)          for (j=0; j<block_count; j++)            iquant_intra(blocks[k*block_count+j],blocks[k*block_count+j],                         dc_prec,intra_q,mbinfo[k].mquant);        else          for (j=0;j<block_count;j++)            iquant_non_intra(blocks[k*block_count+j],blocks[k*block_count+j],                             inter_q,mbinfo[k].mquant);      }      itransform(predframe,newref,mbinfo,blocks);      calcSNR(neworg,newref);      stats();    }    else    {      pict_struct = FRAME_PICTURE;      /* do motion_estimation       *       * uses source frames (...orgframe) for full pel search       * and reconstructed frames (...refframe) for half pel search       */      motion_estimation(oldorgframe[0],neworgframe[0],                        oldrefframe[0],newrefframe[0],                        neworg[0],newref[0],                        sxf,syf,sxb,syb,mbinfo,0,0);      predict(oldrefframe,newrefframe,predframe,0,mbinfo);      dct_type_estimation(predframe[0],neworg[0],mbinfo);      transform(predframe,neworg,mbinfo,blocks);      putpict(neworg[0]);      for (k=0; k<mb_height*mb_width; k++)      {        if (mbinfo[k].mb_type & MB_INTRA)          for (j=0; j<block_count; j++)            iquant_intra(blocks[k*block_count+j],blocks[k*block_count+j],                         dc_prec,intra_q,mbinfo[k].mquant);        else          for (j=0;j<block_count;j++)            iquant_non_intra(blocks[k*block_count+j],blocks[k*block_count+j],                             inter_q,mbinfo[k].mquant);      }      itransform(predframe,newref,mbinfo,blocks);      calcSNR(neworg,newref);      stats();    }    sprintf(name,tplref,f+frame0);    writeframe(name,newref);  }  putseqend();}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美乱妇一区二区三区不卡视频| 美女在线视频一区| 亚洲18色成人| 国产69精品久久久久777| 欧美丝袜自拍制服另类| 国产日产欧美一区二区三区 | 色欧美片视频在线观看| 欧美一区永久视频免费观看| 国产精品乱人伦| 精品一区二区三区在线观看| 欧美三级中文字| 成人免费在线视频观看| 国产老女人精品毛片久久| 欧美日韩免费电影| 亚洲一区二区综合| 91香蕉视频黄| 国产精品全国免费观看高清 | 大白屁股一区二区视频| 日韩精品专区在线影院观看 | 亚洲精品一二三四区| 国产黄色精品视频| 精品处破学生在线二十三| 日韩电影在线观看网站| 欧美日韩中文字幕一区二区| 亚洲精品va在线观看| 91欧美一区二区| **网站欧美大片在线观看| 成人美女在线视频| 国产情人综合久久777777| 国产一区二区在线视频| 欧美r级电影在线观看| 另类成人小视频在线| 日韩片之四级片| 蜜桃久久久久久| 精品对白一区国产伦| 久久97超碰色| 精品国产乱码久久久久久老虎| 欧美最猛性xxxxx直播| 亚洲美女在线一区| 欧洲av一区二区嗯嗯嗯啊| 亚洲成av人片观看| 欧美一区三区二区| 美女国产一区二区三区| 久久婷婷综合激情| av在线播放一区二区三区| 亚洲色图一区二区三区| 欧美在线你懂得| 奇米影视7777精品一区二区| 日韩精品一区二区三区swag | 久久亚洲精品国产精品紫薇| 国产高清无密码一区二区三区| 中文一区一区三区高中清不卡| 成人av电影在线观看| 亚洲综合丁香婷婷六月香| 欧美精品日日鲁夜夜添| 国产一区不卡精品| 中文字幕在线视频一区| 欧美三级在线看| 国产做a爰片久久毛片| 中文字幕在线一区免费| 欧美精品色综合| 国产麻豆成人精品| 一级做a爱片久久| 精品国产免费视频| 91在线观看成人| 蜜臀av一级做a爰片久久| 国产精品热久久久久夜色精品三区 | 欧美影片第一页| 美女视频免费一区| 中文字幕一区二区5566日韩| 欧美精品一卡二卡| 高清在线不卡av| 丝袜诱惑制服诱惑色一区在线观看| 2021久久国产精品不只是精品| 91首页免费视频| 蜜桃视频一区二区三区 | 国产日韩欧美不卡| 欧美精品一卡两卡| 色综合久久久久综合| 久久激情综合网| 亚洲一区二区av在线| 欧美激情在线免费观看| 91精品国模一区二区三区| 色综合欧美在线| 国产一区二区影院| 蜜桃av一区二区在线观看| 亚洲美女偷拍久久| 国产日韩欧美在线一区| 8x8x8国产精品| 在线区一区二视频| 9色porny自拍视频一区二区| 久久国产精品无码网站| 亚洲v中文字幕| 亚洲综合区在线| 亚洲丝袜另类动漫二区| 国产欧美在线观看一区| 日韩三级在线免费观看| 欧美色大人视频| 91久久久免费一区二区| 成人激情av网| 国产成人精品1024| 国产伦精一区二区三区| 九色|91porny| 久久99精品久久久久久久久久久久| 一区二区三区精品| 亚洲精品中文在线| 亚洲欧美日韩国产中文在线| 国产精品进线69影院| 国产婷婷一区二区| 国产欧美一区二区在线观看| 久久久久青草大香线综合精品| 欧美videossexotv100| 欧美一级一区二区| 日韩免费高清av| 日韩精品在线一区二区| 日韩欧美国产一二三区| 日韩三级伦理片妻子的秘密按摩| 欧美老肥妇做.爰bbww视频| 欧美日韩高清影院| 欧美日韩免费一区二区三区 | 99国内精品久久| 欧美草草影院在线视频| 欧美α欧美αv大片| 欧美成人精品3d动漫h| 久久精品亚洲乱码伦伦中文| 久久精品人人做| 成人欧美一区二区三区在线播放| 中文字幕一区日韩精品欧美| 亚洲精品va在线观看| 一区二区三区在线观看视频| 夜夜精品视频一区二区| 同产精品九九九| 精品一区二区三区在线观看 | 麻豆成人av在线| 国产一区二区三区久久久| 国产成人8x视频一区二区| 99国产精品一区| 717成人午夜免费福利电影| 精品毛片乱码1区2区3区| 中文一区二区完整视频在线观看| 亚洲精品视频在线| 日本美女一区二区三区视频| 精品制服美女丁香| 不卡av在线网| 欧美精品自拍偷拍| 中文字幕第一区综合| 亚洲综合色成人| 国产一区二区精品久久99| 91在线porny国产在线看| 这里只有精品99re| 国产精品国产三级国产aⅴ原创| 亚洲一区免费观看| 国产成人免费视频一区| 欧美三级电影一区| 中文字幕欧美区| 日本三级亚洲精品| bt7086福利一区国产| 欧美精品丝袜中出| 亚洲色欲色欲www在线观看| 日韩高清不卡在线| 91麻豆精品在线观看| 精品1区2区在线观看| 亚洲国产精品一区二区www| 国产一区二区在线观看免费| 欧美怡红院视频| 国产精品网站在线| 久久99深爱久久99精品| 欧美午夜精品理论片a级按摩| 国产亚洲婷婷免费| 蜜臀av一区二区| 欧美视频一区二区三区四区| 国产女同互慰高潮91漫画| 日本欧美韩国一区三区| 色哟哟亚洲精品| 中文字幕va一区二区三区| 蜜桃免费网站一区二区三区| 欧美亚洲另类激情小说| 国产精品久久二区二区| 国产乱色国产精品免费视频| 欧美一区二区三区视频| 一区二区三区在线免费观看| 成人sese在线| 国产欧美一区二区三区鸳鸯浴 | 国产99精品国产| 日韩欧美国产综合在线一区二区三区 | 精品少妇一区二区三区| 亚洲电影在线播放| 在线区一区二视频| 亚洲精品视频在线| 91色在线porny| 国产精品久久久久一区二区三区 | kk眼镜猥琐国模调教系列一区二区 | 欧美性色黄大片手机版| 亚洲欧洲www| 一本色道**综合亚洲精品蜜桃冫| 国产精品视频你懂的| 丰满岳乱妇一区二区三区| 久久婷婷色综合| 成人午夜在线播放| 中文字幕制服丝袜一区二区三区 |