Changeset 1377 in SHVCSoftware for branches/SHM-dev/source/Lib


Ignore:
Timestamp:
23 Jul 2015, 01:02:36 (10 years ago)
Author:
seregin
Message:

dynamic memory allocation at encoder

Location:
branches/SHM-dev/source/Lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TAppCommon/program_options_lite.cpp

    r1301 r1377  
    294294      if (!found)
    295295      {
     296#if 1 //SVC_EXTENSION
     297        if( error_reporter.verbose )
     298#endif
    296299        error_reporter.error(where())
    297300          << "Unknown option `" << name << "' (value:`" << value << "')\n";
  • branches/SHM-dev/source/Lib/TAppCommon/program_options_lite.h

    r1301 r1377  
    6666    struct ErrorReporter
    6767    {
    68       ErrorReporter() : is_errored(0) {}
     68      ErrorReporter()
     69      : is_errored(0)
     70#if 1 //SVC_EXTENSION
     71      , verbose(true)
     72#endif
     73      {}
    6974      virtual ~ErrorReporter() {}
    7075      virtual std::ostream& error(const std::string& where);
    7176      virtual std::ostream& warn(const std::string& where);
    7277      bool is_errored;
     78#if 1 //SVC_EXTENSION
     79      bool verbose;
     80#endif
    7381    };
    7482
  • branches/SHM-dev/source/Lib/TLibCommon/TComRom.cpp

    r1353 r1377  
    5656  switch (type)
    5757  {
     58    case NAL_UNIT_CODED_SLICE_TRAIL_R:    return "   TRAIL_R";
     59    case NAL_UNIT_CODED_SLICE_TRAIL_N:    return "   TRAIL_N";
     60    case NAL_UNIT_CODED_SLICE_TSA_R:      return "     TSA_R";
     61    case NAL_UNIT_CODED_SLICE_TSA_N:      return "     TSA_N";
     62    case NAL_UNIT_CODED_SLICE_STSA_R:     return "    STSA_R";
     63    case NAL_UNIT_CODED_SLICE_STSA_N:     return "    STSA_N";
     64    case NAL_UNIT_CODED_SLICE_BLA_W_LP:   return "  BLA_W_LP";
     65    case NAL_UNIT_CODED_SLICE_BLA_W_RADL: return "BLA_W_RADL";
     66    case NAL_UNIT_CODED_SLICE_BLA_N_LP:   return "  BLA_N_LP";
     67    case NAL_UNIT_CODED_SLICE_IDR_W_RADL: return "IDR_W_RADL";
     68    case NAL_UNIT_CODED_SLICE_IDR_N_LP:   return "  IDR_N_LP";
     69    case NAL_UNIT_CODED_SLICE_CRA:        return "       CRA";
     70    case NAL_UNIT_CODED_SLICE_RADL_R:     return "    RADL_R";
     71    case NAL_UNIT_CODED_SLICE_RADL_N:     return "    RADL_N";
     72    case NAL_UNIT_CODED_SLICE_RASL_R:     return "    RASL_R";
     73    case NAL_UNIT_CODED_SLICE_RASL_N:     return "    RASL_N";
     74    case NAL_UNIT_VPS:                    return "       VPS";
     75    case NAL_UNIT_SPS:                    return "       SPS";
     76    case NAL_UNIT_PPS:                    return "       PPS";
     77    case NAL_UNIT_ACCESS_UNIT_DELIMITER:  return "       AUD";
     78    case NAL_UNIT_EOS:                    return "       EOS";
     79    case NAL_UNIT_EOB:                    return "       EOB";
     80    case NAL_UNIT_FILLER_DATA:            return "    FILLER";
     81    case NAL_UNIT_PREFIX_SEI:             return "       SEI";
     82    case NAL_UNIT_SUFFIX_SEI:             return "       SEI";
     83    default:                              return "       UNK";
     84  }
     85#else
     86  switch (type)
     87  {
    5888  case NAL_UNIT_CODED_SLICE_TRAIL_R:    return "TRAIL_R";
    5989  case NAL_UNIT_CODED_SLICE_TRAIL_N:    return "TRAIL_N";
     
    82112  case NAL_UNIT_SUFFIX_SEI:             return "Suffix SEI";
    83113  default:                              return "UNK";
    84   }
    85 #else
    86 switch (type)
    87   {
    88     case NAL_UNIT_CODED_SLICE_TRAIL_R:    return "   TRAIL_R";
    89     case NAL_UNIT_CODED_SLICE_TRAIL_N:    return "   TRAIL_N";
    90     case NAL_UNIT_CODED_SLICE_TSA_R:      return "     TSA_R";
    91     case NAL_UNIT_CODED_SLICE_TSA_N:      return "     TSA_N";
    92     case NAL_UNIT_CODED_SLICE_STSA_R:     return "    STSA_R";
    93     case NAL_UNIT_CODED_SLICE_STSA_N:     return "    STSA_N";
    94     case NAL_UNIT_CODED_SLICE_BLA_W_LP:   return "  BLA_W_LP";
    95     case NAL_UNIT_CODED_SLICE_BLA_W_RADL: return "BLA_W_RADL";
    96     case NAL_UNIT_CODED_SLICE_BLA_N_LP:   return "  BLA_N_LP";
    97     case NAL_UNIT_CODED_SLICE_IDR_W_RADL: return "IDR_W_RADL";
    98     case NAL_UNIT_CODED_SLICE_IDR_N_LP:   return "  IDR_N_LP";
    99     case NAL_UNIT_CODED_SLICE_CRA:        return "       CRA";
    100     case NAL_UNIT_CODED_SLICE_RADL_R:     return "    RADL_R";
    101     case NAL_UNIT_CODED_SLICE_RADL_N:     return "    RADL_N";
    102     case NAL_UNIT_CODED_SLICE_RASL_R:     return "    RASL_R";
    103     case NAL_UNIT_CODED_SLICE_RASL_N:     return "    RASL_N";
    104     case NAL_UNIT_VPS:                    return "       VPS";
    105     case NAL_UNIT_SPS:                    return "       SPS";
    106     case NAL_UNIT_PPS:                    return "       PPS";
    107     case NAL_UNIT_ACCESS_UNIT_DELIMITER:  return "       AUD";
    108     case NAL_UNIT_EOS:                    return "       EOS";
    109     case NAL_UNIT_EOB:                    return "       EOB";
    110     case NAL_UNIT_FILLER_DATA:            return "    FILLER";
    111     case NAL_UNIT_PREFIX_SEI:             return "       SEI";
    112     case NAL_UNIT_SUFFIX_SEI:             return "       SEI";
    113     default:                              return "       UNK";
    114114  }
    115115#endif
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1366 r1377  
    4040
    4141#if SVC_EXTENSION
    42 UInt  TDecTop::m_prevPOC = MAX_UINT;
    43 UInt  TDecTop::m_uiPrevLayerId = MAX_UINT;
    44 Bool  TDecTop::m_bFirstSliceInSequence = true;
    45 Bool  TDecTop::m_checkPocRestrictionsForCurrAu       = false;
    46 Int   TDecTop::m_pocResetIdcOrCurrAu                 = -1;
    47 Bool  TDecTop::m_baseLayerIdrFlag                    = false;
    48 Bool  TDecTop::m_baseLayerPicPresentFlag             = false;
    49 Bool  TDecTop::m_baseLayerIrapFlag                   = false;
    50 Bool  TDecTop::m_nonBaseIdrPresentFlag               = false;
    51 Int   TDecTop::m_nonBaseIdrType                      = -1;
    52 Bool  TDecTop::m_picNonIdrWithRadlPresentFlag        = false;
    53 Bool  TDecTop::m_picNonIdrNoLpPresentFlag            = false;
    54 Int   TDecTop::m_crossLayerPocResetPeriodId          = -1;
    55 Int   TDecTop::m_crossLayerPocResetIdc               = -1;
     42UInt  TDecTop::m_prevPOC                       = MAX_UINT;
     43UInt  TDecTop::m_uiPrevLayerId                 = MAX_UINT;
     44Bool  TDecTop::m_bFirstSliceInSequence         = true;
     45Bool  TDecTop::m_checkPocRestrictionsForCurrAu = false;
     46Int   TDecTop::m_pocResetIdcOrCurrAu           = -1;
     47Bool  TDecTop::m_baseLayerIdrFlag              = false;
     48Bool  TDecTop::m_baseLayerPicPresentFlag       = false;
     49Bool  TDecTop::m_baseLayerIrapFlag             = false;
     50Bool  TDecTop::m_nonBaseIdrPresentFlag         = false;
     51Int   TDecTop::m_nonBaseIdrType                = -1;
     52Bool  TDecTop::m_picNonIdrWithRadlPresentFlag  = false;
     53Bool  TDecTop::m_picNonIdrNoLpPresentFlag      = false;
     54Int   TDecTop::m_crossLayerPocResetPeriodId    = -1;
     55Int   TDecTop::m_crossLayerPocResetIdc         = -1;
    5656#endif
    5757
     
    25792579      || pps.getCGSFlag() > 0
    25802580#endif
    2581 #if LAYER_CTB
    2582       || pcTDecTopBase->getActiveSPS()->getMaxCUWidth() != m_ppcTDecTop[m_layerId]->getActiveSPS()->getMaxCUWidth() || pcTDecTopBase->getActiveSPS()->getMaxCUHeight() != m_ppcTDecTop[m_layerId]->getActiveSPS()->getMaxCUHeight() || pcTDecTopBase->getActiveSPS()->getMaxCUDepth() != m_ppcTDecTop[m_layerId]->getActiveSPS()->getMaxCUDepth()
    2583 #endif
    25842581      )
    25852582    {
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1372 r1377  
    743743            || m_cPPS.getCGSFlag() > 0
    744744#endif
    745 #if LAYER_CTB
    746             || pcEncTopBase->getSPS()->getMaxCUWidth() != m_cSPS.getMaxCUWidth() || pcEncTopBase->getSPS()->getMaxCUHeight() != m_cSPS.getMaxCUHeight() || pcEncTopBase->getSPS()->getMaxCUDepth() != m_cSPS.getMaxCUDepth()
    747 #endif
    748745            )
    749746          {
     
    792789#if CGS_3D_ASYMLUT
    793790            || m_cPPS.getCGSFlag() > 0
    794 #endif
    795 #if LAYER_CTB
    796             || pcEncTopBase->getSPS()->getMaxCUWidth() != m_cSPS.getMaxCUWidth() || pcEncTopBase->getSPS()->getMaxCUHeight() != m_cSPS.getMaxCUHeight() || pcEncTopBase->getSPS()->getMaxCUDepth() != m_cSPS.getMaxCUDepth()
    797791#endif
    798792            )
Note: See TracChangeset for help on using the changeset viewer.