HEVC Test Model (HM)  HM-16.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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][SCALING_LIST_NUM]
 reference list index More...
 
Int m_scalingListDC [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]
 the DC value of the matrix coefficient for 16x16 More...
 
UInt m_refMatrixId [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]
 RefMatrixID. More...
 
std::vector< Intm_scalingListCoef [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]
 quantization matrix More...
 
 TComScalingList ()
 
Void checkPredMode (UInt sizeId, UInt listId)
 
const 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 (const std::string &fileName)
 
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 1783 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 2077 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 1809 of file TComSlice.cpp.

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

Definition at line 1838 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.

const 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 2044 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 1886 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 2069 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 1833 of file TComSlice.cpp.

Void TComScalingList::setDefaultScalingList ( )

set default quantization matrix to array

Definition at line 1796 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 ( const std::string &  fileName)

Definition at line 1915 of file TComSlice.cpp.

Member Data Documentation

UInt TComScalingList::m_refMatrixId[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]
private

RefMatrixID.

Definition at line 181 of file TComSlice.h.

std::vector<Int> TComScalingList::m_scalingListCoef[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]
private

quantization matrix

Definition at line 182 of file TComSlice.h.

Int TComScalingList::m_scalingListDC[SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]
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][SCALING_LIST_NUM]
private

reference list index

Definition at line 179 of file TComSlice.h.


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