Changeset 1277 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
16 Jul 2015, 03:05:42 (9 years ago)
Author:
seregin
Message:

write VPS only once

Location:
branches/SHM-dev/source/Lib/TLibEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1273 r1277  
    4949#include <time.h>
    5050#include <math.h>
    51 #if SVC_EXTENSION
    52 #include <limits.h>
    53 #endif
    5451
    5552#include <deque>
     
    5855#if ENVIRONMENT_VARIABLE_DEBUG_AND_TEST
    5956Bool g_bFinalEncode = false;
     57#endif
     58
     59#if SVC_EXTENSION
     60Bool TEncGOP::m_signalledVPS = false;
    6061#endif
    6162
     
    216217Int TEncGOP::xWriteVPS (AccessUnit &accessUnit, const TComVPS *vps)
    217218{
     219#if SVC_EXTENSION
     220  if( m_signalledVPS )
     221  {
     222    return 0;
     223  }
     224  m_signalledVPS = true;
     225#endif
    218226  OutputNALUnit nalu(NAL_UNIT_VPS);
    219227  m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h

    r1273 r1277  
    164164  Bool  m_noRaslOutputFlag;
    165165  Bool  m_prevPicHasEos;
     166  static Bool m_signalledVPS;
    166167#endif
    167168 
Note: See TracChangeset for help on using the changeset viewer.