fn compute_tx_distortion<T: Pixel>(
fi: &FrameInvariants<T>,
ts: &TileStateMut<'_, T>,
bsize: BlockSize,
is_chroma_block: bool,
tile_bo: TileBlockOffset,
tx_dist: ScaledDistortion,
skip: bool,
luma_only: bool,
) -> ScaledDistortion