Ignore:
Timestamp:
24 Feb 2012, 20:22:58 (15 years ago)
Author:
poznan-univ
Message:

Poznan Tools

  • Encoding only disoccluded CUs in depended views
  • Depth based motion prediction
  • Texture QP adjustment based on depth data
  • Nonlinear depth representation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.3-poznan-univ/source/Lib/TLibCommon/CommonDef.h

    r21 r28  
    138138
    139139
    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)
    141141#define DEPTH_MAP_GENERATION        1
    142142#else
    143143#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
    144150#endif
    145151
     
    174180#define OUTPUT_RESIDUAL_PICTURES          0         // output residual pictures (for debugging)
    175181
    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
     195inline 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
     203inline Float dequantizeDepthPower(Int iDepthQuant)
     204{
     205  return iDepthQuant/128.0f + 1.0f; 
     206};
     207#endif
    178208
    179209// ====================================================================================================================
     
    186216#define Clip(x)                     ( Min(g_uiIBDI_MAX, Max( 0, (x)) ) )                              ///< clip with bit-depth range
    187217#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
    189227
    190228#define DATA_ALIGN                  1                                                                 ///< use 32-bit aligned malloc/free
     
    216254#define AMVP_MAX_NUM_CANDS          6           ///< max number of final candidates
    217255// 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
    218260#define MRG_MAX_NUM_CANDS           6
     261#endif
    219262
    220263// Reference memory management
Note: See TracChangeset for help on using the changeset viewer.