Changeset 608 in 3DVCSoftware for trunk/source/Lib/TLibEncoder/AnnexBwrite.h


Ignore:
Timestamp:
1 Sep 2013, 22:47:26 (11 years ago)
Author:
tech
Message:

Merged DEV-2.0-dev0@604.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/AnnexBwrite.h

    r56 r608  
    44 * granted under this license.
    55 *
    6  * Copyright (c) 2010-2012, ITU/ISO/IEC
     6 * Copyright (c) 2010-2013, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    4848 *  - any SPS/PPS nal units
    4949 */
    50 static std::vector<unsigned> writeAnnexB(std::ostream& out, const AccessUnit& au)
     50static std::vector<UInt> writeAnnexB(std::ostream& out, const AccessUnit& au)
    5151{
    52   std::vector<unsigned> annexBsizes;
     52  std::vector<UInt> annexBsizes;
    5353
    5454  for (AccessUnit::const_iterator it = au.begin(); it != au.end(); it++)
    5555  {
    5656    const NALUnitEBSP& nalu = **it;
    57     unsigned size = 0; /* size of annexB unit in bytes */
     57    UInt size = 0; /* size of annexB unit in bytes */
    5858
    59     static const char start_code_prefix[] = {0,0,0,1};
     59    static const Char start_code_prefix[] = {0,0,0,1};
    6060    if (it == au.begin() || nalu.m_nalUnitType == NAL_UNIT_SPS || nalu.m_nalUnitType == NAL_UNIT_PPS)
    6161    {
     
    7777    }
    7878    out << nalu.m_nalUnitData.str();
    79     size += unsigned(nalu.m_nalUnitData.str().size());
     79    size += UInt(nalu.m_nalUnitData.str().size());
    8080
    8181    annexBsizes.push_back(size);
Note: See TracChangeset for help on using the changeset viewer.