Changeset 521 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibEncoder/TEncCavlc.cpp
- Timestamp:
- 4 Jul 2013, 21:00:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibEncoder/TEncCavlc.cpp
r504 r521 39 39 #include "TEncCavlc.h" 40 40 #include "SEIwrite.h" 41 #include "../TLibCommon/TypeDef.h" 41 42 42 43 //! \ingroup TLibEncoder … … 47 48 Void xTraceSPSHeader (TComSPS *pSPS) 48 49 { 50 #if H_MV_ENC_DEC_TRAC 51 fprintf( g_hTrace, "=========== Sequence Parameter Set ===========\n" ); 52 #else 49 53 fprintf( g_hTrace, "=========== Sequence Parameter Set ID: %d ===========\n", pSPS->getSPSId() ); 54 #endif 50 55 } 51 56 52 57 Void xTracePPSHeader (TComPPS *pPPS) 53 58 { 59 #if H_MV_ENC_DEC_TRAC 60 fprintf( g_hTrace, "=========== Picture Parameter Set ===========\n" ); 61 #else 54 62 fprintf( g_hTrace, "=========== Picture Parameter Set ID: %d ===========\n", pPPS->getPPSId() ); 63 #endif 55 64 } 56 65 … … 838 847 // colour_plane_id u(2) 839 848 840 #if H_MV 849 #if H_MV && !H_MV_FIX1071 841 850 // Temporary fix for FIX1071 should be removed later 842 851 TComReferencePictureSet* rps = pcSlice->getRPS(); … … 846 855 Int picOrderCntLSB = (pcSlice->getPOC()-pcSlice->getLastIDR()+(1<<pcSlice->getSPS()->getBitsForPOC()))%(1<<pcSlice->getSPS()->getBitsForPOC()); 847 856 WRITE_CODE( picOrderCntLSB, pcSlice->getSPS()->getBitsForPOC(), "pic_order_cnt_lsb"); 848 #if !H_MV 849 // Temporary fix for FIX1071 should be removed later 857 #if !H_MV || H_MV_FIX1071 850 858 TComReferencePictureSet* rps = pcSlice->getRPS(); 851 859 #endif 852 #if FIX1071 860 #if FIX1071 && H_MV_FIX1071 861 // check for bitstream restriction stating that: 862 // If the current picture is a BLA or CRA picture, the value of NumPocTotalCurr shall be equal to 0. 863 // Ideally this process should not be repeated for each slice in a picture 864 if (pcSlice->isIRAP()) 865 { 866 for (Int picIdx = 0; picIdx < rps->getNumberOfPictures(); picIdx++) 867 { 868 assert (!rps->getUsed(picIdx)); 869 } 870 } 871 #endif 872 #if FIX1071 && !H_MV_FIX1071 853 873 // Deal with bitstream restriction stating that: 854 874 // – If the current picture is a BLA or CRA picture, the value of NumPocTotalCurr shall be equal to 0. … … 872 892 } 873 893 } 874 875 894 if(pcSlice->getRPSidx() < 0 || useAltRps) 876 895 #else … … 1009 1028 pcSlice->setNumRefIdx(REF_PIC_LIST_1, 0); 1010 1029 } 1011 #if H_MV 1030 #if H_MV && !H_MV_FIX1071 1012 1031 // Temporary fix for FIX1071 should be removed later 1013 1032 if( pcSlice->getPPS()->getListsModificationPresentFlag() && pcSlice->getNumRpsCurrTempList( rps ) > 1)
Note: See TracChangeset for help on using the changeset viewer.