Пример #1
0
void obs_source_video_render(obs_source_t source)
{
    if (source->callbacks.video_render) {
        if (source->filters.num && !source->rendering_filter)
            obs_source_render_filters(source);
        else
            obs_source_main_render(source);

    } else if (source->filter_target) {
        obs_source_video_render(source->filter_target);

    } else {
        obs_source_render_async_video(source);
    }
}
Пример #2
0
void obs_source_video_render(obs_source_t source)
{
	if (!source) return;

	if (source->filters.num && !source->rendering_filter)
		obs_source_render_filters(source);

	else if (source->info.video_render)
		obs_source_main_render(source);

	else if (source->filter_target)
		obs_source_video_render(source->filter_target);

	else
		obs_source_render_async_video(source);
}
Пример #3
0
void obs_source_video_render(obs_source_t source)
{
	if (source->callbacks.video_render) {
		if (source->filters.num && !source->rendering_filter) {
			source->rendering_filter = true;
			obs_source_video_render(source->filters.array[0]);
			source->rendering_filter = false;
		} else {
			source->callbacks.video_render(source->data);
		}

	} else if (source->filter_target) {
		obs_source_video_render(source->filter_target);

	} else {
		obs_source_render_async_video(source);
	}
}