add savc setting in configure file and command line

This commit is contained in:
Karina 2016-05-31 13:53:31 +08:00
parent 1d2b52e4cc
commit 7f2ba4dcb6
7 changed files with 15 additions and 4 deletions

View File

@ -511,7 +511,7 @@ typedef struct TagEncParamExt {
eSpsPpsIdStrategy; ///< different stategy in adjust ID in SPS/PPS: 0- constant ID, 1-additional ID, 6-mapping and additional
bool bPrefixNalAddingCtrl; ///< false:not use Prefix NAL; true: use Prefix NAL
bool bEnableSSEI; ///< false:not use SSEI; true: use SSEI -- TODO: planning to remove the interface of SSEI
bool bSimulcastAVC; ///< (when encoding more than 1 spatial layer) false: use SVC syntax for higher layers; true: use Simulcast AVC -- coming soon
bool bSimulcastAVC; ///< (when encoding more than 1 spatial layer) false: use SVC syntax for higher layers; true: use Simulcast AVC
int iPaddingFlag; ///< 0:disable padding;1:padding
int iEntropyCodingModeFlag; ///< 0:CAVLC 1:CABAC.

View File

@ -223,9 +223,9 @@ int ParseConfig (CReadConfig& cRdCfg, SSourcePicture* pSrcPic, SEncParamExt& pSv
if (strTag[0].compare ("UsageType") == 0) {
pSvcParam.iUsageType = (EUsageType)atoi (strTag[1].c_str());
} else if (strTag[0].compare ("SourceWidth") == 0) {
pSrcPic->iPicWidth = atoi (strTag[1].c_str());
} else if (strTag[0].compare ("SourceHeight") == 0) {
}else if (strTag[0].compare ("SimulcastAVC") == 0) {
pSvcParam.bSimulcastAVC = atoi (strTag[1].c_str()) ? true : false;
}else if (strTag[0].compare ("SourceHeight") == 0) {
pSrcPic->iPicHeight = atoi (strTag[1].c_str());
} else if (strTag[0].compare ("InputFile") == 0) {
if (strTag[1].length() > 0)
@ -387,6 +387,8 @@ void PrintHelp() {
printf (" -org Original file, example: -org src.yuv\n");
printf (" -sw the source width\n");
printf (" -sh the source height\n");
printf (" -utype usage type\n");
printf (" -savc simulcast avc\n");
printf (" -frms Number of total frames to be encoded\n");
printf (" -frin input frame rate\n");
printf (" -numtl Temporal layer number (default: 1)\n");
@ -439,6 +441,9 @@ int ParseCommandLine (int argc, char** argv, SSourcePicture* pSrcPic, SEncParamE
else if (!strcmp (pCommand, "-utype") && (n < argc))
pSvcParam.iUsageType = (EUsageType)atoi (argv[n++]);
else if (!strcmp (pCommand, "-savc") && (n < argc))
pSvcParam.bSimulcastAVC = atoi (argv[n++]) ? true : false;
else if (!strcmp (pCommand, "-org") && (n < argc))
sFileSet.strSeqFile.assign (argv[n++]);
@ -661,6 +666,7 @@ int FillSpecificParameters (SEncParamExt& sParam) {
sParam.eSpsPpsIdStrategy = INCREASING_ID;
sParam.bPrefixNalAddingCtrl = 0;
sParam.iComplexityMode = MEDIUM_COMPLEXITY;
sParam.bSimulcastAVC = false;
int iIndexLayer = 0;
sParam.sSpatialLayers[iIndexLayer].uiProfileIdc = PRO_BASELINE;
sParam.sSpatialLayers[iIndexLayer].iVideoWidth = 160;

View File

@ -2,6 +2,7 @@
#============================== GENERAL ==============================
UsageType 0 #0: camera video 1:screen content
SimulcastAVC 0 #0: use SVC syntax for higher layers; 1: use Simulcast AVC
SourceWidth 320 #input video width
SourceHeight 192 #input video height
InputFile ../res/CiscoVT2people_320x192_12fps.yuv # Input file

View File

@ -2,6 +2,7 @@
#============================== GENERAL ==============================
UsageType 0 #0: camera video 1:screen content
SimulcastAVC 0 #0: use SVC syntax for higher layers; 1: use Simulcast AVC
SourceWidth 152 # Input frame width
SourceHeight 100 # Input frame height
InputFile ../res/Static_152_100.yuv # Input file

View File

@ -2,6 +2,7 @@
#============================== GENERAL ==============================
UsageType 0 #0: camera video 1:screen content
SimulcastAVC 0 #0: use SVC syntax for higher layers; 1: use Simulcast AVC
SourceWidth 320 #input video width
SourceHeight 192 #input video height
InputFile ../res/CiscoVT2people_320x192_12fps.yuv # Input file

View File

@ -2,6 +2,7 @@
#============================== GENERAL ==============================
UsageType 0 #0: camera video 1:screen content
SimulcastAVC 0 #0: use SVC syntax for higher layers; 1: use Simulcast AVC
SourceWidth 320 # Input frame width
SourceHeight 192 # Input frame height
InputFile ../res/CiscoVT2people_320x192_12fps.yuv # Input file

View File

@ -2,6 +2,7 @@
#============================== GENERAL ==============================
UsageType 0 #0: camera video 1:screen content
SimulcastAVC 0 #0: use SVC syntax for higher layers; 1: use Simulcast AVC
SourceWidth 320 # Input frame width
SourceHeight 192 # Input frame height
InputFile ../res/CiscoVT2people_320x192_12fps.yuv