~ubuntu-branches/ubuntu/gutsy/xmedcon/gutsy

« back to all changes in this revision

Viewing changes to source/m-raw.h

  • Committer: Bazaar Package Importer
  • Author(s): Roland Marcus Rutschmann
  • Date: 2004-06-07 09:00:14 UTC
  • Revision ID: james.westby@ubuntu.com-20040607090014-t39n52qc9zjqqqkh
Tags: upstream-0.9.6
ImportĀ upstreamĀ versionĀ 0.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
2
 * filename: m-raw.h                                                       *
 
3
 *                                                                         *
 
4
 * UTIL C-source: Medical Image Conversion Utility                         *
 
5
 *                                                                         *
 
6
 * purpose      : m-raw.c header file                                      *
 
7
 *                                                                         *
 
8
 * project      : (X)MedCon by Erik Nolf                                   *
 
9
 *                                                                         *
 
10
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
11
/* $Id: m-raw.h,v 1.7 2004/01/04 22:36:16 enlf Exp $
 
12
 */
 
13
 
 
14
/*
 
15
   Copyright (C) 1997-2004 by Erik Nolf
 
16
 
 
17
   This program is free software; you can redistribute it and/or modify it
 
18
   under the terms of the GNU General Public License as published by the
 
19
   Free Software Foundation; either version 2, or (at your option) any later
 
20
   version.
 
21
 
 
22
   This program is distributed in the hope that it will be useful, but
 
23
   WITHOUT ANY WARRANTY; without even the implied warranty of
 
24
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
 
25
   Public License for more details.
 
26
 
 
27
   You should have received a copy of the GNU General Public License along
 
28
   with this program; if not, write to the Free Software Foundation, Inc.,
 
29
   59 Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
30
 
 
31
 
 
32
#ifndef __M_RAW_H__
 
33
#define __M_RAW_H__
 
34
 
 
35
/****************************************************************************
 
36
                              D E F I N E S 
 
37
****************************************************************************/
 
38
 
 
39
#define MdcReadInterActive(a)           MdcReadRAW(a)
 
40
 
 
41
typedef struct MdcRawInputStruct_t {
 
42
 
 
43
  Uint32 gen_offset, img_offset;
 
44
  Uint32 *abs_offset;
 
45
  Int8 DIFF, REPEAT;
 
46
 
 
47
}MdcRawInputStruct;
 
48
 
 
49
typedef struct MdcRawPrevInputStruct_t {
 
50
 
 
51
  Uint32 XDIM, YDIM, NRIMGS;
 
52
  Uint32 GENHDR, IMGHDR, ABSHDR;
 
53
  Int16  PTYPE;
 
54
  Int8   DIFF, HDRREP, PSWAP;
 
55
 
 
56
}MdcRawPrevInputStruct;
 
57
 
 
58
extern MdcRawInputStruct mdcrawinput;
 
59
extern MdcRawPrevInputStruct mdcrawprevinput;
 
60
 
 
61
/****************************************************************************
 
62
                            F U N C T I O N S
 
63
****************************************************************************/
 
64
void MdcInitRawPrevInput(void);
 
65
char *MdcReadRAW(FILEINFO *fi);
 
66
char *MdcWriteRAW(FILEINFO *fi);
 
67
int MdcCheckPredef(char *fname);
 
68
char *MdcReadPredef(char *fname);
 
69
char *MdcWritePredef(char *fname);
 
70
 
 
71
#endif