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


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

dynamic memory allocation at encoder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.