| 1 | package Imager::Filter::DynTest; | ||
| 2 | 1 | ▶ | use 5.006; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Imager; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | our $VERSION = "0.05"; | |
| 8 | |||
| 9 | 1 | require XSLoader; | |
| 10 | 1 | XSLoader::load('Imager::Filter::DynTest', $VERSION); | |
| 11 | } | ||
| 12 | |||
| 13 | |||
| 14 | 1 | ▶ | sub _lin_stretch { |
|
Subroutine
_lin_stretch: called CC=1 SCAR=0.0
| |||
| 15 | 1 | my %hsh = @_; | |
| 16 | |||
| 17 | 1 | lin_stretch($hsh{image}, $hsh{a}, $hsh{b}); | |
| 18 | } | ||
| 19 | |||
| 20 | 1 | Imager->register_filter(type=>'lin_stretch', | |
| 21 | callsub => \&_lin_stretch, | ||
| 22 | defaults => { a => 0, b => 255 }, | ||
| 23 | callseq => [ qw/image a b/ ]); | ||
| 24 | |||
| 25 | 1 | 1; | |