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

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

?? rtp.c

?? 一個簡單的視頻會議VC++MFC工程文件
?? C
?? 第 1 頁 / 共 2 頁
字號:
 ********************************************************************************************
 * \brief 
 *    Closes the output file for the RTP packet stream
 *
 * \return
 *    none.  Function terminates the program in case of an error
 *
 ********************************************************************************************
*/

void CloseRTPFile ()
{
  fclose(f);
}








#if 0
/*!
 *****************************************************************************
 *
 * \brief 
 *    int aggregationRTPWriteBits (int marker) write the Slice header for the RTP NAL      
 *
 * \return
 *    Number of bytes written to output file
 *
 * \param marker
 *    marker bit,
 *
 * \par Side effects
 *    Packet written, RTPSequenceNumber and RTPTimestamp updated
 *   
 * \date
 *    September 10, 2002
 *
 * \author
 *    Dong Tian   tian@cs.tut.fi
 *****************************************************************************/

int aggregationRTPWriteBits (int Marker, int PacketType, int subPacketType, void * bitstream, 
                    int BitStreamLenInByte, FILE *out)
{
  RTPpacket_t *p;
  int offset;

//  printf( "writing aggregation packet...\n");
  assert (out != NULL);
  assert (BitStreamLenInByte < 65000);
  assert (bitstream != NULL);
  assert ((PacketType&0xf) == 4);

  // Set RTP structure elements and alloca() memory foor the buffers
  p = (RTPpacket_t *) alloca (sizeof (RTPpacket_t));
  p->packet=alloca (MAXRTPPACKETSIZE);
  p->payload=alloca (MAXRTPPACKETSIZE);
  p->v=2;
  p->p=0;
  p->x=0;
  p->cc=0;
  p->m=Marker&1;
  p->pt=H26LPAYLOADTYPE;
  p->seq=CurrentRTPSequenceNumber++;
  p->timestamp=CurrentRTPTimestamp;
  p->ssrc=H26LSSRC;

  offset = 0;
  p->payload[offset++] = PacketType; // This is the first byte of the compound packet

  // FIRST, write the sei message to aggregation packet, if it is available
  if ( HaveAggregationSEI() )
  {
    p->payload[offset++] = sei_message[AGGREGATION_SEI].subPacketType; // this is the first byte of the first subpacket
    *(short*)&(p->payload[offset]) = sei_message[AGGREGATION_SEI].payloadSize;
    offset += 2;
    memcpy (&p->payload[offset], sei_message[AGGREGATION_SEI].data, sei_message[AGGREGATION_SEI].payloadSize);
    offset += sei_message[AGGREGATION_SEI].payloadSize;

    clear_sei_message(AGGREGATION_SEI);
  }

  // SECOND, write other payload to the aggregation packet
  // to do ...

  // LAST, write the slice data to the aggregation packet
  p->payload[offset++] = subPacketType;  // this is the first byte of the second subpacket
  *(short*)&(p->payload[offset]) = BitStreamLenInByte;
  offset += 2;
  memcpy (&p->payload[offset], bitstream, BitStreamLenInByte);
  offset += BitStreamLenInByte;

  p->paylen = offset;  // 1 +3 +seiPayload.payloadSize +3 +BitStreamLenInByte

  // Now the payload is ready, we can ...
  // Generate complete RTP packet
  if (ComposeRTPPacket (p) < 0)
  {
    printf ("Cannot compose RTP packet, exit\n");
    exit (-1);
  }
  if (WriteRTPPacket (p, out) < 0)
  {
    printf ("Cannot write %d bytes of RTP packet to outfile, exit\n", p->packlen);
    exit (-1);
  }
  return (p->packlen);

}


/*!
 *****************************************************************************
 * \isAggregationPacket
 * \brief 
 *    Determine if current packet is normal packet or compound packet (aggregation
 *    packet)
 *
 * \return
 *    return TRUE, if it is compound packet.
 *    return FALSE, otherwise.
 *   
 * \date
 *    September 10, 2002
 *
 * \author
 *    Dong Tian   tian@cs.tut.fi
 *****************************************************************************/
Boolean isAggregationPacket()
{
  if (HaveAggregationSEI())
  {
    return TRUE;
  }
  // Until Sept 2002, the JM will produce aggregation packet only for some SEI messages

  return FALSE;
}

/*!
 *****************************************************************************
 * \PrepareAggregationSEIMessage
 * \brief 
 *    Prepare the aggregation sei message.
 *    
 * \date
 *    September 10, 2002
 *
 * \author
 *    Dong Tian   tian@cs.tut.fi
 *****************************************************************************/
