}
}
private static Format[] getFormats(CaptureSystem system, String deviceID) throws CaptureException
{
final CaptureStream captureStream = system.openCaptureDeviceStream(deviceID);
final List<com.lti.civil.VideoFormat> formatList = captureStream.enumVideoFormats();
final Format[] formats = new Format[formatList.size()];
for (int j = 0; j < formatList.size(); j++)
{
formats[j] = net.sf.fmj.media.protocol.civil.DataSource.convertCivilFormat(formatList.get(j));
}
captureStream.dispose();
return formats;
}