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
|
|
62
|
no integer; |
|
15
|
|
|
|
|
34
|
|
|
15
|
|
|
|
|
69
|
|
8
|
15
|
|
|
15
|
|
369
|
use strict; |
|
15
|
|
|
|
|
19
|
|
|
15
|
|
|
|
|
324
|
|
9
|
15
|
|
|
15
|
|
50
|
use warnings; |
|
15
|
|
|
|
|
20
|
|
|
15
|
|
|
|
|
1056
|
|
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
|
3
|
my ($this) = @_; |
25
|
|
|
|
|
|
|
# write the only record into the data area |
26
|
2
|
|
|
|
|
7
|
$this->set_data($this->search_record_value('Comment')); |
27
|
|
|
|
|
|
|
# return without errors |
28
|
2
|
|
|
|
|
6
|
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; |