HEVC Test Model (HM)  HM-16.3
Public Member Functions | Private Attributes | List of all members
TComScalingList Class Reference

SCALING_LIST class. More...

#include <TComSlice.h>

Collaboration diagram for TComScalingList:
Collaboration graph
[legend]

Public Member Functions

virtual ~TComScalingList ()
 
IntgetScalingListAddress (UInt sizeId, UInt listId)
 get matrix coefficient More...
 
const IntgetScalingListAddress (UInt sizeId, UInt listId) const
 get matrix coefficient More...
 
Void setRefMatrixId (UInt sizeId, UInt listId, UInt u)
 set reference matrix ID More...
 
UInt getRefMatrixId (UInt sizeId, UInt listId) const
 get reference matrix ID More...
 
Void setScalingListDC (UInt sizeId, UInt listId, UInt u)
 set DC value More...
 
Int getScalingListDC (UInt sizeId, UInt listId) const
 get DC value More...
 
Void setScalingListPredModeFlag (UInt sizeId, UInt listId, Bool bIsDPCM)
 
Bool getScalingListPredModeFlag (UInt sizeId, UInt listId) const
 

Private Attributes

Bool m_scalingListPredModeFlagIsDPCM [SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
 reference list index More...
 
Int m_scalingListDC [SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
 the DC value of the matrix coefficient for 16x16 More...
 
UInt m_refMatrixId [SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
 RefMatrixID. More...
 
std::vector< Intm_scalingListCoef [SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
 quantization matrix More...
 
 TComScalingList ()
 
Void checkPredMode (UInt sizeId, UInt listId)
 
IntgetScalingListDefaultAddress (UInt sizeId, UInt listId)
 get default matrix coefficient More...
 
Void processDefaultMatrix (UInt sizeId, UInt listId)
 
Void checkDcOfMatrix ()
 
Void processRefMatrix (UInt sizeId, UInt listId, UInt refListId)
 
Bool xParseScalingList (Char *pchFile)
 
Void setDefaultScalingList ()
 
Bool checkDefaultScalingList ()
 
Void outputScalingLists (std::ostream &os) const
 

Detailed Description

SCALING_LIST class.

Definition at line 150 of file TComSlice.h.

Constructor & Destructor Documentation

TComScalingList::TComScalingList ( )

Definition at line 1933 of file TComSlice.cpp.

virtual TComScalingList::~TComScalingList ( )
inlinevirtual

Definition at line 154 of file TComSlice.h.

Member Function Documentation

Void TComScalingList::checkDcOfMatrix ( )

check DC value of matrix for default matrix signaling

Definition at line 2227 of file TComSlice.cpp.

Bool TComScalingList::checkDefaultScalingList ( )

check if use default quantization matrix

Returns
true if use default quantization matrix in all size

Definition at line 1959 of file TComSlice.cpp.

Void TComScalingList::checkPredMode ( UInt  sizeId,
UInt  listId 
)

Definition at line 1988 of file TComSlice.cpp.

UInt TComScalingList::getRefMatrixId ( UInt  sizeId,
UInt  listId 
) const
inline

get reference matrix ID

Definition at line 160 of file TComSlice.h.

Int* TComScalingList::getScalingListAddress ( UInt  sizeId,
UInt  listId 
)
inline

get matrix coefficient

Definition at line 155 of file TComSlice.h.

const Int* TComScalingList::getScalingListAddress ( UInt  sizeId,
UInt  listId 
) const
inline

get matrix coefficient

Definition at line 156 of file TComSlice.h.

Int TComScalingList::getScalingListDC ( UInt  sizeId,
UInt  listId 
) const
inline

get DC value

Definition at line 166 of file TComSlice.h.

Int * TComScalingList::getScalingListDefaultAddress ( UInt  sizeId,
UInt  listId 
)

get default matrix coefficient

get default address of quantization matrix

Parameters
sizeIdsize index
listIdlist index
Returns
pointer of quantization matrix

Definition at line 2194 of file TComSlice.cpp.

Bool TComScalingList::getScalingListPredModeFlag ( UInt  sizeId,
UInt  listId 
) const
inline

Definition at line 169 of file TComSlice.h.

Void TComScalingList::outputScalingLists ( std::ostream &  os) const
private

Definition at line 2036 of file TComSlice.cpp.

Void TComScalingList::processDefaultMatrix ( UInt  sizeId,
UInt  listId 
)

process of default matrix

Parameters
sizeIdsize index
listIdindex of input matrix

Definition at line 2219 of file TComSlice.cpp.

Void TComScalingList::processRefMatrix ( UInt  sizeId,
UInt  listId,
UInt  refListId 
)

get scaling matrix from RefMatrixID

Parameters
sizeIdsize index
listIdindex of input matrix
refListIdindex of reference matrix

Definition at line 1983 of file TComSlice.cpp.

Void TComScalingList::setDefaultScalingList ( )

set default quantization matrix to array

Definition at line 1946 of file TComSlice.cpp.

Void TComScalingList::setRefMatrixId ( UInt  sizeId,
UInt  listId,
UInt  u 
)
inline

set reference matrix ID

Definition at line 159 of file TComSlice.h.

Void TComScalingList::setScalingListDC ( UInt  sizeId,
UInt  listId,
UInt  u 
)
inline

set DC value

Definition at line 165 of file TComSlice.h.

Void TComScalingList::setScalingListPredModeFlag ( UInt  sizeId,
UInt  listId,
Bool  bIsDPCM 
)
inline

Definition at line 168 of file TComSlice.h.

Bool TComScalingList::xParseScalingList ( Char pchFile)

Definition at line 2065 of file TComSlice.cpp.

Member Data Documentation

UInt TComScalingList::m_refMatrixId[SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
private

RefMatrixID.

Definition at line 181 of file TComSlice.h.

std::vector<Int> TComScalingList::m_scalingListCoef[SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
private

quantization matrix

Definition at line 182 of file TComSlice.h.

Int TComScalingList::m_scalingListDC[SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
private

the DC value of the matrix coefficient for 16x16

Definition at line 180 of file TComSlice.h.

Bool TComScalingList::m_scalingListPredModeFlagIsDPCM[SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
private

reference list index

Definition at line 179 of file TComSlice.h.


The documentation for this class was generated from the following files: