Make RdCost members non-`static` to use correct weighting tables for each layer in multilayer encoding

LMCS mapping and scaling values are passed as static members of RdCost class, but this mixes up the parameters for each layers. To fix this, non-static members are used with non-static member functions in RdCost when weighting is used.

Merge request reports

Loading