pub unsafe extern "C" fn obs_output_set_preferred_size2(
output: *mut obs_output_t,
width: u32,
height: u32,
idx: usize,
)
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.
The idx parameter specifies the video encoder index to apply the scaling to. Only used with outputs that have multiple video outputs (FFmpeg typically), otherwise the parameter is ignored.