File: maker_datadefs.h

package info (click to toggle)
exifprobe 2.0.1%2Bgit20170416.3c2b769-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,904 kB
  • sloc: ansic: 34,799; sh: 413; makefile: 82
file content (56 lines) | stat: -rw-r--r-- 2,312 bytes parent folder | download | duplicates (6)
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
48
49
50
51
52
53
54
55
56
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/*          EXIFPROBE - TIFF/JPEG/EXIF image file probe               */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/* Copyright (C) 2002 by Duane H. Hesser. All rights reserved.        */
/*                                                                    */
/* See the file LICENSE.EXIFPROBE for terms of use.                   */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/* @(#) $Id: maker_datadefs.h,v 1.1 2005/05/25 15:38:08 alex Exp $ */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */


#ifndef MAKER_DATADEFS_INCLUDED
#define MAKER_DATADEFS_INCLUDED

#include "maker.h"

struct maker_scheme {
    unsigned long scheme_type;
    unsigned long note_fileoffset;
    unsigned long note_length;
    char *id;                   /* Initial id string, if present      */
    int id_length;              /* length of ID string, if present    */
    int tiffhdr_offset;         /* from start of section, if present  */
    int ifd_offset;             /* from start of section or tiff hdr  */
    int num_entries;            /* read from the start of the IFD     */
    int offsets_relative_to;    /* tiffheader, start of note, entry   */
    int no_nextifd_offset;      /* some don't include nextifd_offset  */
    int make;                   /* the internal identifier for make   */
    int model;                  /* the internal identifier for model  */
    int note_version;        /* for makes with multiple note versions */
    int tagset;              /* usually same as model_version...      */
    unsigned long fileoffset_base; /* entry offsets relative to this  */
                                   /* if not entry-relative           */
    unsigned short tiff_byteorder; /* main file byte order            */
    unsigned short note_byteorder; /* may be different                */
    struct ifd_entry first_entry;
};

struct camera_id {
    char *name;
    int namelen;
    int id;
    int noteversion;
    int notetagset;
};

struct camera_name {
    char *name;
    int namelen;
    int id;
    struct camera_id *model;
};

#endif /* MAKER_DATADEFS_INCLUDED */