Commit 50f322d2 authored by Christian Helmrich's avatar Christian Helmrich

replace 3 by MAX_NUM_COMPONENT in previous commit

parent 44ec4c48
Pipeline #3069 passed with stage
......@@ -147,7 +147,7 @@ public:
#endif
double getChromaWeight() { return ((m_distortionWeight[COMPONENT_Cb] + m_distortionWeight[COMPONENT_Cr]) / 2.0); }
#if RDOQ_CHROMA_LAMBDA
double getDistortionWeight ( const ComponentID compID ) const { return m_distortionWeight[compID % 3]; }
double getDistortionWeight ( const ComponentID compID ) const { return m_distortionWeight[compID % MAX_NUM_COMPONENT]; }
#endif
void setCostMode(CostMode m) { m_costMode = m; }
......
Markdown is supported
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