File: DynTest.pm

package info (click to toggle)
libimager-perl 1.027%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,820 kB
  • sloc: perl: 32,971; ansic: 28,092; makefile: 52; cpp: 4
file content (25 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package Imager::Filter::DynTest;
use 5.006;
use strict;
use Imager;

BEGIN {
  our $VERSION = "0.03";
  
  require XSLoader;
  XSLoader::load('Imager::Filter::DynTest', $VERSION);
}


sub _lin_stretch {
  my %hsh = @_;

  lin_stretch($hsh{image}, $hsh{a}, $hsh{b});
}

Imager->register_filter(type=>'lin_stretch',
                        callsub => \&_lin_stretch,
                        defaults => { a => 0, b => 255 },
                        callseq => [ qw/image a b/ ]);

1;