How to calculate rate distortion costs for coding unit size

please tell the answer as early as possible thank you

welcome.

perhaps you should expand a little on your demands?