get static method
Get the video info.
Implementation
static DiveVideoInfo? get() {
final videoInfo = obslib.videoGetInfo();
if (videoInfo == null) return null;
final fps = DiveCoreFPS.values(videoInfo['fps_num'], videoInfo['fps_den']);
final baseRes = DiveCoreResolution(
DiveCoreResolution.nameOf(videoInfo['base_width'], videoInfo['base_height']) ?? '',
videoInfo['base_width'],
videoInfo['base_height'],
);
final outputRes = DiveCoreResolution(
DiveCoreResolution.nameOf(videoInfo['output_width'], videoInfo['output_height']) ?? '',
videoInfo['output_width'],
videoInfo['output_height'],
);
return DiveVideoInfo(
graphicsModule: videoInfo['graphics_module'],
fps: fps,
baseResolution: baseRes,
outputResolution: outputRes,
outputFormat: DiveVideoFormat.values[videoInfo['output_format']],
adapter: videoInfo['adapter'],
gpuConversion: videoInfo['gpu_conversion'],
colorspace: videoInfo['colorspace'],
range: videoInfo['range'],
scaleType: videoInfo['scale_type'],
);
}