Merge "Use median instead of mean for sampling border luma" into rvc-dev