diff options
author | Alib <aliboba@free.fr> | 2010-03-15 17:56:22 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-15 17:56:22 +0100 |
commit | 438912c0c4a4075a5cd74cf9689451c9df4bbe34 (patch) | |
tree | 334e03bbba01b002a34d3cbf81ee7e600ec7bff6 /getid3/module.graphic.svg.php | |
parent | a8012963c23e7e5eaf487ee9e192ae5c4d4ccff2 (diff) | |
download | istreamdev-438912c0c4a4075a5cd74cf9689451c9df4bbe34.tar.gz istreamdev-438912c0c4a4075a5cd74cf9689451c9df4bbe34.tar.bz2 |
New Jquery branch. Initial development version for istreamdev 1.0
Diffstat (limited to 'getid3/module.graphic.svg.php')
-rw-r--r-- | getid3/module.graphic.svg.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/getid3/module.graphic.svg.php b/getid3/module.graphic.svg.php deleted file mode 100644 index e447145..0000000 --- a/getid3/module.graphic.svg.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php -///////////////////////////////////////////////////////////////// -/// getID3() by James Heinrich <info@getid3.org> // -// available at http://getid3.sourceforge.net // -// or http://www.getid3.org // -///////////////////////////////////////////////////////////////// -// See readme.txt for more details // -///////////////////////////////////////////////////////////////// -// // -// module.graphic.svg.php // -// module for analyzing SVG Image files // -// dependencies: NONE // -// author: Bryce Harrington <bryceØbryceharrington*org> // -// /// -///////////////////////////////////////////////////////////////// - - -class getid3_svg -{ - - - function getid3_svg(&$fd, &$ThisFileInfo) { - fseek($fd, $ThisFileInfo['avdataoffset'], SEEK_SET); - - // I'm making this up, please modify as appropriate - $SVGheader = fread($fd, 32); - $ThisFileInfo['svg']['magic'] = substr($SVGheader, 0, 4); - if ($ThisFileInfo['svg']['magic'] == 'aBcD') { - - $ThisFileInfo['fileformat'] = 'svg'; - $ThisFileInfo['video']['dataformat'] = 'svg'; - $ThisFileInfo['video']['lossless'] = true; - $ThisFileInfo['video']['bits_per_sample'] = 24; - $ThisFileInfo['video']['pixel_aspect_ratio'] = (float) 1; - - $ThisFileInfo['svg']['width'] = getid3_lib::LittleEndian2Int(substr($fileData, 4, 4)); - $ThisFileInfo['svg']['height'] = getid3_lib::LittleEndian2Int(substr($fileData, 8, 4)); - - $ThisFileInfo['video']['resolution_x'] = $ThisFileInfo['svg']['width']; - $ThisFileInfo['video']['resolution_y'] = $ThisFileInfo['svg']['height']; - - return true; - } - $ThisFileInfo['error'][] = 'Did not find SVG magic bytes "aBcD" at '.$ThisFileInfo['avdataoffset']; - unset($ThisFileInfo['fileformat']); - return false; - } - -} - - -?>
\ No newline at end of file |