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

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

?? configfile.c

?? 一個簡單的視頻會議VC++MFC工程文件
?? C
?? 第 1 頁 / 共 3 頁
字號:
  {
    if (input->img_height % 2 != 0)
    {
      error ("even number of lines required for interlaced coding", 500);
    }
    if (input->img_height % 32 != 0)
    {
      img->auto_crop_bottom = 32-(input->img_height % 32);
    }
    else
    {
      img->auto_crop_bottom=0;
    }
  }
  else
  {
    if (input->img_height % 16 != 0)
    {
      img->auto_crop_bottom = 16-(input->img_height % 16);
    }
    else
    {
      img->auto_crop_bottom=0;
    }
  }
  if (img->auto_crop_bottom || img->auto_crop_right)
  {
    printf ("Warning: Automatical cropping activated: Coded frame Size: %dx%d\n", input->img_width+img->auto_crop_right, input->img_height+img->auto_crop_bottom);
  }

  /*
  // add check for MAXSLICEGROUPIDS
  if(input->num_slice_groups_minus1>=MAXSLICEGROUPIDS)
  {
    snprintf(errortext, ET_SIZE, "num_slice_groups_minus1 exceeds MAXSLICEGROUPIDS");
    error (errortext, 500);
  }
  */

  // Following codes are to read slice group configuration from SliceGroupConfigFileName for slice group type 0,2 or 6
  if( (input->num_slice_groups_minus1!=0)&&
    ((input->slice_group_map_type == 0) || (input->slice_group_map_type == 2) || (input->slice_group_map_type == 6)) )
  { 
    if (strlen (input->SliceGroupConfigFileName) > 0 && (sgfile=fopen(input->SliceGroupConfigFileName,"r"))==NULL)
    {
      snprintf(errortext, ET_SIZE, "Error open file %s", input->SliceGroupConfigFileName);
      error (errortext, 500);
    }
    else
    {
      if (input->slice_group_map_type == 0) 
      {
        input->run_length_minus1=(int *)malloc(sizeof(int)*(input->num_slice_groups_minus1+1));
        if (NULL==input->run_length_minus1) 
          no_mem_exit("PatchInp: input->run_length_minus1");
        
        // each line contains one 'run_length_minus1' value
        for(i=0;i<=input->num_slice_groups_minus1;i++)
        {
          fscanf(sgfile,"%d",(input->run_length_minus1+i));
          fscanf(sgfile,"%*[^\n]");
          
        }
      }
      else if (input->slice_group_map_type == 2)
      {
        input->top_left=(int *)malloc(sizeof(int)*input->num_slice_groups_minus1);
        input->bottom_right=(int *)malloc(sizeof(int)*input->num_slice_groups_minus1);
        if (NULL==input->top_left) 
          no_mem_exit("PatchInp: input->top_left");
        if (NULL==input->bottom_right) 
          no_mem_exit("PatchInp: input->bottom_right");
        
        // every two lines contain 'top_left' and 'bottom_right' value
        for(i=0;i<input->num_slice_groups_minus1;i++)
        {
          fscanf(sgfile,"%d",(input->top_left+i));
          fscanf(sgfile,"%*[^\n]");
          fscanf(sgfile,"%d",(input->bottom_right+i));
          fscanf(sgfile,"%*[^\n]");
        }
        
      }
      else if (input->slice_group_map_type == 6)
      {
        int tmp;

        frame_mb_only = !(input->PicInterlace || input->MbInterlace);
        mb_width= (input->img_width+img->auto_crop_right)/16;
        mb_height= (input->img_height+img->auto_crop_bottom)/16;
        mapunit_height=mb_height/(2-frame_mb_only);
        
        input->slice_group_id=(byte * ) malloc(sizeof(byte)*mapunit_height*mb_width);
        if (NULL==input->slice_group_id) 
          no_mem_exit("PatchInp: input->slice_group_id");
        
        // each line contains slice_group_id for one Macroblock
        for (i=0;i<mapunit_height*mb_width;i++)
        {
          fscanf(sgfile,"%d", &tmp);
          input->slice_group_id[i]= (byte) tmp;
          if ( *(input->slice_group_id+i) > input->num_slice_groups_minus1 )
          {
            snprintf(errortext, ET_SIZE, "Error read slice group information from file %s", input->SliceGroupConfigFileName);
            error (errortext, 500);
          }
          fscanf(sgfile,"%*[^\n]");
        }
      }
      fclose(sgfile);
      
    }
  }
  
  
  if (input->PyramidRefReorder && input->PyramidCoding && (input->PicInterlace || input->MbInterlace))
  {
    snprintf(errortext, ET_SIZE, "PyramidRefReorder Not supported with Interlace encoding methods\n");
    error (errortext, 400);
  }

  if (input->PocMemoryManagement && input->PyramidCoding && (input->PicInterlace || input->MbInterlace))
  {
    snprintf(errortext, ET_SIZE, "PocMemoryManagement not supported with Interlace encoding methods\n");
    error (errortext, 400);
  }


  // frame/field consistency check
  if (input->PicInterlace != FRAME_CODING && input->PicInterlace != ADAPTIVE_CODING && input->PicInterlace != FIELD_CODING)
  {
    snprintf (errortext, ET_SIZE, "Unsupported PicInterlace=%d, use frame based coding=0 or field based coding=1 or adaptive=2",input->PicInterlace);
    error (errortext, 400);
  }

  // frame/field consistency check
  if (input->MbInterlace != FRAME_CODING && input->MbInterlace != ADAPTIVE_CODING && input->MbInterlace != FIELD_CODING)
  {
    snprintf (errortext, ET_SIZE, "Unsupported MbInterlace=%d, use frame based coding=0 or field based coding=1 or adaptive=2",input->MbInterlace);
    error (errortext, 400);
  }
   
 
  if ((!input->rdopt)&&(input->MbInterlace))
  {
    snprintf(errortext, ET_SIZE, "MB AFF is not compatible with non-rd-optimized coding.");
    error (errortext, 500);
  }

  // Modified for Fast Mode Decision. Inchoon Choi, SungKyunKwan Univ.
  if (input->rdopt>2)
  {
    snprintf(errortext, ET_SIZE, "RDOptimization=3 mode has been deactivated do to diverging of real and simulated decoders.");
    error (errortext, 500);
  }

  // Inchoon Choi
  // check RDoptimization mode and profile. FMD does not support Frex Profiles.
  if (input->rdopt==2 && input->ProfileIDC>=FREXT_HP)
  {
    snprintf(errortext, ET_SIZE, "Fast Mode Decision methods does not support FREX Profiles");
    error (errortext, 500);
  }

  // Tian Dong: May 31, 2002
  // The number of frames in one sub-seq in enhanced layer should not exceed
  // the number of reference frame number.
  if ( input->NumFramesInELSubSeq >= input->num_ref_frames || input->NumFramesInELSubSeq < 0 )
  {
    snprintf(errortext, ET_SIZE, "NumFramesInELSubSeq (%d) is out of range [0,%d).", input->NumFramesInELSubSeq, input->num_ref_frames);
    error (errortext, 500);
  }
  // Tian Dong: Enhanced GOP is not supported in bitstream mode. September, 2002
  if ( input->NumFramesInELSubSeq > 0 && input->of_mode == PAR_OF_ANNEXB )
  {
    snprintf(errortext, ET_SIZE, "Enhanced GOP is not supported in bitstream mode and RTP mode yet.");
    error (errortext, 500);
  }
  // Tian Dong (Sept 2002)
  // The AFF is not compatible with spare picture for the time being.
  if ((input->PicInterlace || input->MbInterlace) && input->SparePictureOption == TRUE)
  {
    snprintf(errortext, ET_SIZE, "AFF is not compatible with spare picture.");
    error (errortext, 500);
  }

  // Only the RTP mode is compatible with spare picture for the time being.
  if (input->of_mode != PAR_OF_RTP && input->SparePictureOption == TRUE)
  {
    snprintf(errortext, ET_SIZE, "Only RTP output mode is compatible with spare picture features.");
    error (errortext, 500);
  }

  if( (input->WeightedPrediction > 0 || input->WeightedBiprediction > 0) && (input->MbInterlace))
  {
    printf("Weighted prediction coding is not supported for MB AFF currently.");
    error (errortext, 500);
  }
  if ( input->NumFramesInELSubSeq > 0 && input->WeightedPrediction > 0)
  {
    snprintf(errortext, ET_SIZE, "Enhanced GOP is not supported in weighted prediction coding mode yet.");
    error (errortext, 500);
  }

  //! the number of slice groups is forced to be 1 for slice group type 3-5
  if(input->num_slice_groups_minus1 > 0)
  {
    if( (input->slice_group_map_type >= 3) && (input->slice_group_map_type<=5) ) 
      input->num_slice_groups_minus1 = 1;
  }
  
  // Rate control
  if(input->RCEnable)
  {
    if ( ((input->img_height+img->auto_crop_bottom)*(input->img_width+img->auto_crop_right)/256)%input->basicunit!=0)
    {
      snprintf(errortext, ET_SIZE, "Basic unit is not defined correctly.");
      error (errortext, 500);
    }
  }

  if ((input->successive_Bframe)&&(input->BRefPictures)&&(input->idr_enable)&&(input->intra_period)&&(input->pic_order_cnt_type!=0))
  {
    error("Stored B pictures combined with IDR pictures only supported in Picture Order Count type 0\n",-1000);
  }
  
  if( !input->direct_spatial_mv_pred_flag && input->num_ref_frames<2 && input->successive_Bframe >0)
    error("temporal direct needs at least 2 ref frames\n",-1000);

  // frext
  if(input->AllowTransform8x8 && input->sp_periodicity /*SP-frames*/)
  {
    snprintf(errortext, ET_SIZE, "\nThe new 8x8 mode is not implemented for sp-frames.");
    error (errortext, 500);
  }

  if(input->AllowTransform8x8 && (input->ProfileIDC<FREXT_HP || input->ProfileIDC>FREXT_Hi444))
  {
    snprintf(errortext, ET_SIZE, "\nAllowTransform8x8 may be used only with ProfileIDC %d to %d.", FREXT_HP, FREXT_Hi444);
    error (errortext, 500);
  }
  if(input->ScalingMatrixPresentFlag && (input->ProfileIDC<FREXT_HP || input->ProfileIDC>FREXT_Hi444))
  {
    snprintf(errortext, ET_SIZE, "\nScalingMatrixPresentFlag may be used only with ProfileIDC %d to %d.", FREXT_HP, FREXT_Hi444);
    error (errortext, 500);
  }

  if(input->yuv_format==YUV422 && input->ProfileIDC < FREXT_Hi422)
  {
    snprintf(errortext, ET_SIZE, "\nFRExt Profile(YUV Format) Error!\nYUV422 can be used only with ProfileIDC %d or %d\n",FREXT_Hi422, FREXT_Hi444);
    error (errortext, 500);
  }
  if(input->yuv_format==YUV444 && input->ProfileIDC < FREXT_Hi444)
  {
    snprintf(errortext, ET_SIZE, "\nFRExt Profile(YUV Format) Error!\nYUV444 can be used only with ProfileIDC %d.\n",FREXT_Hi444);
    error (errortext, 500);
  }
  
  // Residue Color Transform
  if(input->yuv_format!=YUV444 && input->residue_transform_flag)
  {
    snprintf(errortext, ET_SIZE, "\nResidue color transform is supported only in YUV444.");
    error (errortext, 500);
  }

  ProfileCheck();
  LevelCheck();
}

