1: <?php
2: 3: 4: 5:
6: class Horde_Image_Exif_Parser_Base
7: {
8: 9: 10: 11: 12: 13:
14: protected function _lookupType(&$type, &$size)
15: {
16: switch($type) {
17: case '0001': $type = 'UBYTE'; $size = 1; break;
18: case '0002': $type = 'ASCII'; $size = 1; break;
19: case '0003': $type = 'USHORT'; $size = 2; break;
20: case '0004': $type = 'ULONG'; $size = 4; break;
21: case '0005': $type = 'URATIONAL'; $size = 8; break;
22: case '0006': $type = 'SBYTE'; $size = 1; break;
23: case '0007': $type = 'UNDEFINED'; $size = 1; break;
24: case '0008': $type = 'SSHORT'; $size = 2; break;
25: case '0009': $type = 'SLONG'; $size = 4; break;
26: case '000a': $type = 'SRATIONAL'; $size = 8; break;
27: case '000b': $type = 'FLOAT'; $size = 4; break;
28: case '000c': $type = 'DOUBLE'; $size = 8; break;
29: default: $type = 'error:' . $type; $size = 0; break;
30: }
31: }
32: }