Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
362 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace AmaTeam\Image\Projection\API\Framework; | ||
|
||
use AmaTeam\Image\Projection\API\Conversion\ListenerInterface; | ||
use AmaTeam\Image\Projection\API\Conversion\ProcessorInterface; | ||
|
||
interface ProcessingOptionsInterface | ||
{ | ||
/** | ||
* @return ProcessorInterface[] | ||
*/ | ||
public function getProcessors(); | ||
|
||
/** | ||
* @return ListenerInterface[] | ||
*/ | ||
public function getListeners(); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace AmaTeam\Image\Projection\API; | ||
|
||
use AmaTeam\Image\Projection\API\Type\HandlerInterface; | ||
|
||
interface RegistryInterface | ||
{ | ||
/** | ||
* @param string $type | ||
* @param HandlerInterface $handler | ||
* @return void | ||
*/ | ||
public function register($type, HandlerInterface $handler); | ||
|
||
/** | ||
* @return string[] | ||
*/ | ||
public function getRegisteredTypes(); | ||
|
||
/** | ||
* @param string $type | ||
* @return HandlerInterface | ||
*/ | ||
public function getHandler($type); | ||
|
||
/** | ||
* Same as getHandler, but returns null instead of throwing | ||
* exception. | ||
* | ||
* @param string $type | ||
* @return HandlerInterface|null | ||
*/ | ||
public function findHandler($type); | ||
|
||
/** | ||
* Returns correct type name by performing prefix-based search | ||
* | ||
* @param string $type | ||
* @return string|null | ||
*/ | ||
public function findType($type); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace AmaTeam\Image\Projection\API\Type; | ||
|
||
class Interpolation | ||
{ | ||
const NONE = 'none'; | ||
const BILINEAR = 'bilinear'; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace AmaTeam\Image\Projection\API\Type; | ||
|
||
use AmaTeam\Image\Projection\API\Conversion\FilterInterface; | ||
|
||
interface TargetOptionsInterface | ||
{ | ||
/** | ||
* @return FilterInterface[] | ||
*/ | ||
public function getFilters(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getFormat(); | ||
|
||
/** | ||
* Tile generation quality, 0.0...1.0 (JPEG only) | ||
* | ||
* @return float | ||
*/ | ||
public function getQuality(); | ||
|
||
/** | ||
* Tile compression level, 0.0...1.0 (PNG only) | ||
* | ||
* @return float | ||
*/ | ||
public function getCompression(); | ||
} |
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
Oops, something went wrong.