Changeset 1338 in SHVCSoftware for branches/SHM-dev
- Timestamp:
- 22 Jul 2015, 02:50:13 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1323 r1338 693 693 /** \param pcListPic list of pictures to be written to file 694 694 \param tId temporal sub-layer ID 695 \todo DYN_REF_FREE should be revised696 695 */ 697 696 #if SVC_EXTENSION … … 847 846 if ( !pcPicTop->getSlice(0)->isReferenced() && pcPicTop->getReconMark() == true ) 848 847 { 849 #if !DYN_REF_FREE850 848 pcPicTop->setReconMark(false); 851 849 852 850 // mark it should be extended later 853 851 pcPicTop->getPicYuvRec()->setBorderExtension( false ); 854 855 #else856 pcPicTop->destroy();857 pcListPic->erase( iterPic );858 iterPic = pcListPic->begin(); // to the beginning, non-efficient way, have to be revised!859 continue;860 #endif861 852 } 862 853 if ( !pcPicBottom->getSlice(0)->isReferenced() && pcPicBottom->getReconMark() == true ) 863 854 { 864 #if !DYN_REF_FREE865 855 pcPicBottom->setReconMark(false); 866 856 867 857 // mark it should be extended later 868 858 pcPicBottom->getPicYuvRec()->setBorderExtension( false ); 869 870 #else871 pcPicBottom->destroy();872 pcListPic->erase( iterPic );873 iterPic = pcListPic->begin(); // to the beginning, non-efficient way, have to be revised!874 continue;875 #endif876 859 } 877 860 pcPicTop->setOutputMark(false); … … 981 964 if ( !pcPic->getSlice(0)->isReferenced() && pcPic->getReconMark() == true ) 982 965 { 983 #if !DYN_REF_FREE984 966 pcPic->setReconMark(false); 985 967 986 968 // mark it should be extended later 987 969 pcPic->getPicYuvRec()->setBorderExtension( false ); 988 989 #else990 pcPic->destroy();991 pcListPic->erase( iterPic );992 iterPic = pcListPic->begin(); // to the beginning, non-efficient way, have to be revised!993 continue;994 #endif995 970 } 996 971 pcPic->setOutputMark(false); … … 1003 978 1004 979 /** \param pcListPic list of pictures to be written to file 1005 \todo DYN_REF_FREE should be revised1006 980 */ 1007 981 #if SVC_EXTENSION … … 1074 1048 if ( !pcPicTop->getSlice(0)->isReferenced() && pcPicTop->getReconMark() == true ) 1075 1049 { 1076 #if !DYN_REF_FREE1077 1050 pcPicTop->setReconMark(false); 1078 1051 1079 1052 // mark it should be extended later 1080 1053 pcPicTop->getPicYuvRec()->setBorderExtension( false ); 1081 1082 #else1083 pcPicTop->destroy();1084 pcListPic->erase( iterPic );1085 iterPic = pcListPic->begin(); // to the beginning, non-efficient way, have to be revised!1086 continue;1087 #endif1088 1054 } 1089 1055 if ( !pcPicBottom->getSlice(0)->isReferenced() && pcPicBottom->getReconMark() == true ) 1090 1056 { 1091 #if !DYN_REF_FREE1092 1057 pcPicBottom->setReconMark(false); 1093 1058 1094 1059 // mark it should be extended later 1095 1060 pcPicBottom->getPicYuvRec()->setBorderExtension( false ); 1096 1097 #else1098 pcPicBottom->destroy();1099 pcListPic->erase( iterPic );1100 iterPic = pcListPic->begin(); // to the beginning, non-efficient way, have to be revised!1101 continue;1102 #endif1103 1061 } 1104 1062 pcPicTop->setOutputMark(false); 1105 1063 pcPicBottom->setOutputMark(false); 1106 1064 1107 #if !DYN_REF_FREE1108 1065 if(pcPicTop) 1109 1066 { … … 1112 1069 pcPicTop = NULL; 1113 1070 } 1114 #endif1115 1071 } 1116 1072 } … … 1211 1167 if ( !pcPic->getSlice(0)->isReferenced() && pcPic->getReconMark() == true ) 1212 1168 { 1213 #if !DYN_REF_FREE1214 1169 pcPic->setReconMark(false); 1215 1170 1216 1171 // mark it should be extended later 1217 1172 pcPic->getPicYuvRec()->setBorderExtension( false ); 1218 1219 #else1220 pcPic->destroy();1221 pcListPic->erase( iterPic );1222 iterPic = pcListPic->begin(); // to the beginning, non-efficient way, have to be revised!1223 continue;1224 #endif1225 1173 } 1226 1174 pcPic->setOutputMark(false); 1227 1175 } 1228 1176 #if !SVC_EXTENSION 1229 #if !DYN_REF_FREE 1230 if(pcPic) 1177 if(pcPic != NULL) 1231 1178 { 1232 1179 pcPic->destroy(); … … 1234 1181 pcPic = NULL; 1235 1182 } 1236 #endif1237 1183 #endif 1238 1184 iterPic++; -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1337 r1338 164 164 #define AMP_SAD 1 ///< dedicated SAD functions for AMP 165 165 #define DECODER_CHECK_SUBSTREAM_AND_SLICE_TRAILING_BYTES 1 166 #define DYN_REF_FREE 0 ///< Reference memory management - dynamic free of reference memories167 166 #define RDO_WITHOUT_DQP_BITS 0 ///< Disable counting dQP bits in RDO-based mode decision 168 167 #define SAO_ENCODE_ALLOW_USE_PREDEBLOCK 1
Note: See TracChangeset for help on using the changeset viewer.