Changeset 479 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/CommonDef.h
- Timestamp:
- 18 Jun 2013, 23:24:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/CommonDef.h
r478 r479 178 178 } 179 179 180 #if H_3D_IV_MERGE181 #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 #endif213 180 template <typename T> 214 181 __inline T gSign(const T& t) … … 360 327 #define STD_CAM_PARAMETERS_PRECISION 5 ///< quarter luma sample accuarcy for derived disparities (as default) 361 328 362 #if H_3D_IV_MERGE363 // GT: To be checked if all of this is still necessary.364 #define PDM_USE_FOR_IVIEW 1365 #define PDM_USE_FOR_INTER 2366 #define PDM_USE_FOR_MERGE 4367 368 #define MAX_VIEW_NUM 10369 #define PDM_SUBSAMPLING_EXP 2 // subsampling factor is 2^PDM_SUBSAMPLING_EXP370 #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 overflow379 #define PDM_LOG4_SCALE_DENOMINATOR ( PDM_LOG2_MAX_ABS_NORMAL_DISPARITY + PDM_VIRT_DEPTH_PRECISION ) // accuracy of scaling factor380 #define PDM_OFFSET_SHIFT ( PDM_LOG2_MAX_ABS_NORMAL_DISPARITY ) // accuracy of offset381 382 #endif383 329 #endif // end of H_3D 384 330 //! \}
Note: See TracChangeset for help on using the changeset viewer.