Commit c0cbe440 authored by Adam Wieckowski's avatar Adam Wieckowski
Browse files

switched default value for CodingStructure::initStructData::QP from -1 to...

switched default value for CodingStructure::initStructData::QP from -1 to MAX_INT (signalling that the QP value for the CS should not be set)
parent ae9412fc
......@@ -982,7 +982,7 @@ void CodingStructure::initStructData( const int &QP, const bool &_isLosses, cons
clearTUs();
clearCUs();
if( QP >= 0 )
if( QP < MAX_INT )
{
currQP[0] = currQP[1] = QP;
isLossless = _isLosses;
......
......@@ -172,7 +172,7 @@ public:
Distortion dist;
Distortion interHad;
void initStructData (const int &QP = -1, const bool &_isLosses = false, const bool &skipMotBuf = false);
void initStructData (const int &QP = MAX_INT, const bool &_isLosses = false, const bool &skipMotBuf = false);
void initSubStructure( CodingStructure& cs, const ChannelType chType, const UnitArea &subArea, const bool &isTuEnc);
void copyStructure (const CodingStructure& cs, const ChannelType chType, const bool copyTUs = false, const bool copyRecoBuffer = false);
......
......@@ -1792,7 +1792,7 @@ ChromaCbfs IntraSearch::xRecurIntraChromaCodingQT(CodingStructure &cs, Partition
saveCS.pcv = cs.pcv;
saveCS.picture = cs.picture;
saveCS.area.repositionTo( cs.area );
saveCS.initStructData( -1, false, true );
saveCS.initStructData( MAX_INT, false, true );
TransformUnit &tmpTU = saveCS.addTU(currArea, partitioner.chType);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment