Debian Codegraph @

PerlMagick/t/openjp2/read.t

raw
1 #!/usr/bin/perl
2 #
3 # Test read image method on non-interlaced JPEG.
4 #
5 # Contributed by Bob Friesenhahn <[email protected]>
6 #
7 BEGIN { $| = 1; $test=1; print "1..3\n"; }
8 END {print "not ok $test\n" unless $loaded;}
9 use Image::Magick;
10 $loaded=1;
11
12 require 't/subroutines.pl';
13
14 chdir 't/openjp2' || die 'Cd failed';
15
16 #
17 # 1) JPEG-2000 JP2 File Format Syntax (ISO/IEC 15444-1)
18 #
19 print( "JPEG-2000 JP2 File Format Syntax ...\n" );
20 testReadCompare('input.jp2', '../reference/openjp2/read_jp2.miff', q//, 0.0, 0.0);
21
22 #
23 # 2) JPEG-2000 Code Stream Syntax (ISO/IEC 15444-1)
24 #
25 ++$test;
26 print( " ...\n" );
27 testReadCompare('input.jpc', '../reference/openjp2/read_jpc.miff', q//, 0.0, 0.0);
28
29 #
30 # 3) JPEG-2000 VM Format
31 #
32 ++$test;
33 print( " ...\n" );
34 testReadCompare('input.j2k', '../reference/openjp2/read_j2k.miff', q//, 0.0, 0.0);