case 'rgba':
$fmt='rgba';
break;
+ case 'bgra':
+ $fmt='bgra';
+ break;
case 'rgb':
$fmt='rgb';
break;
}
if ($mode=='info') {
- # Protocol Version number
- # FPS
- # duration (in frames)
- # start-offset (in seconds)
- # aspect-ratio
if (isset($_REQUEST['format'])) {
switch ($_REQUEST['format']) {
case 'csv':
- echo "1,$fr,$df,$so,$ar\n";
+ # protocol, width, height, aspect, fps, fps, duration
+ echo "1,0,0,$ar,$fr,$df\n";
exit;
break;
default:
break;
}
}
+ # Protocol Version number
+ # FPS
+ # duration (in frames)
+ # start-offset (in seconds)
+ # aspect-ratio
echo "1\n$fr\n$df\n$so\n$ar\n";
exit;
}