~ubuntu-branches/ubuntu/maverick/mediawiki/maverick

« back to all changes in this revision

Viewing changes to includes/Exif.php

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2009-06-19 01:38:50 UTC
  • mfrom: (16.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090619013850-dsn4lrxvs90ab4rx
Tags: 1:1.15.0-1
* New upstream release. 
* Upstream added support for OASIS documents.
Closes: #530328
* Refreshed quilt patches
* Bumped standards versions to 3.8.2
* Bumped compat to 7
* Pointed to GPL-2 in debian/copyright
* Added php5-sqlite to possible DB backend dependencies.
Closes: #501569
* Proofread README.Debian, upgrade is documented there.
Closes: #520121

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
/**
3
 
 * @ingroup Media
4
 
 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
5
 
 * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
6
 
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
7
 
 *
8
3
 * This program is free software; you can redistribute it and/or modify
9
4
 * it under the terms of the GNU General Public License as published by
10
5
 * the Free Software Foundation; either version 2 of the License, or
20
15
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
16
 * http://www.gnu.org/copyleft/gpl.html
22
17
 *
 
18
 * @ingroup Media
 
19
 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
 
20
 * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
 
21
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
23
22
 * @see http://exif.org/Exif2-2.PDF The Exif 2.2 specification
 
23
 * @file
24
24
 */
25
25
 
26
26
/**
28
28
 * @ingroup Media
29
29
 */
30
30
class Exif {
 
31
 
 
32
        const BYTE      = 1;    //!< An 8-bit (1-byte) unsigned integer.
 
33
        const ASCII     = 2;    //!< An 8-bit byte containing one 7-bit ASCII code. The final byte is terminated with NULL.
 
34
        const SHORT     = 3;    //!< A 16-bit (2-byte) unsigned integer.
 
35
        const LONG      = 4;    //!< A 32-bit (4-byte) unsigned integer.
 
36
        const RATIONAL  = 5;    //!< Two LONGs. The first LONG is the numerator and the second LONG expresses the denominator
 
37
        const UNDEFINED = 7;    //!< An 8-bit byte that can take any value depending on the field definition
 
38
        const SLONG     = 9;    //!< A 32-bit (4-byte) signed integer (2's complement notation),
 
39
        const SRATIONAL = 10;   //!< Two SLONGs. The first SLONG is the numerator and the second SLONG is the denominator.
 
40
 
31
41
        //@{
32
42
        /* @var array
33
43
         * @private
34
44
         */
35
45
 
36
 
        /**#@+
37
 
         * Exif tag type definition
38
 
         */
39
 
        const BYTE      = 1;    # An 8-bit (1-byte) unsigned integer.
40
 
        const ASCII     = 2;    # An 8-bit byte containing one 7-bit ASCII code. The final byte is terminated with NULL.
41
 
        const SHORT     = 3;    # A 16-bit (2-byte) unsigned integer.
42
 
        const LONG      = 4;    # A 32-bit (4-byte) unsigned integer.
43
 
        const RATIONAL  = 5;    # Two LONGs. The first LONG is the numerator and the second LONG expresses the denominator
44
 
        const UNDEFINED = 7;    # An 8-bit byte that can take any value depending on the field definition
45
 
        const SLONG     = 9;    # A 32-bit (4-byte) signed integer (2's complement notation),
46
 
        const SRATIONAL = 10;   # Two SLONGs. The first SLONG is the numerator and the second SLONG is the denominator.
47
 
 
48
46
        /**
49
47
         * Exif tags grouped by category, the tagname itself is the key and the type
50
48
         * is the value, in the case of more than one possible value type they are