void PrepareAggregationSEIMessage()
{
  Boolean has_aggregation_sei_message = FALSE;
  // prepare the sei message here
  // write the spare picture sei payload to the aggregation sei message
  if (seiHasSparePicture && img->type != B_SLICE)
  {
    FinalizeSpareMBMap();
    assert(seiSparePicturePayload.data->byte_pos == seiSparePicturePayload.payloadSize);
    write_sei_message(AGGREGATION_SEI, seiSparePicturePayload.data->streamBuffer, seiSparePicturePayload.payloadSize, SEI_SPARE_PICTURE);
    has_aggregation_sei_message = TRUE;
  }
  // write the sub sequence information sei paylaod to the aggregation sei message
  if (seiHasSubseqInfo)
  {
    FinalizeSubseqInfo(img->layer);
    write_sei_message(AGGREGATION_SEI, seiSubseqInfo[img->layer].data->streamBuffer, seiSubseqInfo[img->layer].payloadSize, SEI_SUBSEQ_INFORMATION);
    ClearSubseqInfoPayload(img->layer);
    has_aggregation_sei_message = TRUE;
  }
  // write the sub sequence layer information sei paylaod to the aggregation sei message
  if (seiHasSubseqLayerInfo && img->number == 0)
  {
    FinalizeSubseqLayerInfo();
    write_sei_message(AGGREGATION_SEI, seiSubseqLayerInfo.data, seiSubseqLayerInfo.payloadSize, SEI_SUBSEQ_LAYER_CHARACTERISTICS);
    seiHasSubseqLayerInfo = FALSE;
    has_aggregation_sei_message = TRUE;
  }
  // write the sub sequence characteristics payload to the aggregation sei message
  if (seiHasSubseqChar)
  {
    FinalizeSubseqChar();
    write_sei_message(AGGREGATION_SEI, seiSubseqChar.data->streamBuffer, seiSubseqChar.payloadSize, SEI_SUBSEQ_CHARACTERISTICS);
    ClearSubseqCharPayload();
    has_aggregation_sei_message = TRUE;
  }
  // write the pan scan rectangle info sei playload to the aggregation sei message
  if (seiHasPanScanRectInfo)
  {
    FinalizePanScanRectInfo();
    write_sei_message(AGGREGATION_SEI, seiPanScanRectInfo.data->streamBuffer, seiPanScanRectInfo.payloadSize, SEI_PANSCAN_RECT);
    ClearPanScanRectInfoPayload();
    has_aggregation_sei_message = TRUE;
  }
  // write the arbitrary (unregistered) info sei playload to the aggregation sei message
  if (seiHasUser_data_unregistered_info)
  {
    FinalizeUser_data_unregistered();
    write_sei_message(AGGREGATION_SEI, seiUser_data_unregistered.data->streamBuffer, seiUser_data_unregistered.payloadSize, SEI_USER_DATA_UNREGISTERED);
    ClearUser_data_unregistered();
    has_aggregation_sei_message = TRUE;
  }
  // write the arbitrary (unregistered) info sei playload to the aggregation sei message
  if (seiHasUser_data_registered_itu_t_t35_info)
  {
    FinalizeUser_data_registered_itu_t_t35();
    write_sei_message(AGGREGATION_SEI, seiUser_data_registered_itu_t_t35.data->streamBuffer, seiUser_data_registered_itu_t_t35.payloadSize, SEI_USER_DATA_REGISTERED_ITU_T_T35);
    ClearUser_data_registered_itu_t_t35();
    has_aggregation_sei_message = TRUE;
  }
  //write RandomAccess info sei payload to the aggregation sei message
  if (seiHasRandomAccess_info)
  {
    FinalizeRandomAccess();
    write_sei_message(AGGREGATION_SEI, seiRandomAccess.data->streamBuffer, seiRandomAccess.payloadSize, SEI_RANDOM_ACCESS_POINT);
    ClearRandomAccess();
    has_aggregation_sei_message = TRUE;
  }
  // more aggregation sei payload is written here...

  // JVT-D099 write the scene information SEI payload
  if (seiHasSceneInformation)
  {
    FinalizeSceneInformation();
    write_sei_message(AGGREGATION_SEI, seiSceneInformation.data->streamBuffer, seiSceneInformation.payloadSize, SEI_SCENE_INFORMATION);
    has_aggregation_sei_message = TRUE;
  }
  // End JVT-D099

  // after all the sei payload is written
  if (has_aggregation_sei_message)
    finalize_sei_message(AGGREGATION_SEI);
}

