Changeset 860 in SHVCSoftware for branches/SHM-dev/source/App


Ignore:
Timestamp:
11 Aug 2014, 23:24:03 (10 years ago)
Author:
qualcomm
Message:

Bugfix and fix to compiler warnings in CRI SEI patch.

From: Adarsh K. Ramasubramonian <aramasub@…>

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

Legend:

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

    r859 r860  
    20842084        exit(EXIT_FAILURE);
    20852085      }
    2086 
     2086      Int tempCode;
    20872087      retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIId );
    2088       retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEICancelFlag );
     2088      retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEICancelFlag = tempCode ? 1 : 0;
    20892089      if( !m_acLayerCfg[layer].m_colourRemapSEICancelFlag )
    20902090      {
    2091         retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIPersistenceFlag );
    2092         retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIVideoSignalTypePresentFlag);
     2091        retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIPersistenceFlag = tempCode ? 1 : 0;
     2092        retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIVideoSignalTypePresentFlag = tempCode ? 1 : 0;
    20932093        if( m_acLayerCfg[layer].m_colourRemapSEIVideoSignalTypePresentFlag )
    20942094        {
    2095           retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIVideoFullRangeFlag  );
     2095          retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIVideoFullRangeFlag = tempCode ? 1 : 0;
    20962096          retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIPrimaries );
    20972097          retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEITransferCharacteristics );
     
    21172117        }
    21182118
    2119         retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIMatrixPresentFlag );
     2119        retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIMatrixPresentFlag = tempCode ? 1 : 0;
    21202120        if( m_acLayerCfg[layer].m_colourRemapSEIMatrixPresentFlag )
    21212121        {
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r859 r860  
    228228    }
    229229
     230    Int tempCode;
    230231    retval = fscanf( fic, "%d", &m_colourRemapSEIId );
    231     retval = fscanf( fic, "%d", &m_colourRemapSEICancelFlag );
     232    retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEICancelFlag = tempCode ? 1 : 0;
    232233    if( !m_colourRemapSEICancelFlag )
    233234    {
    234       retval = fscanf( fic, "%d", &m_colourRemapSEIPersistenceFlag );
    235       retval = fscanf( fic, "%d", &m_colourRemapSEIVideoSignalTypePresentFlag);
     235      retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIPersistenceFlag = tempCode ? 1 : 0;
     236      retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIVideoSignalTypePresentFlag = tempCode ? 1 : 0;
    236237      if( m_colourRemapSEIVideoSignalTypePresentFlag )
    237238      {
    238         retval = fscanf( fic, "%d", &m_colourRemapSEIVideoFullRangeFlag  );
     239        retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIVideoFullRangeFlag = tempCode ? 1 : 0;
    239240        retval = fscanf( fic, "%d", &m_colourRemapSEIPrimaries );
    240241        retval = fscanf( fic, "%d", &m_colourRemapSEITransferCharacteristics );
     
    260261      }
    261262
    262       retval = fscanf( fic, "%d", &m_colourRemapSEIMatrixPresentFlag );
     263      retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIMatrixPresentFlag = tempCode ? 1 : 0;
    263264      if( m_colourRemapSEIMatrixPresentFlag )
    264265      {
Note: See TracChangeset for help on using the changeset viewer.