Changeset 481 in SHVCSoftware for branches


Ignore:
Timestamp:
15 Nov 2013, 23:50:28 (11 years ago)
Author:
seregin
Message:

update auto setting for representation format

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.h

    r475 r481  
    66#define __TAPPENCLAYERCFG__
    77
     8#if SVC_EXTENSION
    89#include "TLibCommon/CommonDef.h"
    910#include "TLibEncoder/TEncCfg.h"
     
    1112
    1213using namespace std;
    13 #if SVC_EXTENSION
    1414class TAppEncCfg;
    15 #endif
    1615//! \ingroup TAppEncoder
    1716//! \{
     
    4342  Int       m_iIntraPeriod;                                   ///< period of I-slice (random access period)
    4443  Double    m_fQP;                                            ///< QP value of key-picture (floating point)
    45 #if SVC_EXTENSION
    4644#if AUXILIARY_PICTURES
    4745  ChromaFormat m_chromaFormatIDC;
     
    9189#endif
    9290  Int       m_iWaveFrontSubstreams; //< If iWaveFrontSynchro, this is the number of substreams per frame (dependent tiles) or per tile (independent tiles).
    93 #endif //SVC_EXTENSION
    9491
    9592  Int       m_iQP;                                            ///< QP value of key-picture (integer)
     
    9794  Int*      m_aidQP;                                          ///< array of slice QP values
    9895  TAppEncCfg* m_cAppEncCfg;                                   ///< pointer to app encoder config
    99 #if SVC_EXTENSION
    10096  Int       m_numScaledRefLayerOffsets  ;
    10197  Int       m_scaledRefLayerLeftOffset  [MAX_LAYERS];
     
    114110  Int       m_repFormatIdx;
    115111#endif
    116 #endif //SVC_EXTENSION
    117112public:
    118113  TAppEncLayerCfg();
     
    154149  Int     getIntQP()                  {return m_iQP;              }
    155150  Int*    getdQPs()                   {return m_aidQP;            }
    156 #if SVC_EXTENSION
    157151#if VPS_EXTN_DIRECT_REF_LAYERS
    158152#if M0457_PREDICTION_INDICATIONS
     
    192186#endif
    193187#if LAYER_CTB
    194   UInt getMaxCUWidth()             {return m_uiMaxCUWidth;      }
    195   UInt getMaxCUHeight()            {return m_uiMaxCUHeight;     }
    196   UInt getMaxCUDepth()             {return m_uiMaxCUDepth;      }
     188  UInt    getMaxCUWidth()             {return m_uiMaxCUWidth;      }
     189  UInt    getMaxCUHeight()            {return m_uiMaxCUHeight;     }
     190  UInt    getMaxCUDepth()             {return m_uiMaxCUDepth;      }
    197191#endif
     192}; // END CLASS DEFINITION TAppEncLayerCfg
     193
    198194#endif //SVC_EXTENSION
    199 }; // END CLASS DEFINITION TAppEncLayerCfg
    200195
    201196//! \}
  • branches/SHM-4.0-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r479 r481  
    9898    // Auto generation of the format index
    9999    if( m_acLayerCfg[layer].getRepFormatIdx() == -1 )
    100     {
    101       // Currently only picture width and height are considred. It has to be updated if different chroma format and bit-depth will are used.
     100    {     
    102101      Bool found = false;
    103102      for( UInt idx = 0; idx < layer; idx++ )
    104103      {
     104        if( m_acLayerCfg[layer].getSourceWidth() == m_acLayerCfg[idx].getSourceWidth() && m_acLayerCfg[layer].getSourceHeight() == m_acLayerCfg[idx].getSourceHeight()
    105105#if AUXILIARY_PICTURES
    106         if( m_acLayerCfg[layer].getSourceWidth() == m_acLayerCfg[idx].getSourceWidth() && m_acLayerCfg[layer].getSourceHeight() == m_acLayerCfg[idx].getSourceHeight() &&
    107             m_acLayerCfg[layer].getChromaFormatIDC() == m_acLayerCfg[idx].getChromaFormatIDC() )
    108 #else
    109         if( m_acLayerCfg[layer].getSourceWidth() == m_acLayerCfg[idx].getSourceWidth() && m_acLayerCfg[layer].getSourceHeight() == m_acLayerCfg[idx].getSourceHeight() )
    110 #endif
     106          && m_acLayerCfg[layer].getChromaFormatIDC() == m_acLayerCfg[idx].getChromaFormatIDC()
     107#endif
     108#if O0194_DIFFERENT_BITDEPTH_EL_BL_
     109          && m_acLayerCfg[layer].m_internalBitDepthY == m_acLayerCfg[idx].m_internalBitDepthY && m_acLayerCfg[layer].m_internalBitDepthC == m_acLayerCfg[idx].m_internalBitDepthC
     110#endif
     111          )
    111112        {
    112113          found = true;
Note: See TracChangeset for help on using the changeset viewer.