parseFrameFormat static method
Parses frame format from int to string
-1 is returned if frame format is not valid
Implementation
static String parseFrameFormat(int frameFormat) {
final typeList = ['8U', '8S', '16U', '16S', '32S', '32F', '64F'];
if (frameFormat == -1) {
return "UnknownFormat";
}
return '${typeList[frameFormat % 8]}C${frameFormat ~/ 8 + 1}';
}