/*!
 *****************************************************************************
 * \begin_sub_sequence_rtp
 * \brief 
 *    do some initialization for sub-sequence under rtp
 *    
 * \date
 *    September 10, 2002
 *
 * \author
 *    Dong Tian   tian@cs.tut.fi
 *****************************************************************************/

void begin_sub_sequence_rtp()
{
  if ( input->of_mode != PAR_OF_RTP || input->NumFramesInELSubSeq == 0 ) 
    return;

  // begin to encode the base layer subseq
  if ( IMG_NUMBER == 0 )
  {
//    printf("begin to encode the base layer subseq\n");
    InitSubseqInfo(0);
    if (1)
      UpdateSubseqChar();
  }
  // begin to encode the enhanced layer subseq
  if ( IMG_NUMBER % (input->NumFramesInELSubSeq+1) == 1 )
  {
//    printf("begin to encode the enhanced layer subseq\n");
    InitSubseqInfo(1);  // init the sub-sequence in the enhanced layer
//    add_dependent_subseq(1);
    if (1)
      UpdateSubseqChar();
  }
}

/*!
 *****************************************************************************
 * \end_sub_sequence_rtp
 * \brief 
 *    do nothing
 *    
 * \date
 *    September 10, 2002
 *
 * \author
 *    Dong Tian   tian@cs.tut.fi
 *****************************************************************************/
