Changeset 1375 in SHVCSoftware for branches/SHM-dev


Ignore:
Timestamp:
22 Jul 2015, 05:35:56 (9 years ago)
Author:
seregin
Message:

reintroduce temp variables

Location:
branches/SHM-dev/source/App/TAppEncoder
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1374 r1375  
    999999#if SVC_EXTENSION
    10001000  ExtendedProfileName extendedProfile[MAX_NUM_LAYER_IDS + 1];
     1001
     1002  UInt tmpBitDepthConstraint;
     1003  Bool tmpIntraConstraintFlag, tmpOnePictureOnlyConstraintFlag, tmpLowerBitRateConstraintFlag;
    10011004#else
    10021005  ExtendedProfileName extendedProfile;
     
    12261229  ("Level%d",                                         m_levelList,       Level::NONE, (MAX_NUM_LAYER_IDS + 1), "Level limit to be used, eg 5.1, or none")
    12271230  ("Tier%d",                                          m_levelTierList,   Level::MAIN, (MAX_NUM_LAYER_IDS + 1), "Tier to use for interpretation of --Level (main or high only)")
    1228 #endif
    1229   ("MaxBitDepthConstraint",                           m_bitDepthConstraint,                                0u, "Bit depth to use for profile-constraint for RExt profiles. 0=automatically choose based upon other parameters")
     1231
     1232  ("MaxBitDepthConstraint",                           tmpBitDepthConstraint,                               0u, "Bit depth to use for profile-constraint for RExt profiles. 0=automatically choose based upon other parameters")
    12301233  ("MaxChromaFormatConstraint",                       tmpConstraintChromaFormat,                            0, "Chroma-format to use for the profile-constraint for RExt profiles. 0=automatically choose based upon other parameters")
    1231   ("IntraConstraintFlag",                             m_intraConstraintFlag,                            false, "Value of general_intra_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)")
    1232   ("OnePictureOnlyConstraintFlag",                    m_onePictureOnlyConstraintFlag,                   false, "Value of general_one_picture_only_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)")
    1233   ("LowerBitRateConstraintFlag",                      m_lowerBitRateConstraintFlag,                      true, "Value of general_lower_bit_rate_constraint_flag to use for RExt profiles")
    1234 #if SVC_EXTENSION
     1234  ("IntraConstraintFlag",                             tmpIntraConstraintFlag,                           false, "Value of general_intra_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)")
     1235  ("OnePictureOnlyConstraintFlag",                    tmpOnePictureOnlyConstraintFlag,                  false, "Value of general_one_picture_only_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)")
     1236  ("LowerBitRateConstraintFlag",                      tmpLowerBitRateConstraintFlag,                      true, "Value of general_lower_bit_rate_constraint_flag to use for RExt profiles")
     1237
    12351238  ("ProfileCompatibility%d",                          m_profileCompatibility, Profile::NONE, (MAX_NUM_LAYER_IDS + 1), "Compatible profile to be used when encoding")
    12361239  ("ProgressiveSource%d",                             m_progressiveSourceFlagList,   false, (MAX_NUM_LAYER_IDS + 1), "Indicate that source is progressive")
     
    12591262  ("Level",                                           m_level,                                    Level::NONE, "Level limit to be used, eg 5.1, or none")
    12601263  ("Tier",                                            m_levelTier,                                Level::MAIN, "Tier to use for interpretation of --Level (main or high only)") 
     1264
     1265  ("MaxBitDepthConstraint",                           m_bitDepthConstraint,                                0u, "Bit depth to use for profile-constraint for RExt profiles. 0=automatically choose based upon other parameters")
     1266  ("MaxChromaFormatConstraint",                       tmpConstraintChromaFormat,                            0, "Chroma-format to use for the profile-constraint for RExt profiles. 0=automatically choose based upon other parameters")
     1267  ("IntraConstraintFlag",                             m_intraConstraintFlag,                            false, "Value of general_intra_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)")
     1268  ("OnePictureOnlyConstraintFlag",                    m_onePictureOnlyConstraintFlag,                   false, "Value of general_one_picture_only_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)")
     1269  ("LowerBitRateConstraintFlag",                      m_lowerBitRateConstraintFlag,                      true, "Value of general_lower_bit_rate_constraint_flag to use for RExt profiles")
    12611270
    12621271  ("ProgressiveSource",                               m_progressiveSourceFlag,                          false, "Indicate that source is progressive")
     
    18971906    }
    18981907
    1899     m_acLayerCfg[layer].m_bitDepthConstraint = m_bitDepthConstraint;
    1900     m_acLayerCfg[layer].m_intraConstraintFlag = m_intraConstraintFlag;
    1901     m_acLayerCfg[layer].m_lowerBitRateConstraintFlag = m_lowerBitRateConstraintFlag;   
     1908    m_acLayerCfg[layer].m_bitDepthConstraint = tmpBitDepthConstraint;
     1909    m_acLayerCfg[layer].m_intraConstraintFlag = tmpIntraConstraintFlag;
     1910    m_acLayerCfg[layer].m_lowerBitRateConstraintFlag = tmpLowerBitRateConstraintFlag;   
    19021911
    19031912    for (UInt channelType = 0; channelType < MAX_NUM_CHANNEL_TYPE; channelType++)
     
    29572966
    29582967  Int layerPTLIdx = m_acLayerCfg[layerIdx].m_layerPTLIdx;
    2959   Profile::Name m_profile           = m_profileList[layerPTLIdx];
    2960   UInt m_bitDepthConstraint         = m_acLayerCfg[layerIdx].m_bitDepthConstraint;
    2961   Bool m_intraConstraintFlag        = m_acLayerCfg[layerIdx].m_intraConstraintFlag;
    2962   Bool m_lowerBitRateConstraintFlag = m_acLayerCfg[layerIdx].m_lowerBitRateConstraintFlag;
     2968  Profile::Name m_profile             = m_profileList[layerPTLIdx];
     2969  UInt m_bitDepthConstraint           = m_acLayerCfg[layerIdx].m_bitDepthConstraint;
     2970  Bool m_intraConstraintFlag          = m_acLayerCfg[layerIdx].m_intraConstraintFlag;
     2971  Bool m_lowerBitRateConstraintFlag   = m_acLayerCfg[layerIdx].m_lowerBitRateConstraintFlag;
     2972  Bool m_onePictureOnlyConstraintFlag = m_acLayerCfg[layerIdx].m_onePictureOnlyConstraintFlag;
    29632973#else
    29642974Void TAppEncCfg::xCheckParameter()
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h

    r1369 r1375  
    147147  Level::Tier   m_levelTier;
    148148  Level::Name   m_level;
    149 #endif
    150149  UInt          m_bitDepthConstraint;
    151150  ChromaFormat  m_chromaFormatConstraint;
     
    153152  Bool          m_onePictureOnlyConstraintFlag;
    154153  Bool          m_lowerBitRateConstraintFlag;
    155 #if !SVC_EXTENSION
    156154  Bool m_progressiveSourceFlag;
    157155  Bool m_interlacedSourceFlag;
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h

    r1316 r1375  
    4949  Bool      m_intraConstraintFlag;
    5050  Bool      m_lowerBitRateConstraintFlag;
     51  Bool      m_onePictureOnlyConstraintFlag;
    5152#if AUXILIARY_PICTURES
    5253  Int       m_auxId;
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1369 r1375  
    229229    m_acTEncTop[layer].setChromaFormatConstraintValue                     ( m_acLayerCfg[layer].m_chromaFormatConstraint );
    230230    m_acTEncTop[layer].setIntraConstraintFlag                             ( m_acLayerCfg[layer].m_intraConstraintFlag );
    231     m_acTEncTop[layer].setOnePictureOnlyConstraintFlag                    ( m_onePictureOnlyConstraintFlag );
     231    m_acTEncTop[layer].setOnePictureOnlyConstraintFlag                    ( m_acLayerCfg[layer].m_onePictureOnlyConstraintFlag );
    232232    m_acTEncTop[layer].setLowerBitRateConstraintFlag                      ( m_acLayerCfg[layer].m_lowerBitRateConstraintFlag );
    233233
Note: See TracChangeset for help on using the changeset viewer.