/usr/share/php/Horde/Image/Exif/Parser/Base.php is in php-horde-image 2.5.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | <?php
/**
* Copyright 2009-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @author Michael J. Rubinsky <mrubinsk@horde.org>
* @category Horde
* @package Image
*/
/**
* TODO
*
* @author Michael J. Rubinsky <mrubinsk@horde.org>
* @category Horde
* @copyright 2009-2017 Horde LLC
* @package Image
*/
class Horde_Image_Exif_Parser_Base
{
/**
* Look up the data type.
*
* @param string The string representation of the hex type code.
*
* @return array An array containing the string type name in the 0 index
* and the integer size in the 1 index.
*/
protected function _lookupType($type)
{
switch($type) {
case '0001': $type = 'UBYTE'; $size = 1; break;
case '0002': $type = 'ASCII'; $size = 1; break;
case '0003': $type = 'USHORT'; $size = 2; break;
case '0004': $type = 'ULONG'; $size = 4; break;
case '0005': $type = 'URATIONAL'; $size = 8; break;
case '0006': $type = 'SBYTE'; $size = 1; break;
case '0007': $type = 'UNDEFINED'; $size = 1; break;
case '0008': $type = 'SSHORT'; $size = 2; break;
case '0009': $type = 'SLONG'; $size = 4; break;
case '000a': $type = 'SRATIONAL'; $size = 8; break;
case '000b': $type = 'FLOAT'; $size = 4; break;
case '000c': $type = 'DOUBLE'; $size = 8; break;
default: $type = 'error:' . $type; $size = 0; break;
}
return array($type, $size);
}
}
|