Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
qode-optimizer
/
vendor
/
fileeye
/
pel
/
src
/
File Content:
PelFormat.php
<?php /* * PEL: PHP Exif Library. * A library with support for reading and * writing all Exif headers in JPEG and TIFF images using PHP. * * Copyright (C) 2004, 2005 Martin Geisler. * Copyright (C) 2017 Johannes Weberhofer. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program in the file COPYING; if not, write to the * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301 USA */ /** * Namespace for functions operating on Exif formats. * * This class defines the constants that are to be used whenever one * has to refer to the format of an Exif tag. They will be * collectively denoted by the pseudo-type PelFormat throughout the * documentation. * * All the methods defined here are static, and they all operate on a * single argument which should be one of the class constants. * * @author Martin Geisler <mgeisler@users.sourceforge.net> * @author Johannes Weberhofer <jweberhofer@weberhofer.at> * @license http://www.gnu.org/licenses/gpl.html GNU General Public * License (GPL) * @package * */ namespace lsolesen\pel; class PelFormat { /** * Unsigned byte. * * Each component will be an unsigned 8-bit integer with a value * between 0 and 255. * * Modelled with the {@link PelEntryByte} class. */ const BYTE = 1; /** * ASCII string. * * Each component will be an ASCII character. * * Modelled with the {@link PelEntryAscii} class. */ const ASCII = 2; /** * Unsigned short. * * Each component will be an unsigned 16-bit integer with a value * between 0 and 65535. * * Modelled with the {@link PelEntryShort} class. */ const SHORT = 3; /** * Unsigned long. * * Each component will be an unsigned 32-bit integer with a value * between 0 and 4294967295. * * Modelled with the {@link PelEntryLong} class. */ const LONG = 4; /** * Unsigned rational number. * * Each component will consist of two unsigned 32-bit integers * denoting the enumerator and denominator. Each integer will have * a value between 0 and 4294967295. * * Modelled with the {@link PelEntryRational} class. */ const RATIONAL = 5; /** * Signed byte. * * Each component will be a signed 8-bit integer with a value * between -128 and 127. * * Modelled with the {@link PelEntrySByte} class. */ const SBYTE = 6; /** * Undefined byte. * * Each component will be a byte with no associated interpretation. * * Modelled with the {@link PelEntryUndefined} class. */ const UNDEFINED = 7; /** * Signed short. * * Each component will be a signed 16-bit integer with a value * between -32768 and 32767. * * Modelled with the {@link PelEntrySShort} class. */ const SSHORT = 8; /** * Signed long. * * Each component will be a signed 32-bit integer with a value * between -2147483648 and 2147483647. * * Modelled with the {@link PelEntrySLong} class. */ const SLONG = 9; /** * Signed rational number. * * Each component will consist of two signed 32-bit integers * denoting the enumerator and denominator. Each integer will have * a value between -2147483648 and 2147483647. * * Modelled with the {@link PelEntrySRational} class. */ const SRATIONAL = 10; /** * Floating point number. * * Entries with this format are not currently implemented. */ const FLOAT = 11; /** * Double precision floating point number. * * Entries with this format are not currently implemented. */ const DOUBLE = 12; /** * Values for format's short names */ protected static $formatName = [ self::ASCII => 'Ascii', self::BYTE => 'Byte', self::SHORT => 'Short', self::LONG => 'Long', self::RATIONAL => 'Rational', self::SBYTE => 'SByte', self::SSHORT => 'SShort', self::SLONG => 'SLong', self::SRATIONAL => 'SRational', self::FLOAT => 'Float', self::DOUBLE => 'Double', self::UNDEFINED => 'Undefined' ]; protected static $formatLength = [ self::ASCII => 1, self::BYTE => 1, self::SHORT => 2, self::LONG => 4, self::RATIONAL => 8, self::SBYTE => 1, self::SSHORT => 2, self::SLONG => 4, self::SRATIONAL => 8, self::FLOAT => 4, self::DOUBLE => 8, self::UNDEFINED => 1 ]; /** * Returns the name of a format like 'Ascii' for the {@link ASCII} format * * @param integer $type * as defined in {@link PelFormat} * @return string */ public static function getName($type) { if (array_key_exists($type, self::$formatName)) { return self::$formatName[$type]; } throw new PelIllegalFormatException($type); } /** * Return the size of components in a given format in bytes needed to store one component with the * given format. * * @param integer $type * as defined in {@link PelFormat} * @return integer */ public static function getSize($type) { if (array_key_exists($type, self::$formatLength)) { return self::$formatLength[$type]; } throw new PelIllegalFormatException($type); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
Pel.php
10753 bytes
0644
PelCanonMakerNotes.php
8958 bytes
0644
PelConvert.php
14173 bytes
0644
PelDataWindow.php
19433 bytes
0644
PelDataWindowOffsetException.php
1141 bytes
0644
PelDataWindowWindowException.php
1378 bytes
0644
PelEntry.php
7985 bytes
0644
PelEntryAscii.php
3793 bytes
0644
PelEntryByte.php
3039 bytes
0644
PelEntryCopyright.php
5324 bytes
0644
PelEntryException.php
2475 bytes
0644
PelEntryLong.php
4156 bytes
0644
PelEntryNumber.php
8694 bytes
0644
PelEntryRational.php
6221 bytes
0644
PelEntrySByte.php
3313 bytes
0644
PelEntrySLong.php
3429 bytes
0644
PelEntrySRational.php
5485 bytes
0644
PelEntrySShort.php
36714 bytes
0644
PelEntryShort.php
15184 bytes
0644
PelEntryTime.php
12303 bytes
0644
PelEntryUndefined.php
5621 bytes
0644
PelEntryUserComment.php
4104 bytes
0644
PelEntryVersion.php
5093 bytes
0644
PelEntryWindowsString.php
5663 bytes
0644
PelException.php
2044 bytes
0644
PelExif.php
4439 bytes
0644
PelFormat.php
6131 bytes
0644
PelIfd.php
56077 bytes
0644
PelIfdException.php
1426 bytes
0644
PelIllegalFormatException.php
1534 bytes
0644
PelInvalidArgumentException.php
1387 bytes
0644
PelInvalidDataException.php
1375 bytes
0644
PelJpeg.php
23082 bytes
0644
PelJpegComment.php
2762 bytes
0644
PelJpegContent.php
2262 bytes
0644
PelJpegInvalidMarkerException.php
1898 bytes
0644
PelJpegMarker.php
11789 bytes
0644
PelMakerNotes.php
2417 bytes
0644
PelMakerNotesMalformedException.php
1676 bytes
0644
PelOverflowException.php
2121 bytes
0644
PelTag.php
69462 bytes
0644
PelTiff.php
10078 bytes
0644
PelUnexpectedFormatException.php
2622 bytes
0644
PelWrongComponentCountException.php
2189 bytes
0644
N4ST4R_ID | Naxtarrr