New upstream version 26.1.0+dfsg1
This commit is contained in:
parent
040dcc3fc2
commit
013818c4af
594 changed files with 19576 additions and 4478 deletions
|
|
@ -418,3 +418,51 @@ const char *obs_service_get_output_type(const obs_service_t *service)
|
|||
return service->info.get_output_type(service->context.data);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void obs_service_get_supported_resolutions(
|
||||
const obs_service_t *service,
|
||||
struct obs_service_resolution **resolutions, size_t *count)
|
||||
{
|
||||
if (!obs_service_valid(service, "obs_service_supported_resolutions"))
|
||||
return;
|
||||
if (!obs_ptr_valid(resolutions, "obs_service_supported_resolutions"))
|
||||
return;
|
||||
if (!obs_ptr_valid(count, "obs_service_supported_resolutions"))
|
||||
return;
|
||||
|
||||
*resolutions = NULL;
|
||||
*count = 0;
|
||||
|
||||
if (service->info.get_supported_resolutions)
|
||||
service->info.get_supported_resolutions(service->context.data,
|
||||
resolutions, count);
|
||||
}
|
||||
|
||||
void obs_service_get_max_fps(const obs_service_t *service, int *fps)
|
||||
{
|
||||
if (!obs_service_valid(service, "obs_service_get_max_fps"))
|
||||
return;
|
||||
if (!obs_ptr_valid(fps, "obs_service_get_max_fps"))
|
||||
return;
|
||||
|
||||
*fps = 0;
|
||||
|
||||
if (service->info.get_max_fps)
|
||||
service->info.get_max_fps(service->context.data, fps);
|
||||
}
|
||||
|
||||
void obs_service_get_max_bitrate(const obs_service_t *service,
|
||||
int *video_bitrate, int *audio_bitrate)
|
||||
{
|
||||
if (video_bitrate)
|
||||
*video_bitrate = 0;
|
||||
if (audio_bitrate)
|
||||
*audio_bitrate = 0;
|
||||
|
||||
if (!obs_service_valid(service, "obs_service_get_max_bitrate"))
|
||||
return;
|
||||
|
||||
if (service->info.get_max_bitrate)
|
||||
service->info.get_max_bitrate(service->context.data,
|
||||
video_bitrate, audio_bitrate);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue