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

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

?? parset.c

?? h264標(biāo)準(zhǔn)的VC實(shí)現(xiàn)
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
  len+=u_1  ("SPS: frame_cropping_flag",                      sps->frame_cropping_flag,                       partition);
  if (sps->frame_cropping_flag)
  {
    len+=ue_v ("SPS: frame_cropping_rect_left_offset",          sps->frame_cropping_rect_left_offset,           partition);
    len+=ue_v ("SPS: frame_cropping_rect_right_offset",         sps->frame_cropping_rect_right_offset,          partition);
    len+=ue_v ("SPS: frame_cropping_rect_top_offset",           sps->frame_cropping_rect_top_offset,            partition);
    len+=ue_v ("SPS: frame_cropping_rect_bottom_offset",        sps->frame_cropping_rect_bottom_offset,         partition);
  }

  len+=u_1  ("SPS: vui_parameters_present_flag",             sps->vui_parameters_present_flag,               partition);
  if (sps->vui_parameters_present_flag)
    len+=GenerateVUISequenceParameters(partition);    // currently a dummy, asserting

  SODBtoRBSP(partition->bitstream);     // copies the last couple of bits into the byte buffer
  
  LenInBytes=partition->bitstream->byte_pos;

  free (partition->bitstream);
  free (partition);
  
  return LenInBytes;
}


/*! 
 *************************************************************************************
 * \brief
 *    int GeneratePic_parameter_set_rbsp (pic_parameter_set_rbsp_t *sps, char *rbsp);
 *
 * \param pps
 *    picture parameter structure
 * \param rbsp
 *    buffer to be filled with the rbsp, size should be at least MAXIMUMPARSETRBSPSIZE
 *
 * \return
 *    size of the RBSP in bytes, negative in case of an error
 *
 * \note
 *    Picture Parameter VUI function is called, but the function implements
 *    an exit (-1)
 *************************************************************************************
 */
 