void end_sub_sequence_rtp()
{
  // end of the base layer:
  if ( img->number == input->no_frames-1 )
  {
//    printf("end of encoding the base layer subseq\n");
    CloseSubseqInfo(0);
//    updateSubSequenceBox(0);
  }
  // end of the enhanced layer:
  if ( ((IMG_NUMBER%(input->NumFramesInELSubSeq+1)==0) && (input->successive_Bframe != 0) && (IMG_NUMBER>0)) || // there are B frames
    ((IMG_NUMBER%(input->NumFramesInELSubSeq+1)==input->NumFramesInELSubSeq) && (input->successive_Bframe==0))   // there are no B frames
    )
  {
//    printf("end of encoding the enhanced layer subseq\n");
    CloseSubseqInfo(1);
//    add_dependent_subseq(1);
//    updateSubSequenceBox(1);
  }
}

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产嫩草影院久久久久| 狠狠色丁香久久婷婷综| 粉嫩高潮美女一区二区三区| 91看片淫黄大片一级在线观看| 3d成人h动漫网站入口| 国产精品色在线| 老司机精品视频线观看86 | 日韩一区中文字幕| 日韩精品视频网站| 欧美亚洲综合在线| 亚洲视频中文字幕| 成人午夜视频网站| 国产视频一区二区在线| 精品一区二区久久久| 欧美高清视频www夜色资源网| 国产欧美日韩激情| 国产激情视频一区二区在线观看| 日韩精品一区二区三区swag| 午夜电影一区二区| 欧美日韩综合在线| 亚洲成人av一区| 欧美在线观看视频一区二区三区| 自拍偷拍亚洲综合| 成人av网址在线| 中文字幕精品一区二区精品绿巨人 | 日韩影院精彩在线| 欧美美女直播网站| 亚洲午夜免费视频| 欧美影院一区二区三区| 亚洲精品高清视频在线观看| 91亚洲精华国产精华精华液| 日韩理论片在线| 成人av中文字幕| 亚洲视频免费在线观看| 日本韩国欧美国产| 亚洲va在线va天堂| 欧美高清你懂得| 国产福利一区二区三区视频在线| 亚洲精品一区二区精华| 高清shemale亚洲人妖| 国产精品久久久久久久久图文区 | 国产美女一区二区三区| 中文字幕乱码日本亚洲一区二区| 成人午夜视频在线观看| 亚洲乱码国产乱码精品精小说 | 亚洲已满18点击进入久久| 欧美三级电影在线看| 蜜桃视频一区二区三区在线观看 | 福利一区在线观看| 亚洲免费av网站| 欧美一区二区三区男人的天堂 | 午夜电影一区二区| 精品免费视频.| 波多野结衣91| 五月天欧美精品| 日韩精品专区在线| 波波电影院一区二区三区| 亚洲自拍偷拍欧美| 日韩一级免费观看| 成人精品视频一区二区三区| 亚洲综合激情小说| 久久综合久久综合亚洲| 色噜噜狠狠成人网p站| 极品少妇xxxx偷拍精品少妇| 亚洲人成影院在线观看| 日韩午夜激情av| 色综合中文综合网| 国产性做久久久久久| 91搞黄在线观看| 国产美女一区二区三区| 亚洲综合色成人| 久久蜜桃av一区二区天堂 | 国产精品成人一区二区艾草| 在线综合视频播放| 色综合天天综合网天天看片| 青青草一区二区三区| 中文字幕中文字幕中文字幕亚洲无线| 欧美人与性动xxxx| 国产xxx精品视频大全| 一区二区欧美国产| 国产女同性恋一区二区| 欧美一区二区黄色| 91久久人澡人人添人人爽欧美| 狠狠色丁香婷婷综合| 亚洲一区视频在线| 国产精品国产精品国产专区不蜜| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 亚洲h动漫在线| 中文字幕精品—区二区四季| 日韩欧美资源站| 欧美日韩激情一区二区三区| 色婷婷综合中文久久一本| 国产一区二区精品久久99| 美脚の诱脚舐め脚责91| 天天影视色香欲综合网老头| 亚洲欧美日韩在线| 成人免费一区二区三区视频| 国产午夜精品一区二区| 精品久久久久久久久久久久包黑料| 欧美三级日韩三级国产三级| 色婷婷av一区二区三区软件 | 国产一区二区h| 久久精品999| 精一区二区三区| 麻豆国产欧美日韩综合精品二区| 日韩中文字幕1| 水野朝阳av一区二区三区| 丝袜国产日韩另类美女| 日韩av不卡一区二区| 亚洲成人资源网| 亚洲成人午夜影院| 日一区二区三区| 麻豆91免费看| 久久91精品国产91久久小草 | 色欧美片视频在线观看 | 99久久99久久免费精品蜜臀| 成人激情图片网| 成人免费毛片高清视频| 99re热视频精品| 91久久线看在观草草青青| 91福利区一区二区三区| 欧美日韩综合一区| 精品久久久久香蕉网| 久久久亚洲欧洲日产国码αv| 国产亚洲精品福利| 亚洲免费在线观看| 亚洲国产日韩a在线播放性色| 五月激情综合婷婷| 国产精品18久久久久久vr| 岛国一区二区三区| 欧洲亚洲国产日韩| 日韩欧美中文字幕精品| 欧美国产在线观看| 一区二区三区免费| 另类小说图片综合网| 国产精品一色哟哟哟| 97国产一区二区| 日韩一区二区三区视频| 亚洲动漫第一页| 久久国产麻豆精品| 不卡一区在线观看| 欧美精品123区| 国产精品免费aⅴ片在线观看| 亚洲精品五月天| 麻豆91精品视频| 91日韩一区二区三区| 91精品国产一区二区三区蜜臀 | 婷婷亚洲久悠悠色悠在线播放| 欧美aaa在线| 91在线播放网址| 欧美久久一二三四区| 亚洲国产精品t66y| 日本麻豆一区二区三区视频| 成人精品高清在线| 日韩欧美一区二区久久婷婷| 综合网在线视频| 琪琪一区二区三区| 91在线看国产| 久久久久久久综合日本| 亚洲www啪成人一区二区麻豆| 春色校园综合激情亚洲| 3d动漫精品啪啪| 亚洲乱码国产乱码精品精可以看 | 国产欧美日韩不卡| 日韩精品免费专区| 91麻豆免费看| 欧美国产激情二区三区| 蜜臂av日日欢夜夜爽一区| 色哟哟国产精品免费观看| 久久精品欧美一区二区三区不卡 | 日韩手机在线导航| 亚洲精品成人少妇| www.日韩在线| 久久久无码精品亚洲日韩按摩| 午夜电影网一区| 欧美在线视频你懂得| 国产精品欧美一区喷水| 国产自产高清不卡| 日韩欧美成人午夜| 日韩制服丝袜先锋影音| 欧美日韩高清一区| 国产精品久久久久久久久快鸭| 国产精品996| 久久久蜜臀国产一区二区| 老汉av免费一区二区三区| 91精品在线观看入口| 午夜影院久久久| 欧美日本一区二区在线观看| 亚洲精品乱码久久久久久| 99视频精品在线| 综合久久给合久久狠狠狠97色| 成人一级黄色片| 久久久99精品免费观看不卡| 国产一区视频网站| 久久人人超碰精品| 国产成人av一区二区| 国产欧美日韩另类视频免费观看| 国产乱子轮精品视频| 久久综合久色欧美综合狠狠| 国产剧情av麻豆香蕉精品|