Changeset 28 in 3DVCSoftware for branches/0.3-poznan-univ/source/Lib/TLibCommon/CommonDef.h
- Timestamp:
- 24 Feb 2012, 20:22:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.3-poznan-univ/source/Lib/TLibCommon/CommonDef.h
r21 r28 138 138 139 139 140 #if ( HHI_INTER_VIEW_MOTION_PRED || HHI_INTER_VIEW_RESIDUAL_PRED )140 #if ( HHI_INTER_VIEW_MOTION_PRED || HHI_INTER_VIEW_RESIDUAL_PRED || POZNAN_MP_USE_DEPTH_MAP_GENERATION) 141 141 #define DEPTH_MAP_GENERATION 1 142 142 #else 143 143 #define DEPTH_MAP_GENERATION 0 144 #endif 145 146 #if POZNAN_NONLINEAR_DEPTH 147 #define POZNAN_LUT_INCREASED_PRECISION 0 // 1 //to do 148 #else 149 #define POZNAN_LUT_INCREASED_PRECISION 0 144 150 #endif 145 151 … … 174 180 #define OUTPUT_RESIDUAL_PICTURES 0 // output residual pictures (for debugging) 175 181 176 #define HHI_MPI_MERGE_POS 0 // position of mvi in merge list (0..5) 177 182 #define HHI_MPI_MERGE_POS 0 // position of mvi in merge list (0..5) 183 184 // ==================================================================================================================== 185 // POZNAN DEFINE SECTION 186 // ==================================================================================================================== 187 #define POZNAN_OUTPUT_AVAILABLE_MAP 0 // output available map (for debugging) 188 #define POZNAN_OUTPUT_SYNTH 0 // output synthesised view (for debugging) 189 190 #if POZNAN_DBMP 191 #define POZNAN_DBMP_MERGE_POS 0 // position of DBMP candidate in merge list for coding (0..6) - overwrites PDM_MERGE_POS settings, is overwritten by HHI_MPI_MERGE_POS settings!!! 192 #endif 193 194 #if POZNAN_NONLINEAR_DEPTH 195 inline UChar quantizeDepthPower(Float fDepthPower) 196 { 197 Int r = (Int) ( (fDepthPower-1.0f)*128.0f + 0.5f); 198 if (r<=0) return 0; 199 if (r>255) r=255; 200 return r; 201 }; 202 203 inline Float dequantizeDepthPower(Int iDepthQuant) 204 { 205 return iDepthQuant/128.0f + 1.0f; 206 }; 207 #endif 178 208 179 209 // ==================================================================================================================== … … 186 216 #define Clip(x) ( Min(g_uiIBDI_MAX, Max( 0, (x)) ) ) ///< clip with bit-depth range 187 217 #define Clip3( MinVal, MaxVal, a) ( ((a)<(MinVal)) ? (MinVal) : (((a)>(MaxVal)) ? (MaxVal) :(a)) ) ///< general min/max clip 188 #define RemoveBitIncrement(x) ( (x + ( (1 << g_uiBitIncrement) >> 1 )) >> g_uiBitIncrement ) ///< Remove Bit increment 218 #define RemoveBitIncrement(x) ( ((x) + ( (1 << g_uiBitIncrement) >> 1 )) >> g_uiBitIncrement ) ///< Remove Bit increment 219 220 #if POZNAN_LUT_INCREASED_PRECISION 221 #define RemoveBitIncrementLUT(x) (x) ///< Remove Bit increment 222 #define SizeOfLUT (256 << g_uiBitIncrement) 223 #else 224 #define SizeOfLUT 256 225 #define RemoveBitIncrementLUT(x) ( ((x) + ( (1 << g_uiBitIncrement) >> 1 )) >> g_uiBitIncrement ) ///< Remove Bit increment 226 #endif 189 227 190 228 #define DATA_ALIGN 1 ///< use 32-bit aligned malloc/free … … 216 254 #define AMVP_MAX_NUM_CANDS 6 ///< max number of final candidates 217 255 // MERGE 256 #if POZNAN_DBMP 257 #define MRG_MAX_NUM_CANDS 7 258 #define POZNAN_DBMP_MRG_CAND MRG_MAX_NUM_CANDS-1 // position of DBMP candidate in merge list (0..6) 259 #else 218 260 #define MRG_MAX_NUM_CANDS 6 261 #endif 219 262 220 263 // Reference memory management
Note: See TracChangeset for help on using the changeset viewer.