Changeset 854 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
7 Aug 2014, 00:07:58 (10 years ago)
Author:
qualcomm
Message:

R0223: Restrictions on full_poc_reset_flag(Macro: POC_RESET_VALUE_RESTRICTION)

Explicitly spell out a restriction on the value of full_poc_reset_flag based on the value of poc_reset_idc of pictures in the first access unit in the same POC resetting period.

From: Adarsh K. Ramasubramonian <aramasub@…>

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r853 r854  
    5454Bool  TDecTop::m_picNonIdrNoLpPresentFlag            = false;
    5555#endif
     56#if POC_RESET_VALUE_RESTRICTION
     57Int   TDecTop::m_crossLayerPocResetPeriodId          = -1;
     58Int   TDecTop::m_crossLayerPocResetIdc               = -1;
     59#endif
    5660#endif
    5761
     
    11501154        m_parseIdc = 0;
    11511155      }
     1156#if POC_RESET_VALUE_RESTRICTION
     1157      // Check if the POC Reset period ID matches with the Reset Period ID
     1158      if( pocResetPeriodId == m_crossLayerPocResetPeriodId )
     1159      {
     1160        // If matching, and current poc_reset_idc = 3, then the values should match
     1161        if( m_apcSlicePilot->getPocResetIdc() == 3 )
     1162        {
     1163          assert( m_apcSlicePilot->getFullPocResetFlag() == false && m_crossLayerPocResetIdc == 1
     1164                  || m_apcSlicePilot->getFullPocResetFlag() == true && m_crossLayerPocResetIdc == 2 );
     1165        }
     1166      }
     1167      else
     1168      {
     1169        // This is the first picture of a POC resetting access unit
     1170        m_crossLayerPocResetPeriodId = pocResetPeriodId;
     1171        if( m_apcSlicePilot->getPocResetIdc() == 1 || m_apcSlicePilot->getPocResetIdc() == 2 )
     1172        {
     1173          m_crossLayerPocResetIdc = m_apcSlicePilot->getPocResetIdc();
     1174        }
     1175        else
     1176        { // poc_reset_idc = 3
     1177          // In this case, the entire POC resetting access unit has been lost.
     1178          // Need more checking to ensure poc_reset_idc = 3 works.
     1179          assert ( 0 );
     1180        }
     1181      }
     1182#endif
    11521183    }
    11531184    else
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h

    r851 r854  
    224224  static Bool                    m_picNonIdrNoLpPresentFlag;
    225225#endif
     226#if POC_RESET_VALUE_RESTRICTION
     227  static Int                     m_crossLayerPocResetPeriodId;
     228  static Int                     m_crossLayerPocResetIdc;
     229#endif
    226230
    227231  TDecTop();
Note: See TracChangeset for help on using the changeset viewer.