Ignore:
Timestamp:
6 Jun 2013, 11:46:05 (11 years ago)
Author:
hhi
Message:

Integation of depth intra methods in macro H_3D_DIM, including:

  • DMM coding modes in H_3D_DIM_DMM.
  • RBC coding mode in H_3D_DIM_RBC.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev1/source/Lib/TLibCommon/ContextTables.h

    r324 r459  
    9797#define CNU                          154      ///< dummy initialization value for unused context models 'Context model Not Used'
    9898
     99#if H_3D_DIM
     100#define NUM_DEPTH_INTRA_MODE_CTX      8       ///< number of context models for depth intra modes
     101#define NUM_DDC_FLAG_CTX              2       ///< number of context models for deltaDC flag (DMM or RBC)
     102#define NUM_DDC_DATA_CTX              2       ///< number of context models for deltaDC data (DMM or RBC)
     103#if H_3D_DIM_DMM
     104#define NUM_DMM1_DATA_CTX             1       ///< number of context models for DMM1 data
     105#define NUM_DMM2_DATA_CTX             1       ///< number of context models for DMM2 data
     106#define NUM_DMM3_DATA_CTX             1       ///< number of context models for DMM3 data
     107#endif
     108#if H_3D_DIM_RBC
     109#define NUM_RBC_DATA_CTX              1       ///< number of context models for RBC data
     110#endif
     111#endif
     112
    99113// ====================================================================================================================
    100114// Tables
     
    334348  { 139,  139},
    335349};
     350
     351#if H_3D_DIM
     352static const UChar
     353INIT_DEPTH_INTRA_MODE[3][NUM_DEPTH_INTRA_MODE_CTX] =
     354{
     355  {0,  0,  64,   0, CNU,   0, CNU, 0},
     356  {0, 64,   0, CNU,   0, CNU,   0, 0},
     357  {64, 0, CNU,   0, CNU,   0,   0, 0}
     358};
     359static const UChar
     360INIT_DDC_FLAG[3][NUM_DDC_FLAG_CTX] =
     361{
     362  {0 , CNU},
     363  {0 , CNU},
     364  {64, CNU}
     365};
     366static const UChar
     367INIT_DDC_DATA[3][NUM_DDC_DATA_CTX] =
     368{
     369  { CNU, CNU },
     370  { CNU, CNU },
     371  { CNU, CNU },
     372};
     373#if H_3D_DIM_DMM
     374static const UChar
     375INIT_DMM1_DATA[3][NUM_DMM1_DATA_CTX] =
     376{
     377  { CNU },
     378  { CNU },
     379  { CNU },
     380};
     381static const UChar
     382INIT_DMM2_DATA[3][NUM_DMM2_DATA_CTX] =
     383{
     384  { CNU },
     385  { CNU },
     386  { CNU },
     387};
     388static const UChar
     389INIT_DMM3_DATA[3][NUM_DMM3_DATA_CTX] =
     390{
     391  { CNU },
     392  { CNU },
     393  { CNU },
     394};
     395#endif
     396#if H_3D_DIM_RBC
     397static const UChar
     398INIT_RBC_DATA[3][NUM_RBC_DATA_CTX] =
     399{
     400  { CNU },
     401  { CNU },
     402  { CNU },
     403};
     404#endif
     405#endif
    336406//! \}
    337407
Note: See TracChangeset for help on using the changeset viewer.