Changeset 42 in 3DVCSoftware for trunk/source/Lib/TLibCommon


Ignore:
Timestamp:
26 Mar 2012, 18:05:40 (13 years ago)
Author:
tech
Message:

Nokia (Flexible Coding Order)
Ericsson ( High Level Syntax )
changes

Location:
trunk/source/Lib/TLibCommon
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/CommonDef.h

    r21 r42  
    5858
    5959#define HM_VERSION        "3.0rc2"                 ///< Current software version
    60 #define NV_VERSION        "0.3"                    ///< Current software version
     60#define NV_VERSION        "0.4"                    ///< Current software version
    6161
    6262// ====================================================================================================================
  • trunk/source/Lib/TLibCommon/SEI.h

    r5 r42  
    4141class SEI
    4242{
     43#if BITSTREAM_EXTRACTION
     44protected:
     45  UInt m_uiLayerId;
     46#endif
     47
    4348public:
    4449  enum PayloadType {
     
    5156 
    5257  virtual PayloadType payloadType() const = 0;
     58
     59#if BITSTREAM_EXTRACTION
     60  Void      setLayerId              ( UInt u )       { m_uiLayerId = u; }
     61  UInt      getLayerId              ()         const { return m_uiLayerId; }
     62#endif
    5363};
    5464
  • trunk/source/Lib/TLibCommon/TComBitStream.cpp

    r5 r42  
    6161  m_auiSliceByteLocation = NULL;
    6262  m_uiSliceCount         = 0;
     63#if BITSTREAM_EXTRACTION
     64  m_apulPacketPayloadBuffer = new UInt[uiSize];
     65  m_uiPacketPayloadSize = 0;
     66#endif 
    6367}
    6468
     
    6670{
    6771  delete [] m_apulStreamPacketBegin;     m_apulStreamPacketBegin = NULL;
     72#if BITSTREAM_EXTRACTION
     73  delete [] m_apulPacketPayloadBuffer;   m_apulPacketPayloadBuffer = NULL;
     74#endif
    6875}
    6976
     
    148155  xReadNextWord();
    149156}
     157
     158#if BITSTREAM_EXTRACTION
     159UInt TComBitstream::reinitParsing()
     160{
     161  rewindStreamPacket();
     162  memcpy( m_apulStreamPacketBegin, m_apulPacketPayloadBuffer, m_uiPacketPayloadSize );
     163  initParsing( m_uiPacketPayloadSize );
     164  return m_uiPacketPayloadSize;
     165}
     166#endif
    150167
    151168#if LCEC_INTRA_MODE || QC_LCEC_INTER_MODE
     
    319336  UChar* pucWrite      = reinterpret_cast<UChar*> (getBuffer());
    320337 
     338#if BITSTREAM_EXTRACTION
     339  memcpy( m_apulPacketPayloadBuffer, m_apulStreamPacketBegin, uiBytesRead );
     340  m_uiPacketPayloadSize = uiBytesRead;
     341#endif
     342
    321343  for( ; uiReadOffset < uiBytesRead; uiReadOffset++ )
    322344  {
  • trunk/source/Lib/TLibCommon/TComBitStream.h

    r5 r42  
    8585  UInt        m_uiSliceProcessed;
    8686
     87#if BITSTREAM_EXTRACTION
     88  UInt*       m_apulPacketPayloadBuffer;
     89  UInt        m_uiPacketPayloadSize;
     90#endif 
     91
    8792  UInt xSwap ( UInt ui )
    8893  {
     
    164169
    165170  void insertAt(const TComBitstream& src, unsigned pos);
     171
     172#if BITSTREAM_EXTRACTION
     173  UInt        reinitParsing();
     174#endif 
    166175};
    167176
  • trunk/source/Lib/TLibCommon/TComSlice.cpp

    r21 r42  
    6666  m_iViewIdx = 0 ;
    6767
     68#if BITSTREAM_EXTRACTION
     69  m_uiLayerId = 0;
     70#endif
     71
    6872#if SONY_COLPIC_AVAILABILITY
    6973  m_iViewOrderIdx = 0;
     
    659663  m_bUseMVI = false;
    660664#endif
    661  
     665
     666#if BITSTREAM_EXTRACTION
     667  m_uiLayerId             = 0;
     668#endif
    662669  m_uiViewId              = 0;
    663670  m_iViewOrderIdx         = 0;
     
    687694  m_bUseDMM = false;
    688695#endif
     696#if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER
     697   m_bUseDMM34 = false;
     698#endif
    689699}
    690700
     
    695705TComPPS::TComPPS()
    696706{
     707#if BITSTREAM_EXTRACTION
     708  m_uiLayerId             = 0;
     709#endif
    697710#if CONSTRAINED_INTRA_PRED
    698711  m_bConstrainedIntraPred = false;
  • trunk/source/Lib/TLibCommon/TComSlice.h

    r21 r42  
    7676  UInt        m_uiMaxTrDepth;
    7777
     78#if BITSTREAM_EXTRACTION
     79  UInt        m_uiLayerId;
     80#endif
    7881  UInt        m_uiViewId;
    7982  Int         m_iViewOrderIdx;
     
    133136#if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX
    134137  Bool  m_bUseDMM;
     138#endif
     139#if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER
     140  Bool  m_bUseDMM34;
    135141#endif
    136142
     
    230236  Void setUseDMM( Bool b ) { m_bUseDMM = b;    }
    231237#endif
    232 
     238#if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER
     239  Bool getUseDMM34()         { return m_bUseDMM34; }
     240  Void setUseDMM34( Bool b ) { m_bUseDMM34 = b;    }
     241#endif
    233242
    234243#if DCM_COMB_LIST
     
    304313  Void                    setResidualGenerator( TComResidualGenerator* pcResidualGenerator )  { m_pcResidualGenerator = pcResidualGenerator; }
    305314  TComResidualGenerator*  getResidualGenerator()                                              { return m_pcResidualGenerator; }
     315#endif
     316
     317#if BITSTREAM_EXTRACTION
     318  Void      setLayerId              ( UInt u ) { m_uiLayerId = u; }
     319  UInt      getLayerId              ()         { return m_uiLayerId; }
    306320#endif
    307321};
     
    320334  UInt        m_uiPPSId;
    321335  UInt        m_uiSPSId;
     336#if BITSTREAM_EXTRACTION
     337  UInt        m_uiLayerId;
     338#endif
    322339
    323340public:
     
    340357  Void setUseWP                     ( Bool b )  { m_bUseWeightPred = b;       }
    341358  Void setWPBiPredIdc               ( UInt u )  { m_uiBiPredIdc = u;          }
     359#endif
     360
     361#if BITSTREAM_EXTRACTION
     362  Void      setLayerId              ( UInt u ) { m_uiLayerId = u; }
     363  UInt      getLayerId              ()         { return m_uiLayerId; }
    342364#endif
    343365};
     
    370392  UInt        m_uiPPSId;
    371393  Int         m_iPOC;
     394#if BITSTREAM_EXTRACTION
     395  UInt        m_uiLayerId;
     396#endif
    372397#if SONY_COLPIC_AVAILABILITY
    373398  Int         m_iViewOrderIdx;
     
    534559  Void      setLambda( Double d ) { m_dLambda = d; }
    535560  Double    getLambda() { return m_dLambda;        }
     561
     562#if BITSTREAM_EXTRACTION
     563  Void      setLayerId( UInt u )                        { m_uiLayerId = u; }
     564  UInt      getLayerId()                                { return m_uiLayerId; }
     565#endif
    536566
    537567  Void      setViewIdx(Int i)                           { m_iViewIdx = i; }
  • trunk/source/Lib/TLibCommon/TypeDef.h

    r21 r42  
    4040
    4141
    42 
    43 #define SONY_COLPIC_AVAILABILITY                  1
     42#define BITSTREAM_EXTRACTION            1
     43#define FLEX_CODING_ORDER               1
     44#define DISABLE_FCO_FOR_VSO             0
     45
     46#define SONY_COLPIC_AVAILABILITY        1
    4447
    4548//>>>>> HHI 3DV tools >>>>>
     
    5457#define HHI_VSO_DIST_INT                1   // view synthesis optimization integer distorition in rdo process
    5558#define HHI_VSO_LS_TABLE                1   // table based lambda scaling
     59#define HHI_VSO_PRINT_DIST              0   // print VSO distortion instead of depth distrotion
    5660
    5761#if HHI_INTERVIEW_SKIP_LAMBDA_SCALE && !HHI_INTERVIEW_SKIP
     
    328332#endif
    329333#endif
     334
     335
    330336
    331337// ====================================================================================================================
Note: See TracChangeset for help on using the changeset viewer.