- Timestamp:
- Jan 19, 2010, 12:31:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/JpegMetaData/Common/MakerNotesSignatures.class.php
r4686 r4705 35 35 * Define the maker notes signatures for the EXIF "MakerNote" tag 36 36 * 37 * This class provides theses public functions : 38 * - (static) getMaker 39 * - (static) setExifMaker 40 * - (static) getExifMaker 41 * 37 42 * ----------------------------------------------------------------------------- 38 43 */ 39 44 40 45 define("MAKER_PENTAX", "Pentax"); 46 define("MAKER_NIKON", "Nikon"); 47 define("MAKER_CANON", "Canon"); 41 48 42 49 Class MakerNotesSignatures … … 51 58 const Nikon2Header = "Nikon\x00\x01\x00"; 52 59 /** Nikon 3 signature */ 53 const Nikon3Header = "Nikon\x00\x02 \x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";60 const Nikon3Header = "Nikon\x00\x02"; 54 61 /** Panasonic signature */ 55 62 const PanasonicHeader = "Panasonic\x00\x00\x00"; … … 74 81 const FujiFilmHeaderSize = 12; 75 82 const Nikon2HeaderSize = 8; 76 const Nikon3HeaderSize = 18;83 const Nikon3HeaderSize = 7; 77 84 const PanasonicHeaderSize = 12; 78 85 const PentaxHeaderSize = 6; … … 82 89 const SonyHeaderSize = 12; 83 90 const CanonHeaderSize = 0; 84 const UnknownHeaderSize 91 const UnknownHeaderSize = 0; 85 92 93 static private $exifMaker = ""; 86 94 87 95 static public function getMaker($datas) … … 111 119 else 112 120 { return(self::UnknownHeader); } 121 } 113 122 123 /** 124 * this function is used by IFD Reader to store all information about maker 125 * and camera model 126 * 127 * the stored value if used within a grep like "/canon/i" to determine the 128 * maker note. 129 * For more information about this tricks see the how the tag 0x927c is 130 * managed in the function "processSpecialTag" of the file 131 * IfdReader.class.php 132 * 133 * @param String $value : the maker or the camera model 134 */ 135 static public function setExifMaker($value) 136 { 137 if(is_array($value)) 138 { 139 foreach($value as $val) 140 { 141 self::$exifMaker.=$val." "; 142 } 143 } 144 else 145 { 146 self::$exifMaker.=$value." "; 147 } 148 return(self::$exifMaker); 114 149 } 150 151 /** 152 * this function is used by IFD Reader to store all information about maker 153 * and camera model 154 * 155 * @return String 156 */ 157 static public function getExifMaker() 158 { 159 return(self::$exifMaker); 160 } 161 115 162 } 116 163
Note: See TracChangeset
for help on using the changeset viewer.