source/Lib/CommonLib/Slice.cpp
const int* ScalingList::getScalingListDefaultAddress(uint32_t scalingListId)
{
  const int *src = 0;
  int sizeId = (scalingListId < SCALING_LIST_1D_START_8x8) ? 2 : 3;
  switch(sizeId)
  {
    case SCALING_LIST_1x1:
    case SCALING_LIST_2x2:
    case SCALING_LIST_4x4:
      src = g_quantTSDefault4x4;
      break;
    case SCALING_LIST_8x8:
    case SCALING_LIST_16x16:
    case SCALING_LIST_32x32:
    case SCALING_LIST_64x64:
      src = g_quantInterDefault8x8;
      break;
    default:
      THROW( "Invalid scaling list" );
      src = NULL;
      break;
  }
  return src;
}
/** get default address of quantization matrix
 * \param sizeId size index
 * \param listId list index
 * \returns pointer of quantization matrix
 */
get default address of quantization matrix
\param sizeId size index
\param listId list index
\returns pointer of quantization matrix
get default address of quantization matrix \ param sizeId size index \ param listId list index \ returns pointer of quantization matrix
const int* ScalingList::getScalingListDefaultAddress(uint32_t scalingListId)
{
  const int *src = 0;
  int sizeId = (scalingListId < SCALING_LIST_1D_START_8x8) ? 2 : 3;
  switch(sizeId)
  {
    case SCALING_LIST_1x1:
    case SCALING_LIST_2x2:
    case SCALING_LIST_4x4:
      src = g_quantTSDefault4x4;
      break;
    case SCALING_LIST_8x8:
    case SCALING_LIST_16x16:
    case SCALING_LIST_32x32:
    case SCALING_LIST_64x64:
      src = g_quantInterDefault8x8;
      break;
    default:
      THROW( "Invalid scaling list" );
      src = NULL;
      break;
  }
  return src;
}
const int * ScalingList :: getScalingListDefaultAddress ( uint32_t scalingListId ) { const int * src = 0 ; int sizeId = ( scalingListId < SCALING_LIST_1D_START_8x8 ) ? 2 : 3 ; switch ( sizeId ) { case SCALING_LIST_1x1 : case SCALING_LIST_2x2 : case SCALING_LIST_4x4 : src = g_quantTSDefault4x4 ; break ; case SCALING_LIST_8x8 : case SCALING_LIST_16x16 : case SCALING_LIST_32x32 : case SCALING_LIST_64x64 : src = g_quantInterDefault8x8 ; break ; default : THROW ( " " ) ; src = NULL ; break ; } return src ; }
get default address of quantization matrix
 \param sizeId size index
 \param listId list index
 \returns pointer of quantization matrix
get default address of quantization matrix \ param sizeId size index \ param listId list index \ returns pointer of quantization matrix