uint32_t obs_encoder_get_height(const obs_encoder_t *encoder) { if (!encoder || !encoder->media || encoder->info.type != OBS_ENCODER_VIDEO) return 0; return encoder->scaled_width != 0 ? encoder->scaled_height : video_output_get_height(encoder->media); }
uint32_t obs_output_get_height(const obs_output_t *output) { if (!output || (output->info.flags & OBS_OUTPUT_VIDEO) == 0) return 0; if (output->info.flags & OBS_OUTPUT_ENCODED) return obs_encoder_get_height(output->video_encoder); else return output->scaled_height != 0 ? output->scaled_height : video_output_get_height(output->video); }
uint32_t obs_encoder_get_height(const obs_encoder_t *encoder) { if (!obs_encoder_valid(encoder, "obs_encoder_get_height")) return 0; if (encoder->info.type != OBS_ENCODER_VIDEO) { blog(LOG_WARNING, "obs_encoder_get_height: " "encoder '%s' is not a video encoder", obs_encoder_get_name(encoder)); return 0; } if (!encoder->media) return 0; return encoder->scaled_width != 0 ? encoder->scaled_height : video_output_get_height(encoder->media); }