Changeset 476 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/CommonDef.h
- Timestamp:
- 18 Jun 2013, 05:16:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/CommonDef.h
r447 r476 178 178 } 179 179 180 #if H_3D_IV_MERGE 181 #define ROFVS( exp ) \ 182 { \ 183 if( !( exp ) ) \ 184 { \ 185 return; \ 186 } \ 187 } 188 189 #define ROTVS( exp ) \ 190 { \ 191 if( ( exp ) ) \ 192 { \ 193 return; \ 194 } \ 195 } 196 197 #define ROTRS( exp, retVal ) \ 198 { \ 199 if( ( exp ) ) \ 200 { \ 201 return retVal; \ 202 } \ 203 } 204 205 #define ROFRS( exp, retVal ) \ 206 { \ 207 if( !( exp ) ) \ 208 { \ 209 return retVal; \ 210 } \ 211 } 212 #endif 213 180 214 template <typename T> 181 215 __inline T gSign(const T& t) … … 200 234 // MERGE 201 235 #define MRG_MAX_NUM_CANDS 5 202 236 #if H_3D_IV_MERGE 237 #define MRG_MAX_NUM_CANDS_MEM (MRG_MAX_NUM_CANDS+1) // one extra for inter-view motion prediction 238 #endif 203 239 // Reference memory management 204 240 #define DYN_REF_FREE 0 ///< dynamic free of reference memories … … 325 361 #define STD_CAM_PARAMETERS_PRECISION 5 ///< quarter luma sample accuarcy for derived disparities (as default) 326 362 363 #if H_3D_IV_MERGE 364 #define PDM_USE_FOR_IVIEW 1 365 #define PDM_USE_FOR_INTER 2 366 #define PDM_USE_FOR_MERGE 4 367 368 #define MAX_VIEW_NUM 10 369 #define PDM_SUBSAMPLING_EXP 2 // subsampling factor is 2^PDM_SUBSAMPLING_EXP 370 #define PDM_SUB_SAMP_EXP_X(Pdm) ((Pdm)==1?PDM_SUBSAMPLING_EXP:0) 371 #define PDM_SUB_SAMP_EXP_Y(Pdm) ((Pdm)==1?PDM_SUBSAMPLING_EXP:0) 372 373 #define PDM_INTERNAL_CALC_BIT_DEPTH 31 // bit depth for internal calculations (32 - 1 for signed values) 374 #define PDM_BITDEPTH_VIRT_DEPTH 15 // bit depth for virtual depth storage (16 - 1 for signed values) 375 #define PDM_LOG2_MAX_ABS_NORMAL_DISPARITY 8 // maximum absolute normal disparity = 256 (for setting accuracy) 376 #define PDM_VIRT_DEPTH_PRECISION 4 // must be greater than or equal to 2 (since MVs are given in quarter-pel units) 377 378 #define PDM_INTER_CALC_SHIFT ( PDM_INTERNAL_CALC_BIT_DEPTH - PDM_BITDEPTH_VIRT_DEPTH ) // avoids overflow 379 #define PDM_LOG4_SCALE_DENOMINATOR ( PDM_LOG2_MAX_ABS_NORMAL_DISPARITY + PDM_VIRT_DEPTH_PRECISION ) // accuracy of scaling factor 380 #define PDM_OFFSET_SHIFT ( PDM_LOG2_MAX_ABS_NORMAL_DISPARITY ) // accuracy of offset 381 382 #endif 383 327 384 #endif // end of H_3D 328 385 //! \}
Note: See TracChangeset for help on using the changeset viewer.