Changeset 195 in 3DVCSoftware for branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder
- Timestamp:
- 26 Nov 2012, 22:32:00 (12 years ago)
- Location:
- branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/NALwrite.cpp
r194 r195 64 64 #endif 65 65 66 #if MVHEVC66 #if QC_MVHEVC_B0046 67 67 bsNALUHeader.write(nalu.m_layerId, 5); // when nal_ref_flag is signalled, 5 bits here. otherwise, 6 bits 68 68 bsNALUHeader.write(nalu.m_temporalId + 1, 3); // temporal_id … … 83 83 case NAL_UNIT_CODED_SLICE_IDR: 84 84 #if H0566_TLA 85 #if !QC_REM_IDV 85 #if !QC_REM_IDV_B0046 86 86 case NAL_UNIT_CODED_SLICE_IDV: 87 87 #endif … … 202 202 } 203 203 204 #if ! MVHEVC204 #if !QC_MVHEVC_B0046 205 205 /** 206 206 * Copy NALU from naluSrc to naluDest -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/NALwrite.h
r194 r195 62 62 NalRefIdc nalRefIDC, 63 63 #endif 64 #if VIDYO_VPS_INTEGRATION| MVHEVC64 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 65 65 unsigned layerId, 66 66 #else … … 70 70 unsigned temporalID = 0) 71 71 #if NAL_REF_FLAG 72 #if VIDYO_VPS_INTEGRATION| MVHEVC72 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 73 73 : NALUnit(nalUnitType, nalRefFlag, layerId, temporalID) 74 74 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncCavlc.cpp
r194 r195 375 375 } 376 376 377 #if MVHEVC377 #if QC_MVHEVC_B0046 378 378 Void TEncCavlc::codeVPS( TComVPS* pcVPS ) 379 379 { … … 708 708 #endif 709 709 WRITE_FLAG( 1, "sps_extension_flag" ); 710 #if ! MVHEVC710 #if !QC_MVHEVC_B0046 711 711 WRITE_FLAG( (pcSPS->getNumberOfUsableInterViewRefs() > 0) ? 1 : 0, "interview_refs_present_flag" ); 712 712 if( pcSPS->getNumberOfUsableInterViewRefs() > 0 ) … … 884 884 if (!bEntropySlice) 885 885 { 886 #if MVHEVC886 #if QC_MVHEVC_B0046 887 887 WRITE_UVLC( 0, "pic_parameter_set_id" ); 888 888 #else … … 895 895 } 896 896 #endif 897 #if QC_REM_IDV 897 #if QC_REM_IDV_B0046 898 898 if(pcSlice->getNalUnitType()==NAL_UNIT_CODED_SLICE_IDR && pcSlice->getViewId() == 0) 899 899 #else … … 907 907 { 908 908 WRITE_CODE( (pcSlice->getPOC()-pcSlice->getLastIDR()+(1<<pcSlice->getSPS()->getBitsForPOC()))%(1<<pcSlice->getSPS()->getBitsForPOC()), pcSlice->getSPS()->getBitsForPOC(), "pic_order_cnt_lsb"); 909 #if QC_REM_IDV 909 #if QC_REM_IDV_B0046 910 910 if( pcSlice->getPOC() == 0 && !(pcSlice->getSPS()->getViewId() && (pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR || pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA))) 911 911 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncCavlc.h
r194 r195 114 114 UInt getCoeffCost () { return m_uiCoeffCost; } 115 115 116 #if VIDYO_VPS_INTEGRATION| MVHEVC116 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 117 117 Void codeVPS ( TComVPS* pcVPS ); 118 118 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncCfg.h
r194 r195 307 307 #endif 308 308 309 #if VIDYO_VPS_INTEGRATION| MVHEVC309 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 310 310 UInt m_layerId; 311 311 #endif … … 820 820 Int getTSIG() { return m_signHidingThreshold; } 821 821 #endif 822 #if VIDYO_VPS_INTEGRATION | MVHEVC822 #if VIDYO_VPS_INTEGRATION |QC_MVHEVC_B0046 823 823 Void setLayerId ( UInt layerId ) { m_layerId = layerId; } 824 824 UInt getLayerId () { return m_layerId; } -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncEntropy.cpp
r194 r195 121 121 } 122 122 123 #if VIDYO_VPS_INTEGRATION| MVHEVC123 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 124 124 Void TEncEntropy::encodeVPS( TComVPS* pcVPS ) 125 125 { … … 129 129 #endif 130 130 131 #if VIDYO_VPS_INTEGRATION| MVHEVC131 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 132 132 Void codeVPS ( TComVPS* pcVPS ); 133 133 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncEntropy.h
r194 r195 76 76 virtual UInt getCoeffCost () = 0; 77 77 78 #if VIDYO_VPS_INTEGRATION| MVHEVC78 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 79 79 virtual Void codeVPS ( TComVPS* pcVPS ) = 0; 80 80 #endif … … 242 242 243 243 public: 244 #if VIDYO_VPS_INTEGRATION| MVHEVC244 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 245 245 Void encodeVPS ( TComVPS* pcVPS); 246 246 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncGOP.cpp
r194 r195 246 246 247 247 std::vector<TComAPS>& vAPS = m_pcEncTop->getAPS(); 248 #if VIDYO_VPS_INTEGRATION| MVHEVC248 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 249 249 m_pcSliceEncoder->initEncSlice ( pcPic, iPOCLast, uiPOCCurr, iNumPicRcvd, iGOPid, pcSlice, m_pcEncTop->getEncTop()->getVPS(), m_pcEncTop->getSPS(), m_pcEncTop->getPPS() ); 250 250 #else … … 298 298 if( pcSlice->getSliceType() == B_SLICE ) 299 299 { 300 #if QC_REM_IDV 300 #if QC_REM_IDV_B0046 301 301 if( m_pcCfg->getGOPEntry(pcSlice->getSPS()->getViewId() && ((getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDR) || (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_CRA))? MAX_GOP : iGOPid ).m_sliceType == 'P' ) { pcSlice->setSliceType( P_SLICE ); } 302 302 #else … … 336 336 #endif 337 337 338 #if !QC_REM_IDV 338 #if !QC_REM_IDV_B0046 339 339 pcSlice->setNumRefIdx( REF_PIC_LIST_0, min( m_pcCfg->getGOPEntry( (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDV) ? MAX_GOP : iGOPid ).m_numRefPicsActive, (pcSlice->getRPS()->getNumberOfPictures() + pcSlice->getSPS()->getNumberOfUsableInterViewRefs()) ) ); 340 340 pcSlice->setNumRefIdx( REF_PIC_LIST_1, min( m_pcCfg->getGOPEntry( (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDV) ? MAX_GOP : iGOPid ).m_numRefPicsActive, (pcSlice->getRPS()->getNumberOfPictures() + pcSlice->getSPS()->getNumberOfUsableInterViewRefs()) ) ); … … 373 373 if( pcSlice->getSliceType() == B_SLICE ) 374 374 { 375 #if !QC_REM_IDV 375 #if !QC_REM_IDV_B0046 376 376 if( m_pcCfg->getGOPEntry( (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDV) ? MAX_GOP : iGOPid ).m_sliceType == 'P' ) { pcSlice->setSliceType( P_SLICE ); } 377 377 #else … … 845 845 if ( m_bSeqFirst ) 846 846 { 847 #if MVHEVC847 #if QC_MVHEVC_B0046 848 848 if(!m_pcEncTop->getLayerId()) 849 849 { 850 850 #endif 851 #if VIDYO_VPS_INTEGRATION| MVHEVC851 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 852 852 { 853 853 OutputNALUnit nalu(NAL_UNIT_VPS, true, m_pcEncTop->getLayerId()); … … 859 859 #endif 860 860 #if NAL_REF_FLAG 861 #if VIDYO_VPS_INTEGRATION| MVHEVC861 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 862 862 OutputNALUnit nalu(NAL_UNIT_SPS, true, m_pcEncTop->getLayerId()); 863 863 #else … … 880 880 881 881 #if NAL_REF_FLAG 882 #if VIDYO_VPS_INTEGRATION| MVHEVC883 #if MVHEVC882 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 883 #if QC_MVHEVC_B0046 884 884 nalu = NALUnit(NAL_UNIT_PPS, true, m_pcEncTop->getLayerId()); 885 885 #else … … 896 896 writeRBSPTrailingBits(nalu.m_Bitstream); 897 897 accessUnit.push_back(new NALUnitEBSP(nalu)); 898 #if MVHEVC898 #if QC_MVHEVC_B0046 899 899 } 900 900 #endif … … 1018 1018 #if NAL_REF_FLAG 1019 1019 OutputNALUnit nalu( pcSlice->getNalUnitType(), pcSlice->isReferenced(), 1020 #if !VIDYO_VPS_INTEGRATION &! MVHEVC1020 #if !VIDYO_VPS_INTEGRATION &!QC_MVHEVC_B0046 1021 1021 m_pcEncTop->getViewId(), m_pcEncTop->getIsDepth(), pcSlice->getTLayer() ); 1022 1022 #else … … 1494 1494 { 1495 1495 #if NAL_REF_FLAG 1496 #if VIDYO_VPS_INTEGRATION | MVHEVC1496 #if VIDYO_VPS_INTEGRATION | QC_MVHEVC_B0046 1497 1497 OutputNALUnit nalu(NAL_UNIT_APS, true, m_pcEncTop->getLayerId()); 1498 1498 #else … … 1560 1560 1561 1561 #if NAL_REF_FLAG 1562 #if VIDYO_VPS_INTEGRATION | MVHEVC1562 #if VIDYO_VPS_INTEGRATION | QC_MVHEVC_B0046 1563 1563 OutputNALUnit nalu(NAL_UNIT_SEI, false, m_pcEncTop->getLayerId()); 1564 1564 #else … … 1998 1998 case NAL_UNIT_CODED_SLICE: return "SLICE"; 1999 1999 #if H0566_TLA 2000 #if !QC_REM_IDV 2000 #if !QC_REM_IDV_B0046 2001 2001 case NAL_UNIT_CODED_SLICE_IDV: return "IDV"; 2002 2002 #endif … … 2215 2215 if( bInterViewOnlySlice ) 2216 2216 { 2217 #if !QC_REM_IDV 2217 #if !QC_REM_IDV_B0046 2218 2218 return NAL_UNIT_CODED_SLICE_IDV; 2219 2219 #else … … 2232 2232 if( bInterViewOnlySlice ) 2233 2233 { 2234 #if !QC_REM_IDV 2234 #if !QC_REM_IDV_B0046 2235 2235 return NAL_UNIT_CODED_SLICE_IDV; 2236 2236 #else … … 2251 2251 if( bInterViewOnlySlice ) 2252 2252 { 2253 #if !QC_REM_IDV 2253 #if !QC_REM_IDV_B0046 2254 2254 return NAL_UNIT_CODED_SLICE_IDV; 2255 2255 #else … … 2493 2493 2494 2494 // analyze inter-view modifications 2495 #if !QC_REM_IDV 2495 #if !QC_REM_IDV_B0046 2496 2496 GOPEntryMvc gem = m_pcCfg->getGOPEntry( (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDV) ? MAX_GOP : iGOPid ); 2497 2497 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSbac.cpp
r194 r195 396 396 } 397 397 398 #if VIDYO_VPS_INTEGRATION| MVHEVC398 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 399 399 Void TEncSbac::codeVPS( TComVPS* pcVPS ) 400 400 { -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSbac.h
r194 r195 98 98 //--SBAC RD 99 99 100 #if VIDYO_VPS_INTEGRATION| MVHEVC100 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 101 101 Void codeVPS ( TComVPS* pcVPS ); 102 102 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSearch.cpp
r194 r195 4284 4284 } 4285 4285 #endif 4286 #if MVHEVC4286 #if QC_MVHEVC_B0046 4287 4287 m_pcRdCost->setMultiviewReg( 0 ); 4288 4288 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSlice.cpp
r194 r195 162 162 \param pPPS PPS associated with the slice 163 163 */ 164 #if VIDYO_VPS_INTEGRATION| MVHEVC164 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 165 165 Void TEncSlice::initEncSlice( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS * pVPS, TComSPS* pSPS, TComPPS *pPPS ) 166 166 #else … … 172 172 173 173 rpcSlice = pcPic->getSlice(0); 174 #if VIDYO_VPS_INTEGRATION| MVHEVC174 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 175 175 rpcSlice->setVPS( pVPS ); 176 176 #endif … … 820 820 UInt uiTileStartLCU = 0; 821 821 UInt uiTileLCUX = 0; 822 #if ! MVHEVC822 #if !QC_MVHEVC_B0046 823 823 Int iLastPosY = -1; 824 824 #endif … … 833 833 TComDataCU*& pcCU = rpcPic->getCU( uiCUAddr ); 834 834 pcCU->initCU( rpcPic, uiCUAddr ); 835 #if ! MVHEVC835 #if !QC_MVHEVC_B0046 836 836 if ( m_pcRdCost->getUseRenModel() ) 837 837 { -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSlice.h
r194 r195 110 110 111 111 /// preparation of slice encoding (reference marking, QP and lambda) 112 #if VIDYO_VPS_INTEGRATION| MVHEVC112 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 113 113 Void initEncSlice ( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS* pVPS, TComSPS* pSPS, TComPPS *pPPS ); 114 114 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncTop.cpp
r194 r195 785 785 else 786 786 { 787 #if MVHEVC787 #if QC_MVHEVC_B0046 788 788 m_cSPS.initMultiviewSPS ( m_viewId); 789 789 #else … … 997 997 Void TEncTop::selectReferencePictureSet(TComSlice* slice, Int POCCurr, Int GOPid,TComList<TComPic*>& listPic ) 998 998 { 999 #if QC_REM_IDV 999 #if QC_REM_IDV_B0046 1000 1000 if( (slice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR ||slice->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA) && slice->getSPS()->getViewId() && POCCurr == 0 ) 1001 1001 #else
Note: See TracChangeset for help on using the changeset viewer.