Looking at that, I don't see what it achieves? We only pass the output format when recreating the wg_transform and in GetOutputSizeInfo(), but we don't recreate the wg_transform here, and in practice the width and height shouldn't change.
OK, so we remove the format argument in `wg_transform_read_dmo()`?