void PatchInputNoFrames()
{
  // Tian Dong: May 31, 2002
  // If the frames are grouped into two layers, "FramesToBeEncoded" in the config file
  // will give the number of frames which are in the base layer. Here we let input->no_frames
  // be the total frame numbers.
  input->no_frames = 1+ (input->no_frames-1) * (input->NumFramesInELSubSeq+1);
  if ( input->NumFrameIn2ndIGOP )
    input->NumFrameIn2ndIGOP = 1+(input->NumFrameIn2ndIGOP-1) * (input->NumFramesInELSubSeq+1);
  FirstFrameIn2ndIGOP = input->no_frames;
}

static void ProfileCheck()
{
  if((input->ProfileIDC != 66 ) &&
     (input->ProfileIDC != 77 ) && 
     (input->ProfileIDC != 88 ) && 
     (input->ProfileIDC != FREXT_HP    ) && 
     (input->ProfileIDC != FREXT_Hi10P ) && 
     (input->ProfileIDC != FREXT_Hi422 ) && 
     (input->ProfileIDC != FREXT_Hi444 ))
  {
    snprintf(errortext, ET_SIZE, "Profile must be baseline(66)/main(77)/extended(88) or FRExt (%d to %d).", FREXT_HP,FREXT_Hi444);
    error (errortext, 500);
  }
  // baseline
  if (input->ProfileIDC == 66 )
  {
    if (input->successive_Bframe)
    {
      snprintf(errortext, ET_SIZE, "B pictures are not allowed in baseline.");
      error (errortext, 500);
    }
    if (input->sp_periodicity)
    {
      snprintf(errortext, ET_SIZE, "SP pictures are not allowed in baseline.");
      error (errortext, 500);
    }
    if (input->partition_mode)
    {
      snprintf(errortext, ET_SIZE, "Data partitioning is not allowed in baseline.");
      error (errortext, 500);
    }
    if (input->WeightedPrediction)
    {
      snprintf(errortext, ET_SIZE, "Weighted prediction is not allowed in baseline.");
      error (errortext, 500);
    }
    if (input->WeightedBiprediction)
    {
      snprintf(errortext, ET_SIZE, "Weighted prediction is not allowed in baseline.");
      error (errortext, 500);
    }
    if (input->symbol_mode == CABAC)
    {
      snprintf(errortext, ET_SIZE, "CABAC is not allowed in baseline.");
      error (errortext, 500);
    }
  }

  // main
  if (input->ProfileIDC == 77 )
  {
    if (input->sp_periodicity)
    {
      snprintf(errortext, ET_SIZE, "SP pictures are not allowed in main.");
      error (errortext, 500);
    }
    if (input->partition_mode)
    {
      snprintf(errortext, ET_SIZE, "Data partitioning is not allowed in main.");
      error (errortext, 500);
    }
    if (input->num_slice_groups_minus1)
    {
      snprintf(errortext, ET_SIZE, "num_slice_groups_minus1>0 (FMO) is not allowed in main.");
      error (errortext, 500);
    }
    if (input->redundant_slice_flag)
    {
      snprintf(errortext, ET_SIZE, "Redundant pictures are not allowed in main.");
      error (errortext, 500);
    }
  }

  // extended
  if (input->ProfileIDC == 88 )
  {
    if (!input->directInferenceFlag)
    {
      snprintf(errortext, ET_SIZE, "direct_8x8_inference flag must be equal to 1 in extended.");
      error (errortext, 500);
    }

    if (input->symbol_mode == CABAC)
    {
      snprintf(errortext, ET_SIZE, "CABAC is not allowed in extended.");
      error (errortext, 500);
    }
  }
}

