File Coverage

blib/lib/Image/MetaData/JPEG/dumpers/dumpers.pl
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 16 17 94.1


line stmt bran cond sub pod time code
1             ###########################################################
2             # A Perl package for showing/modifying JPEG (meta)data. #
3             # Copyright (C) 2004,2005,2006 Stefano Bettelli #
4             # See the COPYING and LICENSE files for license terms. #
5             ###########################################################
6             package Image::MetaData::JPEG::Segment;
7 15     15   84 no integer;
  15         30  
  15         90  
8 15     15   382 use strict;
  15         32  
  15         401  
9 15     15   76 use warnings;
  15         32  
  15         1375  
10              
11             ###########################################################
12             # GENERAL NOTICE: in general, all methods included by #
13             # this file correspond to methods in parsers.pl, i.e., #
14             # each dump_* method corresponds to parse_* (with the #
15             # same *, I mean :-). See these methods for further #
16             # details. Only non-trivial comments will be added here. #
17             ###########################################################
18              
19             ###########################################################
20             # Dumping a comment block is very easy, because it con- #
21             # tains only one plain ASCII record. #
22             ###########################################################
23             sub dump_com {
24 2     2 0 5 my ($this) = @_;
25             # write the only record into the data area
26 2         9 $this->set_data($this->search_record_value('Comment'));
27             # return without errors
28 2         10 return undef;
29             }
30              
31             ###########################################################
32             # Require all other segment-specific dumpers. #
33             ###########################################################
34             #require 'Image/MetaData/JPEG/dumpers/app0.pl';
35             require 'Image/MetaData/JPEG/dumpers/app1.pl';
36             #require 'Image/MetaData/JPEG/dumpers/app2.pl';
37             #require 'Image/MetaData/JPEG/dumpers/app3.pl';
38             #require 'Image/MetaData/JPEG/dumpers/app12.pl';
39             require 'Image/MetaData/JPEG/dumpers/app13.pl';
40             #require 'Image/MetaData/JPEG/dumpers/app14.pl';
41             #require 'Image/MetaData/JPEG/dumpers/image.pl';
42              
43             # successful package load
44             1;