pub unsafe extern "C" fn obs_output_set_preferred_size(
    output: *mut obs_output_t,
    width: u32,
    height: u32
)
Expand description

Sets the preferred scaled resolution for this output. Set width and height to 0 to disable scaling.

If this output uses an encoder, it will call obs_encoder_set_scaled_size on the encoder before the stream is started. If the encoder is already active, then this function will trigger a warning and do nothing.