int GeneratePic_parameter_set_rbsp (pic_parameter_set_rbsp_t *pps, char *rbsp)
{
  DataPartition *partition;
  int len = 0, LenInBytes;
  unsigned i;
  unsigned NumberBitsPerSliceGroupId;
  int profile_idc;

  assert (rbsp != NULL);

  // In order to use the entropy coding functions from golomb.c we need 
  // to allocate a partition structure.  It will be freed later in this
  // function
  if ((partition=calloc(1,sizeof(DataPartition)))==NULL) no_mem_exit("PicParameterSet:partition");
  if ((partition->bitstream=calloc(1, sizeof(Bitstream)))==NULL) no_mem_exit("PicParameterSet:bitstream");
  // .. and use the rbsp provided (or allocated above) for the data
  partition->bitstream->streamBuffer = rbsp;
  partition->bitstream->bits_to_go = 8;
  //sw paff
  pps->pic_order_present_flag = img->pic_order_present_flag;

  len+=ue_v ("PPS: pic_parameter_set_id",                    pps->pic_parameter_set_id,                      partition);
  len+=ue_v ("PPS: seq_parameter_set_id",                    pps->seq_parameter_set_id,                      partition);
  len+=u_1  ("PPS: entropy_coding_mode_flag",                pps->entropy_coding_mode_flag,                  partition);
  len+=u_1  ("PPS: pic_order_present_flag",                  pps->pic_order_present_flag,                    partition);
  len+=ue_v ("PPS: num_slice_groups_minus1",                 pps->num_slice_groups_minus1,                   partition);

  // FMO stuff
  if(pps->num_slice_groups_minus1 > 0 )
  {
    len+=ue_v ("PPS: slice_group_map_type",                 pps->slice_group_map_type,                   partition);
    if (pps->slice_group_map_type == 0)
      for (i=0; i<=pps->num_slice_groups_minus1; i++)
        len+=ue_v ("PPS: run_length_minus1[i]",                           pps->run_length_minus1[i],                             partition);
    else if (pps->slice_group_map_type==2)
      for (i=0; i<pps->num_slice_groups_minus1; i++)
      {

        len+=ue_v ("PPS: top_left[i]",                          pps->top_left[i],                           partition);
        len+=ue_v ("PPS: bottom_right[i]",                      pps->bottom_right[i],                       partition);
      }
    else if (pps->slice_group_map_type == 3 ||
             pps->slice_group_map_type == 4 ||
             pps->slice_group_map_type == 5) 
    {
      len+=u_1  ("PPS: slice_group_change_direction_flag",         pps->slice_group_change_direction_flag,         partition);
      len+=ue_v ("PPS: slice_group_change_rate_minus1",            pps->slice_group_change_rate_minus1,            partition);
    } 
    else if (pps->slice_group_map_type == 6)
    {
      if (pps->num_slice_groups_minus1>=4)
        NumberBitsPerSliceGroupId=3;
      else if (pps->num_slice_groups_minus1>=2)
        NumberBitsPerSliceGroupId=2;
      else if (pps->num_slice_groups_minus1>=1)
        NumberBitsPerSliceGroupId=1;
      else
        NumberBitsPerSliceGroupId=0;
        
      len+=ue_v ("PPS: pic_size_in_map_units_minus1",          pps->pic_size_in_map_units_minus1,             partition);
      for(i=0; i<=pps->pic_size_in_map_units_minus1; i++)
        len+= u_v  (NumberBitsPerSliceGroupId, "PPS: >slice_group_id[i]",                            pps->slice_group_id[i],                         partition);
    }
  }
  // End of FMO stuff

  len+=ue_v ("PPS: num_ref_idx_l0_active_minus1",             pps->num_ref_idx_l0_active_minus1,              partition);
  len+=ue_v ("PPS: num_ref_idx_l1_active_minus1",             pps->num_ref_idx_l1_active_minus1,              partition);
  len+=u_1  ("PPS: weighted_pred_flag",                       pps->weighted_pred_flag,                        partition);
  len+=u_v  (2, "PPS: weighted_bipred_idc",                   pps->weighted_bipred_idc,                       partition);
  len+=se_v ("PPS: pic_init_qp_minus26",                      pps->pic_init_qp_minus26,                       partition);
  len+=se_v ("PPS: pic_init_qs_minus26",                      pps->pic_init_qs_minus26,                       partition);

  profile_idc = IdentifyProfile();
  if((profile_idc==FREXT_HP) || 
     (profile_idc==FREXT_Hi10P) ||
     (profile_idc==FREXT_Hi422) ||
     (profile_idc==FREXT_Hi444))
    len+=se_v ("PPS: chroma_qp_index_offset",                 pps->cb_qp_index_offset,                        partition);
  else
    len+=se_v ("PPS: chroma_qp_index_offset",                 pps->chroma_qp_index_offset,                    partition);

  len+=u_1  ("PPS: deblocking_filter_control_present_flag",   pps->deblocking_filter_control_present_flag,    partition);
  len+=u_1  ("PPS: constrained_intra_pred_flag",              pps->constrained_intra_pred_flag,               partition);
  len+=u_1  ("PPS: redundant_pic_cnt_present_flag",           pps->redundant_pic_cnt_present_flag,            partition);

  // Fidelity Range Extensions stuff
  if((profile_idc==FREXT_HP) || 
     (profile_idc==FREXT_Hi10P) ||
     (profile_idc==FREXT_Hi422) ||
     (profile_idc==FREXT_Hi444))
  {
    len+=u_1  ("PPS: transform_8x8_mode_flag",                pps->transform_8x8_mode_flag,                   partition);
    
    len+=u_1  ("PPS: pic_scaling_matrix_present_flag",        pps->pic_scaling_matrix_present_flag,           partition);

    if(pps->pic_scaling_matrix_present_flag)
    {
      for(i=0; i<(6+((unsigned)pps->transform_8x8_mode_flag<<1)); i++)
      {
        len+=u_1  ("PPS: pic_scaling_list_present_flag",      pps->pic_scaling_list_present_flag[i],          partition);

        if(pps->pic_scaling_list_present_flag[i])
        {
          if(i<6)
            len+=Scaling_List(ScalingList4x4input[i], ScalingList4x4[i], 16, &UseDefaultScalingMatrix4x4Flag[i], partition);
          else
            len+=Scaling_List(ScalingList8x8input[i-6], ScalingList8x8[i-6], 64, &UseDefaultScalingMatrix8x8Flag[i-6], partition);
        }
      }
    }
    len+=se_v ("PPS: second_chroma_qp_index_offset",          pps->cr_qp_index_offset,                        partition);
  }

  SODBtoRBSP(partition->bitstream);     // copies the last couple of bits into the byte buffer
  
  LenInBytes=partition->bitstream->byte_pos;

  // Get rid of the helper structures
  free (partition->bitstream);
  free (partition);

  return LenInBytes;
}



/*! 
 *************************************************************************************
 * \brief
 *    Returns the Profile
 *
 * \return
 *    Profile according to Annex A
 *
 * \note
 *    Function is currently a dummy.  Should "calculate" the profile from those
 *    config file parameters.  E.g.
 *
 *    Profile = Baseline;
 *    if (CABAC Used || Interlace used) Profile=Main;
 *    if (!Cabac Used) && (Bframes | SPframes) Profile = Streaming;
 *
 *************************************************************************************
 */
int IdentifyProfile()
{
  return input->ProfileIDC;
};

