diff options
author | Robin Gareus <robin@gareus.org> | 2014-04-21 04:39:25 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-04-21 04:39:25 +0200 |
commit | bd9dba1f4d4699abeed32c8f8d3db517c5cc3c44 (patch) | |
tree | 7997d369b28d58c50d59330b4d9065dd8865cfd5 /tools | |
parent | 5b45e011bc1e39a1e1b316b9f0d141187585aaeb (diff) |
really fix vsrv.php script. support new A3.5-CC (BGRA images, CSV)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/videotimeline/vsrv.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tools/videotimeline/vsrv.php b/tools/videotimeline/vsrv.php index 93ee9b2c38..fb0c98f6d4 100644 --- a/tools/videotimeline/vsrv.php +++ b/tools/videotimeline/vsrv.php @@ -47,6 +47,9 @@ if (isset($_REQUEST['format'])) { case 'rgba': $fmt='rgba'; break; + case 'bgra': + $fmt='bgra'; + break; case 'rgb': $fmt='rgb'; break; @@ -99,21 +102,22 @@ else if (preg_match('@Video:.* ([0-9]+x[0-9]+),@m',$nfo, $m)) { } 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; } |