-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare first 2.9.1-alpha.1 version.
- Loading branch information
Showing
13 changed files
with
477 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/php/Gomoob/MetadataExtractor/Metadata/Gif/GifHeaderDescriptor.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* gomoob/php-metadata-extractor | ||
* | ||
* @copyright Copyright (c) 2016, GOMOOB SARL (http://gomoob.com) | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE.md file) | ||
*/ | ||
namespace Gomoob\MetadataExtractor\Metadata\Gif; | ||
|
||
use Gomoob\MetadataExtractor\Metadata\TagDescriptor; | ||
|
||
/** | ||
* @author Baptiste GAILLARD (baptiste.gaillard@gomoob.com) | ||
*/ | ||
class GifHeaderDescriptor extends TagDescriptor | ||
{ | ||
|
||
} |
64 changes: 64 additions & 0 deletions
64
src/main/php/Gomoob/MetadataExtractor/Metadata/Gif/GifHeaderDirectory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
/** | ||
* gomoob/php-metadata-extractor | ||
* | ||
* @copyright Copyright (c) 2016, GOMOOB SARL (http://gomoob.com) | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE.md file) | ||
*/ | ||
namespace Gomoob\MetadataExtractor\Metadata\Gif; | ||
|
||
use Gomoob\MetadataExtractor\Metadata\Directory; | ||
|
||
/** | ||
* @author Baptiste GAILLARD (baptiste.gaillard@gomoob.com) | ||
*/ | ||
class GifHeaderDirectory extends Directory | ||
{ | ||
const TAG_GIF_FORMAT_VERSION = 1; | ||
const TAG_IMAGE_WIDTH = 2; | ||
const TAG_IMAGE_HEIGHT = 3; | ||
const TAG_COLOR_TABLE_SIZE = 4; | ||
const TAG_IS_COLOR_TABLE_SORTED = 5; | ||
const TAG_BITS_PER_PIXEL = 6; | ||
const TAG_HAS_GLOBAL_COLOR_TABLE = 7; | ||
/** | ||
* @deprecated use {@link #TAG_BACKGROUND_COLOR_INDEX} instead. | ||
*/ | ||
const TAG_TRANSPARENT_COLOR_INDEX = 8; | ||
const TAG_BACKGROUND_COLOR_INDEX = 8; | ||
const TAG_PIXEL_ASPECT_RATIO = 9; | ||
|
||
private static $tagNameMap = [ | ||
self::TAG_GIF_FORMAT_VERSION => "GIF Format Version", | ||
self::TAG_IMAGE_HEIGHT => "Image Height", | ||
self::TAG_IMAGE_WIDTH => "Image Width", | ||
self::TAG_COLOR_TABLE_SIZE => "Color Table Size", | ||
self::TAG_IS_COLOR_TABLE_SORTED => "Is Color Table Sorted", | ||
self::TAG_BITS_PER_PIXEL => "Bits per Pixel", | ||
self::TAG_HAS_GLOBAL_COLOR_TABLE => "Has Global Color Table", | ||
self::TAG_BACKGROUND_COLOR_INDEX => "Background Color Index", | ||
self::TAG_PIXEL_ASPECT_RATIO => "Pixel Aspect Ratio" | ||
]; | ||
|
||
public function __construct() | ||
{ | ||
$this->setDescriptor(new GifHeaderDescriptor($this)); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function getName() | ||
{ | ||
return 'GIF Header'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
protected function getTagNameMap() | ||
{ | ||
return static::$tagNameMap; | ||
} | ||
} |
Oops, something went wrong.