pub unsafe extern "C" fn obs_encoder_set_preferred_video_format(
encoder: *mut obs_encoder_t,
format: video_format,
)
Expand description
Sets the preferred video format for a video encoder. If the encoder can use the format specified, it will force a conversion to that format if the obs output format does not match the preferred format.
If the format is set to VIDEO_FORMAT_NONE, will revert to the default functionality of converting only when absolutely necessary.