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

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

?? verify.c

?? MPEG2編解碼的源代碼.zip
?? C
字號:
/* verify.c  * * Bitstream verification routines * * */#ifdef VERIFY #include <stdio.h>#include <stdlib.h>#include <ctype.h>#include <fcntl.h>#include <math.h>     /* needed for ceil() */#include "config.h"#include "global.h"/* #define DEBUG  */#ifdef DEBUG#define PC #endif#ifdef PC#include <conio.h>    /* needed for getch() */#endif /* PC *//*    Check picture headers:  due to the VBV definition of picture data,   this routine must be called immediately before any picture data    is parsed. (before the first slice start code, including any slice    start code stuffing).*/static void Check_VBV_Delay _ANSI_ARGS_((int Bitstream_Framenum, int Sequence_Framenum));void Check_Headers(Bitstream_Framenum, Sequence_Framenum)int Bitstream_Framenum;int Sequence_Framenum;{  if((!low_delay)&&(vbv_delay!=0)&&(vbv_delay!=0xFFFF))    Check_VBV_Delay(Bitstream_Framenum, Sequence_Framenum);  /* clear out the header tracking variables so we have an accurate      count next time */  Clear_Verify_Headers();}/*  * Verify vbv_delay value in picture header  * (low_delay==1 checks not implemented. this does not exhaustively test all  *  possibilities suggested in ISO/IEC 13818-2 Annex C.  It only checks *  for constant rate streams) * * Q:how do we tell a variable rate stream from a constant rate stream anyway? *   it's not as simple as vbv_delay==0xFFFF, since we need meaningful  *   vbv_delay values to calculate the piecewise rate in the first place! * * Also: no special provisions at the beginning or end of a sequence */static void Check_VBV_Delay(Bitstream_Framenum, Sequence_Framenum)int Bitstream_Framenum;int Sequence_Framenum;{  double B;   /* buffer size                   */  double Bn;  /* buffer fullness for picture n */  double R;   /* bitrate                       */  double I;   /* time interval (t[n+1] - t[n]) */  double T;   /* inverse of the frame rate (frame period) */  int d;  int internal_vbv_delay;    static int previous_IorP_picture_structure;  static int previous_IorP_repeat_first_field;  static int previous_IorP_top_field_first;  static int previous_vbv_delay;  static int previous_bitstream_position;  static double previous_Bn;  static double E;      /* maximum quantization error or mismatch */    if((Sequence_Framenum==0)&&(!Second_Field))   {  /* first coded picture of sequence */    R = bit_rate;    /* the initial buffer occupancy is taken on faith       that is, we believe what is transmitted in the first coded picture header       to be the true/actual buffer occupancy */        Bn = (R * (double) vbv_delay) / 90000.0;    B = 16 * 1024 * vbv_buffer_size;        /* maximum quantization error in bitrate (bit_rate_value is quantized/       rounded-up to units of 400 bits/sec as per ISO/IEC 13818-2        section 6.3.3 */        E = (400.0/frame_rate) + 400;#ifdef DEBUG    printf("vbv_buffer_size (B) = %.0f, Bn=%f, E=%f, \nbitrate=%f, vbv_delay=%d frame_rate=%f\n",       B, Bn, E, bit_rate, vbv_delay, frame_rate); #endif  }  else /* not the first coded picture of sequence */  {    /* derive the interval (I).  The interval tells us how many constant rate bits     * will have been downloaded to the buffer during the current picture period     *     * interval assumes that:      *  1. whilst we are decoding the current I or P picture, we are displaying      *     the previous I or P picture which was stored in the reorder     *     buffer (pointed to by forward_reference_frame in this implementation)     *     *  2. B pictures are output ("displayed") at the time when they are decoded      *      */    if(progressive_sequence) /* Annex C.9 (progressive_sequence==1, low_delay==0) */    {      T = 1/frame_rate; /* inverse of the frame rate (frame period) */      if(picture_coding_type==B_TYPE)      {        if(repeat_first_field==1)        {          if(top_field_first==1)            I = T*3;  /* three frame periods */          else            I = T*2;  /* two frame periods */        }        else          I = T;      /* one frame period */      }      else /* P or I frame */      {        if(previous_IorP_repeat_first_field==1)        {          if(previous_IorP_top_field_first==1)            I = 3*T;          else            I = 2*T;        }        else          I = T;      }    }    else /* Annex C.11 (progressive_sequence==0, low_delay==0) */    {            T = 1/(2*frame_rate); /* inverse of two times the frame rate (field period) */      if(picture_coding_type==B_TYPE)      {        if(picture_structure==FRAME_PICTURE)        {          if(repeat_first_field==0)            I = 2*T;  /* two field periods */          else            I = 3*T;  /* three field periods */        }        else /* B field */        {          I = T;      /* one field period */        }      }      else /* I or P picture */      {        if(picture_structure==FRAME_PICTURE)        {          if(previous_IorP_repeat_first_field==0)            I = 2*T;          else            I = 3*T;        }        else        {          if(Second_Field==0)  /* first field of current frame */            I = T;          else /* second field of current frame */          {            /* formula: previous I or P display period (2*T or 3*T) minus the                very recent decode period (T) of the first field of the current                frame */            if(previous_IorP_picture_structure!=FRAME_PICTURE               || previous_IorP_repeat_first_field==0)              I = 2*T - T;  /* a net of one field period */             else if(previous_IorP_picture_structure==FRAME_PICTURE               && previous_IorP_repeat_first_field==1)              I = 3*T - T;  /* a net of two field periods */          }        }      }    }    /* derive coded size of previous picture */    d  = ld->Bitcnt - previous_bitstream_position;    /* Rate = Distance/Time */    /* piecewise constant rate (variable rate stream) calculation     * R =  ((double) d /((previous_vbv_delay - vbv_delay)/90000 + I));     */    R = bit_rate;    /* compute buffer fullness just before removing picture n      *     * Bn = previous_Bn + (I*R) - d;     (recursive formula)     *      *   where:     *     *    n           is the current picture     *     *    Bn          is the buffer fullness for the current picture     *     *    previous_Bn is the buffer fullness of the previous picture     *     *    (I*R )      is the bits accumulated during the current picture      *                period     *     *    d           is the number of bits removed during the decoding of the      *                previous picture     */    Bn = previous_Bn + (I*R) - d;    /* compute internally derived vbv_delay (rouding up with ceil()) */    internal_vbv_delay = (int) ceil((90000 * Bn / bit_rate));#ifdef DEBUG    printf("\nvbv_delay: internal=%d, bitstream=%d\n", internal_vbv_delay, vbv_delay);        printf("Bn=%f, prevBn=%f, I=%f, R=%f, d=%d\n", Bn, previous_Bn, I, R, d);    printf("frame(%d), pictstruct(%d), picttype(%d)\n", Sequence_Framenum,       picture_structure, picture_coding_type);    /* report error */    if(internal_vbv_delay != vbv_delay)    {      printf("WARNING: internal_vbv_delay(%d) != vbv_delay(%d)\n",        internal_vbv_delay, vbv_delay);    }#endif  } /* not the first coded picture of sequence */#ifdef PC  getch();#endif /* PC */    /* update generic tracking variables */  previous_bitstream_position = ld->Bitcnt ;  previous_vbv_delay          = vbv_delay;  previous_Bn                 = Bn;  /* reference picture: reordered/delayed output picture */  if(picture_coding_type!=B_TYPE)  {    previous_IorP_repeat_first_field = repeat_first_field;    previous_IorP_top_field_first    = top_field_first;    previous_IorP_picture_structure  = picture_structure;  }}/* variables to keep track of the occurance of redundant headers between pictures */void Clear_Verify_Headers(){  verify_sequence_header = 0;  verify_group_of_pictures_header = 0;  verify_picture_header = 0;  verify_slice_header = 0;  verify_sequence_extension = 0;  verify_sequence_display_extension = 0;  verify_quant_matrix_extension = 0;  verify_sequence_scalable_extension = 0;  verify_picture_display_extension = 0;  verify_picture_coding_extension = 0;  verify_picture_spatial_scalable_extension = 0;  verify_picture_temporal_scalable_extension = 0;  verify_copyright_extension = 0;}#endif /* VERIFY */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色狠狠综合天天综合综合| 91福利在线导航| 亚洲一区二区三区中文字幕在线| 日韩精品资源二区在线| 色综合中文字幕国产 | 国产日韩欧美一区二区三区乱码| 91久久精品日日躁夜夜躁欧美| 国产自产高清不卡| 五月综合激情婷婷六月色窝| 中文字幕在线一区免费| 精品国产制服丝袜高跟| 欧美日韩国产欧美日美国产精品| 波波电影院一区二区三区| 久久成人18免费观看| 五月激情综合网| 亚洲欧美一区二区不卡| 国产亚洲人成网站| 日韩女优av电影| 69堂国产成人免费视频| 欧美在线视频你懂得| 91原创在线视频| 成人一二三区视频| 国产一区二区三区最好精华液| 丝袜亚洲另类欧美| 亚洲第一综合色| 国产精品国产精品国产专区不蜜| 久久综合九色综合欧美亚洲| 日韩一级视频免费观看在线| 欧美区视频在线观看| 99久久国产综合精品色伊| 国产成人精品免费一区二区| 精品一区中文字幕| 美女网站在线免费欧美精品| 日韩和的一区二区| 一区二区三区.www| 亚洲乱码国产乱码精品精98午夜 | 日韩一区有码在线| 欧美韩日一区二区三区四区| 国产视频在线观看一区二区三区 | 波多野结衣精品在线| 国产精品中文字幕日韩精品| 国产精品一二三| 岛国精品在线观看| 波多野结衣中文一区| 国产成人av影院| 波波电影院一区二区三区| 色综合久久88色综合天天6| 色综合一区二区三区| 91久久精品日日躁夜夜躁欧美| 欧美亚洲综合在线| 91精品国产综合久久精品app| 欧美日本一区二区在线观看| 91精品免费在线| 欧美不卡一区二区| 欧美国产一区二区| 亚洲精品视频观看| 首页综合国产亚洲丝袜| 精品一区二区三区免费观看| 粉嫩高潮美女一区二区三区| 99久久精品免费看国产 | 国产色爱av资源综合区| 中文字幕+乱码+中文字幕一区| 18成人在线视频| 婷婷开心久久网| 精品综合免费视频观看| www.亚洲在线| 欧美高清激情brazzers| 久久蜜桃av一区精品变态类天堂 | **欧美大码日韩| 午夜视频在线观看一区二区三区| 免费三级欧美电影| 国产.欧美.日韩| 欧美性感一类影片在线播放| 日韩精品一区二区三区中文精品 | 亚洲成a人片在线观看中文| 日韩av网站在线观看| 成人免费毛片片v| 欧美三片在线视频观看| 久久在线观看免费| 亚洲免费资源在线播放| 日本麻豆一区二区三区视频| 成人在线视频一区| 欧美人伦禁忌dvd放荡欲情| 久久亚洲一级片| 一区二区三区美女视频| 久久精品国产亚洲高清剧情介绍| 99综合影院在线| 日韩你懂的在线播放| 亚洲欧美一区二区三区孕妇| 久久精品国产在热久久| 91国在线观看| 久久精品一区二区三区不卡 | 亚洲欧美日韩在线| 九九视频精品免费| 韩国女主播一区| 欧美色图免费看| 国产精品五月天| 亚洲电影一级片| 国产成人精品一区二| 欧美一区二区久久久| 一区二区三区日韩精品视频| 国产宾馆实践打屁股91| 91精品国产麻豆| 亚洲午夜视频在线观看| 成人av电影在线播放| 精品久久五月天| 亚洲国产精品久久久久婷婷884| 国产激情视频一区二区在线观看 | 欧美一卡二卡在线观看| 伊人色综合久久天天| 成人免费毛片片v| 精品av久久707| 日韩av不卡在线观看| 欧美午夜免费电影| 亚洲人成在线观看一区二区| 国产91富婆露脸刺激对白| 精品久久久久久久久久久久包黑料| 亚洲大片在线观看| 色天使久久综合网天天| 国产精品无遮挡| 国产a视频精品免费观看| 精品国产乱码久久久久久夜甘婷婷| 丝袜美腿一区二区三区| 在线成人高清不卡| 五月天亚洲精品| 欧美日韩久久不卡| 亚洲高清免费一级二级三级| 欧美最猛黑人xxxxx猛交| 亚洲少妇屁股交4| 99久久er热在这里只有精品66| 亚洲国产经典视频| 福利一区二区在线| 国产精品三级av| 99久久精品一区| 亚洲色大成网站www久久九九| 97久久精品人人爽人人爽蜜臀| 国产精品激情偷乱一区二区∴| 粉嫩久久99精品久久久久久夜| 国产精品丝袜黑色高跟| www.av精品| 亚洲精品国产精品乱码不99| 一本一道久久a久久精品综合蜜臀| 亚洲日本在线看| 欧美综合久久久| 天涯成人国产亚洲精品一区av| 91精品国产综合久久精品性色| 麻豆精品一区二区av白丝在线| 欧美大度的电影原声| 国产精品白丝jk黑袜喷水| 国产精品欧美综合在线| 99re8在线精品视频免费播放| 亚洲激情六月丁香| 欧美日韩亚洲综合在线| 日本va欧美va精品| 午夜精品在线看| 欧美日本在线一区| 韩国理伦片一区二区三区在线播放| 国产亚洲一区二区在线观看| 99视频精品在线| 亚洲超碰97人人做人人爱| 欧美一区二区三区的| 国产一区二区三区久久久 | 欧美成人一区二区| 国产jizzjizz一区二区| 一区二区三区日韩在线观看| 欧美日韩成人一区| 国产麻豆9l精品三级站| 亚洲激情图片一区| 欧美成人一区二区| 99九九99九九九视频精品| 丝袜亚洲另类欧美综合| 国产日韩欧美一区二区三区乱码| 91黄色免费看| 国产裸体歌舞团一区二区| 亚洲图片另类小说| 日韩免费看的电影| 99国产精品国产精品毛片| 麻豆成人91精品二区三区| 国产精品丝袜一区| 91精品综合久久久久久| 岛国精品在线观看| 午夜成人免费视频| 国产精品情趣视频| 日韩视频在线永久播放| 91片在线免费观看| 韩国av一区二区三区在线观看| 一区二区三区在线观看视频| 精品欧美黑人一区二区三区| 欧美综合一区二区三区| 极品瑜伽女神91| 亚洲午夜激情av| 亚洲国产成人在线| 欧美一区二区视频免费观看| 99久久精品免费看国产免费软件| 久久精品国产99国产| 亚洲在线视频免费观看| 中文天堂在线一区| 日韩免费成人网| 欧美日韩精品一区视频| 91亚洲男人天堂|