/*! 
 *************************************************************************************
 * \brief
 *    Returns the Level
 *
 * \return
 *    Level according to Annex A
 *
 * \note
 *    This function is currently a dummy, but should calculate the level out of 
 *    the config file parameters (primarily the picture size)
 *************************************************************************************
 */
int IdentifyLevel()
{
  return input->LevelIDC;
};


/*! 
 *************************************************************************************
 * \brief
 *    Returns the number of reference frame buffers
 *
 * \return
 *    Number of reference frame buffers used
 *
 * \note
 *    This function currently maps to input->num_ref_frames.  With all this interlace
 *    stuff this may or may not be correct.  If you determine a problem with the
 *    memory management for Interlace, then this could be one possible problem.
 *    However, so far no problem have been determined by my limited testing of
 *    a stupid 1950's technology :-)  StW, 11/27/02
 *************************************************************************************
 */

int IdentifyNumRefFrames()
{
  if(input->num_ref_frames > 16)error("no ref frames too large",-100);
  
  return input->num_ref_frames;
}


/*! 
 *************************************************************************************
 * \brief
 *    Function body for VUI Parameter generation (to be done)
 *
 * \return
 *    exits with error message
 *************************************************************************************
 */
static int GenerateVUISequenceParameters(DataPartition *partition)
{
  int len=0;

  // special case to signal the RGB format
  if(input->rgb_input_flag && input->yuv_format==3)
  { 
    //still pretty much a dummy VUI
    printf ("test: writing Sequence Parameter VUI to signal RGB format\n");
    len+=u_1 ("VUI: aspect_ratio_info_present_flag", 0, partition);
    len+=u_1 ("VUI: overscan_info_present_flag", 0, partition);
    len+=u_1 ("VUI: video_signal_type_present_flag", 1, partition);
    len+=u_v (3, "VUI: video format", 2, partition);
    len+=u_1 ("VUI: video_full_range_flag", 1, partition);
    len+=u_1 ("VUI: color_description_present_flag", 1, partition);
    len+=u_v (8, "VUI: colour primaries", 2, partition);
    len+=u_v (8, "VUI: transfer characteristics", 2, partition);
    len+=u_v (8, "VUI: matrix coefficients", 0, partition);
    len+=u_1 ("VUI: chroma_loc_info_present_flag", 0, partition);
    len+=u_1 ("VUI: timing_info_present_flag", 0, partition);
    len+=u_1 ("VUI: nal_hrd_parameters_present_flag", 0, partition);
    len+=u_1 ("VUI: vcl_hrd_parameters_present_flag", 0, partition);
    len+=u_1 ("VUI: pic_struc_present_flag", 0, partition);
    len+=u_1 ("VUI: bitstream_restriction_flag", 0, partition);

    return len;
  }
  else 
  {
    printf ("Sequence Parameter VUI not yet implemented, this should never happen, exit\n");
    exit (-1);
  }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕欧美激情一区| 97精品国产露脸对白| 综合久久久久久| 久久久亚洲精华液精华液精华液 | 亚洲国产综合色| 一区二区三区在线观看网站| 国产欧美一区二区在线| 国产日韩欧美激情| 日本一区二区成人| 国产精品美女久久久久高潮| 国产精品高潮呻吟| 亚洲精品成人a在线观看| 亚洲午夜精品一区二区三区他趣| 亚洲一级在线观看| 美女免费视频一区二区| 久久99精品久久久久久久久久久久| 亚洲成av人片一区二区三区| 日本欧美肥老太交大片| 国产一区二区三区免费在线观看| 国产精品影视在线| 91免费在线播放| 欧美日韩在线播放一区| 欧美一卡2卡3卡4卡| 26uuu欧美| 亚洲精品国产无天堂网2021| 亚洲五码中文字幕| 久久99久久99小草精品免视看| 国产精品影视网| 欧美三级中文字| 337p粉嫩大胆噜噜噜噜噜91av| 综合久久给合久久狠狠狠97色 | 黑人巨大精品欧美黑白配亚洲| 狠狠色狠狠色综合系列| 91性感美女视频| 日韩免费观看2025年上映的电影| 久久看人人爽人人| 亚洲黄色av一区| 国产尤物一区二区在线| 精品电影一区二区| 国产精品系列在线| 亚洲成人av资源| 不卡视频在线看| 91麻豆精品91久久久久久清纯 | 亚洲成人一二三| 国产尤物一区二区| 欧美精品自拍偷拍| 亚洲欧洲av色图| 麻豆成人av在线| 欧美中文字幕一二三区视频| 久久久久一区二区三区四区| 亚洲一区影音先锋| 国产福利精品导航| 欧美一区二区视频在线观看| 日韩一区在线免费观看| 国产在线精品一区二区不卡了 | 国产亚洲精久久久久久| 亚洲国产精品一区二区www在线 | 美女国产一区二区三区| 一本色道亚洲精品aⅴ| 国产欧美日韩综合| 久久激情综合网| 678五月天丁香亚洲综合网| 亚洲另类中文字| 成人黄色av网站在线| 久久久精品免费观看| 精品一区二区三区在线观看| 欧美日本国产视频| 亚洲国产日韩一级| 欧美在线制服丝袜| 夜夜精品视频一区二区| 91免费观看在线| 亚洲欧美成aⅴ人在线观看| 成人av动漫在线| 中文字幕一区日韩精品欧美| 成人涩涩免费视频| 国产精品对白交换视频| 99久久99久久精品免费观看| 亚洲丝袜制服诱惑| 成人精品国产免费网站| 国产精品美女久久久久av爽李琼| 国产成人aaa| 中文字幕不卡在线观看| gogogo免费视频观看亚洲一| 中文字幕在线一区二区三区| 9l国产精品久久久久麻豆| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 美女国产一区二区三区| 日韩亚洲欧美在线| 激情五月激情综合网| 国产区在线观看成人精品 | 7777精品伊人久久久大香线蕉 | 不卡电影免费在线播放一区| 国产精品久久久久久久岛一牛影视 | 亚洲不卡在线观看| 717成人午夜免费福利电影| 久久av资源网| 国产精品久久久久一区| 在线视频观看一区| 免费观看一级欧美片| 国产拍揄自揄精品视频麻豆| 北条麻妃一区二区三区| 亚洲午夜在线视频| 久久亚洲综合色一区二区三区| 99精品国产视频| 偷拍自拍另类欧美| 久久精品夜夜夜夜久久| 91麻豆免费观看| 久久se这里有精品| 亚洲乱码国产乱码精品精小说 | 久久色中文字幕| 91在线一区二区| 日韩成人精品在线观看| 国产女同性恋一区二区| 91国内精品野花午夜精品| 久久er精品视频| 亚洲免费观看高清完整版在线观看| 7799精品视频| av电影在线观看不卡| 日韩av一区二区在线影视| 国产精品成人在线观看| 日韩视频免费观看高清完整版| 大桥未久av一区二区三区中文| 亚洲1区2区3区4区| 国产精品久久久久久亚洲伦| 宅男噜噜噜66一区二区66| 91在线免费视频观看| 久久国产福利国产秒拍| 亚洲精品午夜久久久| 久久久久97国产精华液好用吗| 欧美少妇bbb| 懂色av中文一区二区三区| 日韩电影在线观看一区| 一区二区三区在线播放| 国产亚洲综合av| 日韩欧美成人一区二区| 在线观看中文字幕不卡| av网站一区二区三区| 国产久卡久卡久卡久卡视频精品| 午夜影院久久久| 一区二区三区高清不卡| 亚洲视频在线一区| 国产欧美日韩在线看| 欧美刺激午夜性久久久久久久| 欧美日韩一二三区| 色视频成人在线观看免| 成人99免费视频| 成人av在线网| 成人禁用看黄a在线| 国产精品自在欧美一区| 国产美女娇喘av呻吟久久| 极品少妇xxxx偷拍精品少妇| 另类小说色综合网站| 免费欧美高清视频| 日韩国产精品久久久| 免费看日韩精品| 日韩精品成人一区二区三区| 亚洲成年人影院| 亚洲.国产.中文慕字在线| 一区二区三区蜜桃| 午夜成人免费视频| 日韩精品色哟哟| 美女视频第一区二区三区免费观看网站| 亚洲福利一区二区三区| 日韩和欧美一区二区| 久久99久国产精品黄毛片色诱| 久久av资源网| 国产电影精品久久禁18| 国产91精品欧美| 成人动漫av在线| 91视频国产观看| 欧美浪妇xxxx高跟鞋交| 日韩精品一区二区三区蜜臀 | 亚洲视频小说图片| 久久精品国产亚洲高清剧情介绍| 男女男精品视频网| 国产美女精品一区二区三区| a美女胸又www黄视频久久| 欧美在线三级电影| 欧美一区二区久久久| 久久久不卡网国产精品一区| 国产精品视频在线看| 一区二区三区产品免费精品久久75| 日韩精品亚洲一区二区三区免费| 国产乱人伦偷精品视频不卡| 99久久99久久精品免费观看| 欧美久久久久免费| 久久久久久9999| 亚洲一区视频在线| 久久不见久久见免费视频1| 99v久久综合狠狠综合久久| 7799精品视频| 中文字幕日韩精品一区| 日韩av网站在线观看| 不卡电影一区二区三区| 欧美一区二区三区免费在线看| 国产精品久久免费看| 青青草原综合久久大伊人精品| hitomi一区二区三区精品| 精品国产电影一区二区| 亚洲在线成人精品|