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

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

?? header.c

?? 網(wǎng)絡(luò)MPEG4IP流媒體開發(fā)源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
/************************************************************************* COPYRIGHT AND WARRANTY INFORMATION** Copyright 2001, International Telecommunications Union, Geneva** DISCLAIMER OF WARRANTY** These software programs are available to the user without any* license fee or royalty on an "as is" basis. The ITU disclaims* any and all warranties, whether express, implied, or* statutory, including any implied warranties of merchantability* or of fitness for a particular purpose.  In no event shall the* contributor or the ITU 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 ITU does not represent or warrant that the programs furnished* hereunder are free of infringement of any third-party patents.* Commercial implementations of ITU-T Recommendations, including* shareware, may be subject to royalty fees to patent holders.* Information regarding the ITU-T patent policy is available from* the ITU Web site at http://www.itu.int.** THIS IS NOT A GRANT OF PATENT RIGHTS - SEE THE ITU-T PATENT POLICY.*************************************************************************//*! ************************************************************************************* * \file header.c * * \brief *    H.26L Slice, Picture, and Sequence headers * * \author *    Main contributors (see contributors.h for copyright, address and affiliation details) *      - Stephan Wenger                  <stewe@cs.tu-berlin.de> ************************************************************************************* */#include <math.h>#include <assert.h>#include <string.h>#include <stdlib.h>#include "elements.h"#include "header.h"#include "rtp.h"// A little trick to avoid those horrible #if TRACE all over the source code#if TRACE#define SYMTRACESTRING(s) strncpy(sym.tracestring,s,TRACESTRING_SIZE)#else#define SYMTRACESTRING(s) // to nothing#endif// Local Functionsstatic int PutSliceStartCode(Bitstream *s);static int PutPictureStartCode (Bitstream *s);static int PutStartCode (int Type, Bitstream *s, char *ts);// End local Functionsint PictureHeader(){// StW: PictureTypeSymbol is the Symbol used to encode the picture type.// This is one of the dirtiest hacks if have seen so far from people who// usually know what they are doing :-)// img->type has one of three possible values (I, P, B), the picture type as coded// distiguishes further by indicating whether one or more reference frames are// used for P and B frames (hence 5 values).  See decoder/defines.h// The mapping is performed in image.c select_picture_type()  int dP_nr = assignSE2partition[input->partition_mode][SE_HEADER];  Bitstream *currStream = ((img->currentSlice)->partArr[dP_nr]).bitstream;  DataPartition *partition = &((img->currentSlice)->partArr[dP_nr]);  SyntaxElement sym;  int len = 0;  sym.type = SE_HEADER;       // This will be true for all symbols generated here  sym.mapping = n_linfo2;       // Mapping rule: Simple code number to len/info  // Ok.  We are sure we want to code a Picture Header.  So, first: Put PSC  len+=PutPictureStartCode (currStream);  // Now, take care of te UVLC coded data structure described in VCEG-M79  sym.value1 = 0;               // TRType = 0  SYMTRACESTRING("PH TemporalReferenceType");  len += writeSyntaxElement_UVLC (&sym, partition);  sym.value1 = img->tr%256;         // TR, variable length  SYMTRACESTRING("PH TemporalReference");  len += writeSyntaxElement_UVLC (&sym, partition);  // Size information.  If the picture is Intra, then transmit the size in MBs,  // For all other picture type just indicate that it didn't change.  // Note: this is currently the prudent way to do things, because we do not  // have anything similar to Annex P of H.263.  However, we should anticipate  // taht one day we may want to have an Annex P type functionality.  Hence, it is  // unwise to assume that P pictures will never have a size indiciation.  So the  // one bit for an "unchanged" inidication is well spent.  if (img->type == INTRA_IMG)  {    // Double check that width and height are divisible by 16    assert (img->width  % 16 == 0);    assert (img->height % 16 == 0);    sym.value1 = 1;             // SizeType = Width/Height in MBs    SYMTRACESTRING("PH FullSizeInformation");    len += writeSyntaxElement_UVLC (&sym, partition);    sym.value1 = img->width / 16;    SYMTRACESTRING("PH FullSize-X");    len += writeSyntaxElement_UVLC (&sym, partition);    sym.value1 = img->height / 16;    SYMTRACESTRING("PH FullSize-Y");    len += writeSyntaxElement_UVLC (&sym, partition);  } else  {    // Not an intra frame -> write "unchanged"    sym.value1 = 0;             // SizeType = Unchanged    SYMTRACESTRING("PHSizeUnchanged");    len += writeSyntaxElement_UVLC (&sym, partition);  }  select_picture_type (&sym);  SYMTRACESTRING("Hacked Picture Type Symbol");  len+= writeSyntaxElement_UVLC (&sym, partition);  // Finally, write Reference Picture ID   // WYK: Oct. 16, 2001. Now I use this for the reference frame ID (non-B frame ID).   // If current frame is a B-frame, it will not change; otherwise it is increased by 1 based  // on refPicID of the previous frame. Thus, the decoder can know how many  non-B   // frames are lost, and then can adjust the reference frame buffers correctly.  if (1)  {    sym.value1 = img->refPicID%16;         // refPicID, variable length    SYMTRACESTRING("PHRefPicID");    len += writeSyntaxElement_UVLC (&sym, partition);  }  return len;}int SliceHeader(int UseStartCode){  int dP_nr = assignSE2partition[input->partition_mode][SE_HEADER];  Bitstream *currStream = ((img->currentSlice)->partArr[dP_nr]).bitstream;  DataPartition *partition = &((img->currentSlice)->partArr[dP_nr]);  SyntaxElement sym;  int len = 0;  int Quant = img->qp;          // Hack.  This should be a parameter as soon as Gisle is done  int MBPosition = img->current_mb_nr;  // Hack.  This should be a paremeter as well.  sym.type = SE_HEADER;       // This will be true for all symbols generated here  sym.mapping = n_linfo2;       // Mapping rule: Simple code number to len/info  // Note 1.  Current implementation: Slice start code is similar to pictrure start code  // (info is 1 for slice and 0 for picture start code).  Slice Start code is not  // present except when generating an UVLC file.  Start codes are typical NAL  // functionality, and hence NALs will take care the issue in the future.  // Note 2:  Traditionally, the QP is a bit mask.  However, at numerically large QPs  // we usually have high compression and don't want to waste bits, whereas  // at low QPs this is not as much an issue.  Hence, the QUANT parameter  // is coded as a UVLC calculated as 31 - QUANT.  That is, the UVLC representation  // of 31-QUANT is coded, instead of QUANT.  // Note 3:  In addition to the fields in VCEG-M79 there is one additional header field  // with the MV resolution.  Currently defined values:  // 0 == 1/4th pel resolution (old default)  // 1 == 1/8th pel resolution  // ... could be enhanced straightforward, it may make sense to define  // 2 == 1/2 pel resolution  // 3 == full pel resolution  if (UseStartCode)  {    // Input mode 0, File Format, and not Picture Start (first slice in picture)    // This is the only case where a slice start code makes sense    //    // Putting a Slice Start Code is the same like the picture start code.  It's    // n ot as straightforward as one thinks,  See remarks above.    len += PutSliceStartCode(currStream);  };  // Now we have coded the Pciture header when appropriate, and the slice header when  // appropriate.  Follow with the content of the slice header: GOB address of the slice  // start and (initial) QP.  For the QP see remarks above.  For the GOB address, use  // straigtforward procedure.  Note that this allows slices to start at MB addresses  // up to 2^15 MBs due ot start code emulation problems.  This should be enough for  // most practical applications,. but probably not for cinema.  Has to be discussed.  // For the MPEG tests this is irrelevant, because there the rule will be one silce--  // one picture.  // Put MB-Adresse  assert (MBPosition < (1<<15));  SYMTRACESTRING("SH FirstMBInSlice");  sym.value1 = MBPosition;  len += writeSyntaxElement_UVLC (&sym, partition);  // Put Quant.  It's a bit irrationale that we still put the same quant here, but it's  // a good provision for the future.  In real-world applications slices typically  // start with Intra information, and Intra MBs will likely use a different quant  // than Inter  SYMTRACESTRING("SH SliceQuant");  sym.value1 = 31 - Quant;  len += writeSyntaxElement_UVLC (&sym, partition);  if (img->types==SP_IMG)  {    SYMTRACESTRING("SH SP SliceQuant");    sym.value1 = 31 - img->qpsp;    len += writeSyntaxElement_UVLC (&sym, partition);  }  // Put the Motion Vector resolution as per reflector consensus  SYMTRACESTRING("SH MVResolution");  sym.value1 = input->mv_res;  len += writeSyntaxElement_UVLC (&sym, partition);  return len;}int SequenceHeader (FILE *outf){  int LenInBytes = 0;  int HeaderInfo;         // Binary coded Headerinfo to be written in file  int ProfileLevelVersionHash;  // Handle the RTP case  if (input->of_mode == PAR_OF_RTP)  {    if ((LenInBytes = RTPSequenceHeader (outf)) < 0)    {      snprintf (errortext, ET_SIZE, "SequenceHeaqder(): Problems writing the RTP Parameter Packet");      error (errortext, 600);      return -1;    }    else      return LenInBytes*8;  }  // Non RTP-type file formats follow  switch (input->SequenceHeaderType)  {  case 0:    // No SequenceHeader, do nothing

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人永久免费视频| 色综合久久久久久久久久久| 欧美日本一区二区三区| 一个色综合网站| 91福利精品视频| 一区二区三区中文在线观看| 91视频xxxx| 亚洲乱码日产精品bd| 色综合天天做天天爱| 一区二区三区四区乱视频| 日本精品视频一区二区| 亚洲综合久久久| 欧美日韩黄色一区二区| 日本视频中文字幕一区二区三区| 欧美日韩夫妻久久| 日韩高清不卡一区| 日韩丝袜情趣美女图片| 蜜桃传媒麻豆第一区在线观看| 欧美电影免费观看高清完整版| 六月婷婷色综合| 久久久久综合网| 成人性生交大合| 日韩一区在线免费观看| 色婷婷av久久久久久久| 五月婷婷综合激情| 日韩欧美视频一区| 国产精品白丝av| 国产精品美女久久久久久2018| 97se亚洲国产综合在线| 亚洲自拍另类综合| 日韩欧美一区二区视频| 国产福利一区二区三区视频在线| 中文av一区二区| 91成人免费电影| 日韩精品一二三| 久久免费的精品国产v∧| 国产不卡在线播放| 亚洲欧美激情小说另类| 欧美日韩国产综合久久| 久久福利资源站| 国产精品久久777777| 欧美最猛性xxxxx直播| 热久久国产精品| 国产欧美综合在线观看第十页| 91亚洲国产成人精品一区二三 | 欧美tk—视频vk| 国产传媒一区在线| 亚洲免费在线观看| 91麻豆精品国产自产在线观看一区 | 欧美激情一二三区| 91成人网在线| 久久疯狂做爰流白浆xx| 中文字幕二三区不卡| 欧美午夜一区二区| 国产一区二区精品久久| 亚洲免费高清视频在线| 欧美一区二区人人喊爽| 国产精品亚洲视频| 亚洲高清视频在线| 久久久综合视频| 日本精品视频一区二区| 久久99精品国产.久久久久久| 亚洲日本在线a| 欧美成人a在线| 一本到不卡免费一区二区| 日本不卡一区二区| 国产精品成人一区二区三区夜夜夜 | www.在线成人| 男女性色大片免费观看一区二区 | 欧美精品黑人性xxxx| 国产黄色成人av| 香蕉久久夜色精品国产使用方法| 久久精品欧美一区二区三区不卡| 欧美三级电影精品| 国产成人免费9x9x人网站视频| 亚洲午夜精品17c| 国产日韩精品一区| 91精品国产欧美一区二区| www.成人网.com| 韩国av一区二区三区四区| 亚洲一区二区成人在线观看| 国产欧美视频一区二区| 欧美一区二区视频在线观看2020 | 国产自产2019最新不卡| 亚洲国产日产av| 国产精品私房写真福利视频| 91精品婷婷国产综合久久竹菊| 99在线精品免费| 国产精品综合一区二区三区| 首页亚洲欧美制服丝腿| 日韩毛片在线免费观看| 久久久精品欧美丰满| 欧美一区二区三区在线视频| 欧美主播一区二区三区美女| 国产白丝网站精品污在线入口| 蜜臀av性久久久久蜜臀av麻豆| 亚洲美女淫视频| 中文字幕精品三区| 五月综合激情网| 一区二区三区在线视频播放| 欧美国产视频在线| 久久毛片高清国产| 欧美大片日本大片免费观看| 欧美日韩一区二区三区视频 | 成人av网址在线| 国产在线视频一区二区三区| 日韩成人dvd| 午夜精品久久久久久久久久久| 亚洲色图欧美偷拍| 国产精品国产馆在线真实露脸 | 免费av成人在线| 亚洲成人激情自拍| 亚洲一二三四在线观看| 亚洲日韩欧美一区二区在线| 欧美国产一区在线| 国产欧美综合色| 国产精品网站在线观看| 久久精品人人做| 日本一区二区三区四区| 久久综合中文字幕| 2020国产精品| 久久综合五月天婷婷伊人| 精品福利一区二区三区| 精品福利av导航| 欧美xxxxx牲另类人与| 欧美电影免费观看完整版| 欧美不卡一二三| 精品国产精品网麻豆系列| 欧美成人艳星乳罩| 日韩欧美高清dvd碟片| 日韩欧美高清一区| 久久综合狠狠综合| 久久精品一区八戒影视| 中文字幕乱码一区二区免费| 国产精品欧美一区喷水| 国产精品天天看| 亚洲柠檬福利资源导航| 亚洲蜜臀av乱码久久精品| 亚洲一线二线三线久久久| 亚洲高清免费在线| 日日夜夜免费精品| 麻豆中文一区二区| 国内精品自线一区二区三区视频| 国产精选一区二区三区| 成人激情校园春色| 91网站视频在线观看| 在线日韩av片| 制服视频三区第一页精品| 日韩免费电影网站| 国产日产欧美一区| 亚洲乱码国产乱码精品精小说 | 亚洲视频图片小说| 一区二区三区国产精华| 亚洲成人av在线电影| 另类小说综合欧美亚洲| 国产又粗又猛又爽又黄91精品| 国产91综合网| 色八戒一区二区三区| 欧美高清www午色夜在线视频| 日韩欧美国产一区在线观看| 久久婷婷国产综合精品青草| 国产精品高潮呻吟久久| 亚洲青青青在线视频| 亚洲成人tv网| 国产精品一二三四| 91麻豆国产自产在线观看| 欧美日韩久久久| 精品国产91亚洲一区二区三区婷婷| 欧美国产日产图区| 亚洲6080在线| 国产黄色精品视频| 欧美在线视频全部完| 欧美成人女星排名| 中文字幕色av一区二区三区| 亚洲第一二三四区| 国产一区二区三区蝌蚪| 91麻豆成人久久精品二区三区| 欧美久久久久久久久中文字幕| 精品播放一区二区| 亚洲精品视频免费看| 免费人成网站在线观看欧美高清| 国产成人亚洲综合色影视| 欧美伊人久久久久久久久影院| 精品成a人在线观看| 一区二区三区四区五区视频在线观看 | 青青草原综合久久大伊人精品| 福利一区在线观看| 欧美日韩成人综合| 中文字幕精品一区二区精品绿巨人| 亚洲国产综合91精品麻豆| 国产高清成人在线| 777xxx欧美| 亚洲欧洲99久久| 久久99国产精品久久99果冻传媒| 99久久婷婷国产综合精品| 欧美一区二区三级| 亚洲另类春色国产| 国产精品亚洲一区二区三区妖精| 精品视频1区2区| 国产精品久久久久久久久免费丝袜 |