static void LevelCheck()
{
  return;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产色91在线| 波多野结衣91| 精品国产网站在线观看| 视频在线观看一区| 日韩欧美不卡在线观看视频| 男男视频亚洲欧美| 日韩视频一区在线观看| 精品一区二区三区久久| 久久精品夜色噜噜亚洲a∨| 精品中文字幕一区二区小辣椒| 4438亚洲最大| 国产一区二区在线影院| 国产农村妇女毛片精品久久麻豆| 国产精品亚洲人在线观看| 国产精品私人自拍| 91视频.com| 久久99久久久久| 国产精品午夜电影| 56国语精品自产拍在线观看| 国产剧情在线观看一区二区| 国产欧美日产一区| 欧美视频一区二区| 国产精品18久久久久久久网站| 久久久久国产精品麻豆ai换脸| 成人夜色视频网站在线观看| 一区二区国产视频| 久久综合久久99| 欧美无砖专区一中文字| 国产经典欧美精品| 日韩高清不卡一区二区| 日本一区二区三区国色天香 | 免费人成在线不卡| 国产色爱av资源综合区| 制服丝袜亚洲精品中文字幕| 国产精品一级片在线观看| 亚洲激情在线激情| 国产精品入口麻豆九色| 久久久久久免费网| 91精品国产综合久久香蕉的特点| 成人av在线资源网站| 国精产品一区一区三区mba视频| 一区二区三区不卡在线观看| 国产精品视频观看| 国产亚洲精品超碰| 26uuu亚洲综合色| 精品成人私密视频| 久久这里只有精品首页| 欧美一级免费大片| 日韩一区二区免费在线观看| 337p亚洲精品色噜噜噜| 日韩欧美另类在线| 欧美一级夜夜爽| 欧美tk—视频vk| 国产视频在线观看一区二区三区| www精品美女久久久tv| 久久综合九色综合欧美就去吻| 26uuu国产在线精品一区二区| 欧美大片在线观看一区二区| 精品国产99国产精品| 国产精品污www在线观看| 国产精品视频在线看| 亚洲一区在线免费观看| 久久精品国产秦先生| 国产东北露脸精品视频| 91在线云播放| 日韩精品一区二区三区视频| 国产亚洲一区字幕| 一区二区三区中文免费| 轻轻草成人在线| 99国产精品久久久久久久久久久| 欧美色大人视频| 久久久久99精品国产片| 艳妇臀荡乳欲伦亚洲一区| 卡一卡二国产精品| 色婷婷av一区二区三区gif | 男人的天堂久久精品| 成人精品高清在线| 日韩欧美一级片| 亚洲狠狠丁香婷婷综合久久久| 久久精品国产99久久6| 91农村精品一区二区在线| 欧美电影免费观看高清完整版在线观看 | 亚洲欧洲中文日韩久久av乱码| 琪琪一区二区三区| 91国模大尺度私拍在线视频| 久久欧美中文字幕| 日日摸夜夜添夜夜添国产精品 | 欧美吞精做爰啪啪高潮| 中文字幕+乱码+中文字幕一区| 男女男精品网站| 欧美日韩激情一区| 一区二区欧美精品| 东方aⅴ免费观看久久av| 日韩欧美国产wwwww| 蜜臀a∨国产成人精品| 欧美日韩成人激情| 亚洲国产精品久久人人爱蜜臀 | 欧美一区二区日韩| 午夜视频在线观看一区二区| 91国偷自产一区二区开放时间 | 国产三级欧美三级日产三级99| 美女视频黄频大全不卡视频在线播放| 欧美色综合久久| 午夜精品福利一区二区三区蜜桃| 欧美日韩色一区| 日韩中文字幕亚洲一区二区va在线| 精品视频在线视频| 免费不卡在线观看| 国产精品久久久久久久久图文区| www.亚洲精品| 一二三区精品视频| 欧美tickle裸体挠脚心vk| 激情偷乱视频一区二区三区| 国产精品不卡在线观看| 在线观看免费视频综合| 六月丁香综合在线视频| 欧美国产一区二区在线观看| 成人黄色国产精品网站大全在线免费观看| 久久久国产精品午夜一区ai换脸| 99久久777色| 免费成人在线影院| 最新国产精品久久精品| 在线不卡a资源高清| 北条麻妃一区二区三区| 蜜臀久久99精品久久久久宅男| 久久久久国色av免费看影院| 日本高清免费不卡视频| 国内外成人在线视频| 亚洲综合色噜噜狠狠| 日韩一卡二卡三卡| 欧美亚洲国产一区二区三区| 久久99国产乱子伦精品免费| 伊人一区二区三区| 国产精品午夜久久| 久久婷婷国产综合精品青草| 欧美乱妇15p| 欧美美女直播网站| 91免费观看视频在线| 成人av网站大全| 韩国三级中文字幕hd久久精品| 午夜欧美电影在线观看| 亚洲免费高清视频在线| 欧美激情在线一区二区三区| 精品电影一区二区三区| 日韩欧美电影一区| 日韩欧美国产麻豆| 久久综合狠狠综合| 337p粉嫩大胆色噜噜噜噜亚洲 | 亚洲精品在线免费观看视频| 欧美日韩精品欧美日韩精品| 欧美三级乱人伦电影| 欧美最新大片在线看| 欧美理论电影在线| 欧美精品18+| 欧美白人最猛性xxxxx69交| 精品国产123| 国产精品久久久久久久久快鸭 | 亚洲欧美日韩人成在线播放| 亚洲精品久久久蜜桃| 亚洲高清视频在线| 美日韩黄色大片| 国产电影精品久久禁18| 成人亚洲一区二区一| 在线观看av一区二区| 日韩欧美中文字幕公布| 国产欧美日韩久久| 午夜国产精品影院在线观看| 男人的天堂亚洲一区| 99久久精品免费看国产免费软件| 99精品在线观看视频| 日韩午夜在线观看视频| 国产免费久久精品| 偷窥国产亚洲免费视频| 风间由美一区二区av101 | 在线视频欧美区| 日韩一区二区电影网| 日韩一区有码在线| 麻豆极品一区二区三区| gogo大胆日本视频一区| 91精品国产综合久久婷婷香蕉| 国产精品视频一区二区三区不卡| 亚洲h在线观看| 日本大香伊一区二区三区| 国产亚洲一区二区三区在线观看 | 99r国产精品| 久久久久久久久久久久电影| 亚洲成人在线免费| 91美女视频网站| 国产精品色哟哟网站| 韩国毛片一区二区三区| 56国语精品自产拍在线观看| 亚洲欧美一区二区三区国产精品| 国产精品99久久久久久似苏梦涵 | 久久久亚洲精品石原莉奈| 日本午夜一本久久久综合| 欧美三级一区二区| 亚洲第一激情av| 欧美一区二区三区啪啪| 日本强好片久久久久久aaa| 91精品国产91热久久久做人人 |