File: canontags.cc

package info (click to toggle)
metacam 0.6-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 184 kB
  • ctags: 196
  • sloc: cpp: 1,750; makefile: 70
file content (47 lines) | stat: -rw-r--r-- 1,916 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
------------------------------------------------------------------------------
MetaCam - Extract EXIF information from digital camera files, with
support for Vendor specific blocks.
Copyright (C) 2000 Daniel Stephens (daniel@cheeseplant.org)
Copyright (C) 2001, Jan Brittenson (bson@rockgarden.net)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
------------------------------------------------------------------------------
*/

#include "dpyfuncs.h"

static const char *rcsid="";

// Initial Canon tag references from
//       http://www.butaman.ne.jp/~tsuruzoh/Computer/Digicams/exif-e.html

knowntag canon_known[] = {
    { 0x1, tSHORT,	0, "                            ", dpyCanonBlock1},
    // 0x2 is unknown
    // 0x3 is unknown
    { 0x4, tSHORT,	0, "                            ", dpyCanonBlock4},
    { 0x8, tLONG,	0, "                Image Number", dpyCanonImageNumber},
    { 0x6, tASCII,	0, "                  Image Type", dpyString},
    { 0x7, tASCII,	0, "            Firmware Version", dpyString},
    { 0x9, tASCII,      0, "                  Owner Name", dpyString},
    { 0xc, tLONG,	0, "        Camera Serial Number", dpyCanonSerialNumber},
//    { 0xf, tSHORT,	0, "                            ", dpyCanonCustomTags},
    // 0x10 is unknown

    {0,0,0,0}
};