getID3() by James Heinrich info@.nosp@m.geti.nosp@m.d3.or.nosp@m.g //
More...
◆ getid3_svg()
getid3_svg::getid3_svg |
( |
& |
$fd, |
|
|
& |
$ThisFileInfo |
|
) |
| |
Definition at line 22 of file module.graphic.svg.php.
References getid3_lib\LittleEndian2Int().
23 fseek($fd, $ThisFileInfo[
'avdataoffset'], SEEK_SET);
26 $SVGheader = fread($fd, 32);
27 $ThisFileInfo[
'svg'][
'magic'] = substr($SVGheader, 0, 4);
28 if ($ThisFileInfo[
'svg'][
'magic'] ==
'aBcD') {
30 $ThisFileInfo[
'fileformat'] =
'svg';
31 $ThisFileInfo[
'video'][
'dataformat'] =
'svg';
32 $ThisFileInfo[
'video'][
'lossless'] =
true;
33 $ThisFileInfo[
'video'][
'bits_per_sample'] = 24;
34 $ThisFileInfo[
'video'][
'pixel_aspect_ratio'] = (float) 1;
39 $ThisFileInfo[
'video'][
'resolution_x'] = $ThisFileInfo[
'svg'][
'width'];
40 $ThisFileInfo[
'video'][
'resolution_y'] = $ThisFileInfo[
'svg'][
'height'];
44 $ThisFileInfo[
'error'][] =
'Did not find SVG magic bytes "aBcD" at '.$ThisFileInfo[
'avdataoffset'];
45 unset($ThisFileInfo[
'fileformat']);
LittleEndian2Int($byteword, $signed=false)
The documentation for this class was generated from the following file: