Openholo
v5.0
Open Source Digital Holographic Library
struct.h
Go to the documentation of this file.
1
/*M///////////////////////////////////////////////////////////////////////////////////////
2
//
3
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4
//
5
// By downloading, copying, installing or using the software you agree to this license.
6
// If you do not agree to this license, do not download, install, copy or use the software.
7
//
8
//
9
// License Agreement
10
// For Open Source Digital Holographic Library
11
//
12
// Openholo library is free software;
13
// you can redistribute it and/or modify it under the terms of the BSD 2-Clause license.
14
//
15
// Copyright (C) 2017-2024, Korea Electronics Technology Institute. All rights reserved.
16
// E-mail : contact.openholo@gmail.com
17
// Web : http://www.openholo.org
18
//
19
// Redistribution and use in source and binary forms, with or without modification,
20
// are permitted provided that the following conditions are met:
21
//
22
// 1. Redistribution's of source code must retain the above copyright notice,
23
// this list of conditions and the following disclaimer.
24
//
25
// 2. Redistribution's in binary form must reproduce the above copyright notice,
26
// this list of conditions and the following disclaimer in the documentation
27
// and/or other materials provided with the distribution.
28
//
29
// This software is provided by the copyright holders and contributors "as is" and
30
// any express or implied warranties, including, but not limited to, the implied
31
// warranties of merchantability and fitness for a particular purpose are disclaimed.
32
// In no event shall the copyright holder or contributors be liable for any direct,
33
// indirect, incidental, special, exemplary, or consequential damages
34
// (including, but not limited to, procurement of substitute goods or services;
35
// loss of use, data, or profits; or business interruption) however caused
36
// and on any theory of liability, whether in contract, strict liability,
37
// or tort (including negligence or otherwise) arising in any way out of
38
// the use of this software, even if advised of the possibility of such damage.
39
//
40
// This software contains opensource software released under GNU Generic Public License,
41
// NVDIA Software License Agreement, or CUDA supplement to Software License Agreement.
42
// Check whether software you use contains licensed software.
43
//
44
//M*/
45
46
#ifndef __struct_h
47
#define __struct_h
48
49
#pragma pack(push,1)
50
typedef
struct
fileheader
{
51
uint8_t
signature
[2];
52
uint32_t
filesize
;
53
uint32_t
reserved
;
54
uint32_t
fileoffset_to_pixelarray
;
55
}
_fileheader
;
56
typedef
struct
bitmapinfoheader
{
57
uint32_t
dibheadersize
;
58
uint32_t
width
;
59
uint32_t
height
;
60
uint16_t
planes
;
61
uint16_t
bitsperpixel
;
62
uint32_t
compression
;
63
uint32_t
imagesize
;
64
uint32_t
ypixelpermeter
;
65
uint32_t
xpixelpermeter
;
66
uint32_t
numcolorspallette
;
67
uint32_t
mostimpcolor
;
68
}
_bitmapinfoheader
;
69
typedef
struct
rgbquad
{
70
uint8_t
rgbBlue
;
71
uint8_t
rgbGreen
;
72
uint8_t
rgbRed
;
73
uint8_t
rgbReserved
;
74
}
_rgbquad
;
75
typedef
struct
bitmap
{
76
fileheader
_fileheader
;
77
bitmapinfoheader
_bitmapinfoheader
;
78
}
_bitmap
;
79
typedef
struct
bitmap8bit
{
80
fileheader
_fileheader
;
81
bitmapinfoheader
_bitmapinfoheader
;
82
rgbquad
_rgbquad
[256];
83
}
_bitmap8bit
;
84
85
86
typedef
struct
Point
{
87
Real
pos
[3];
88
}
_Point
;
89
90
typedef
struct
Pointf
{
91
float
pos
[3];
92
}
_Pointf
;
93
94
typedef
struct
Color
{
95
Real
color
[3];
96
}
_Color
;
97
98
typedef
struct
Colorf
{
99
float
color
[3];
100
}
_Colorf
;
101
102
typedef
struct
Vertex
{
103
Point
point
;
104
Color
color
;
105
Real
phase
;
106
}
_Vertex
;
107
108
typedef
struct
Vertexf
{
109
Pointf
point
;
110
Colorf
color
;
111
float
phase
;
112
}
_Vertexf
;
113
114
115
typedef
struct
Face
{
116
ulonglong
idx
;
117
Vertex
vertices
[3];
118
}
_Face
;
119
120
typedef
struct
Facef
{
121
ulonglong
idx
;
122
Vertexf
vertices
[3];
123
}
_Facef
;
124
125
#pragma pack(pop)
126
127
#endif // !__struct_h
Vertex::color
Color color
Definition:
struct.h:104
bitmapinfoheader::dibheadersize
uint32_t dibheadersize
Definition:
struct.h:57
Vertex::point
Point point
Definition:
struct.h:103
_Colorf
struct Colorf _Colorf
_fileheader
struct fileheader _fileheader
bitmap8bit::_bitmapinfoheader
bitmapinfoheader _bitmapinfoheader
Definition:
struct.h:81
_Point
struct Point _Point
bitmapinfoheader::mostimpcolor
uint32_t mostimpcolor
Definition:
struct.h:67
_rgbquad
struct rgbquad _rgbquad
Real
float Real
Definition:
typedef.h:55
bitmap8bit
Definition:
struct.h:79
Point
Definition:
struct.h:86
Color
Definition:
struct.h:94
Facef
Definition:
struct.h:120
Vertex::phase
Real phase
Definition:
struct.h:105
_Vertexf
struct Vertexf _Vertexf
Vertexf::point
Pointf point
Definition:
struct.h:109
Facef::idx
ulonglong idx
Definition:
struct.h:121
bitmapinfoheader::imagesize
uint32_t imagesize
Definition:
struct.h:63
oph::ulonglong
unsigned long long ulonglong
Definition:
typedef.h:67
Facef::vertices
Vertexf vertices[3]
Definition:
struct.h:122
bitmapinfoheader
Definition:
struct.h:56
rgbquad
Definition:
struct.h:69
bitmap
Definition:
struct.h:75
Face::idx
ulonglong idx
Definition:
struct.h:116
fileheader::reserved
uint32_t reserved
Definition:
struct.h:53
rgbquad::rgbGreen
uint8_t rgbGreen
Definition:
struct.h:71
Face::vertices
Vertex vertices[3]
Definition:
struct.h:117
bitmapinfoheader::bitsperpixel
uint16_t bitsperpixel
Definition:
struct.h:61
Pointf::pos
float pos[3]
Definition:
struct.h:91
rgbquad::rgbBlue
uint8_t rgbBlue
Definition:
struct.h:70
_Face
struct Face _Face
_Vertex
struct Vertex _Vertex
Vertex
Definition:
struct.h:102
Point::pos
Real pos[3]
Definition:
struct.h:87
_bitmap8bit
struct bitmap8bit _bitmap8bit
fileheader
Definition:
struct.h:50
bitmapinfoheader::ypixelpermeter
uint32_t ypixelpermeter
Definition:
struct.h:64
bitmapinfoheader::numcolorspallette
uint32_t numcolorspallette
Definition:
struct.h:66
Pointf
Definition:
struct.h:90
Face
Definition:
struct.h:115
fileheader::filesize
uint32_t filesize
Definition:
struct.h:52
fileheader::fileoffset_to_pixelarray
uint32_t fileoffset_to_pixelarray
Definition:
struct.h:54
bitmap8bit::_fileheader
fileheader _fileheader
Definition:
struct.h:80
rgbquad::rgbRed
uint8_t rgbRed
Definition:
struct.h:72
bitmapinfoheader::width
uint32_t width
Definition:
struct.h:58
bitmapinfoheader::height
uint32_t height
Definition:
struct.h:59
bitmapinfoheader::planes
uint16_t planes
Definition:
struct.h:60
rgbquad::rgbReserved
uint8_t rgbReserved
Definition:
struct.h:73
_Facef
struct Facef _Facef
_bitmapinfoheader
struct bitmapinfoheader _bitmapinfoheader
bitmap::_bitmapinfoheader
bitmapinfoheader _bitmapinfoheader
Definition:
struct.h:77
Vertexf::phase
float phase
Definition:
struct.h:111
_Pointf
struct Pointf _Pointf
Vertexf
Definition:
struct.h:108
Colorf::color
float color[3]
Definition:
struct.h:99
fileheader::signature
uint8_t signature[2]
Definition:
struct.h:51
Colorf
Definition:
struct.h:98
bitmap::_fileheader
fileheader _fileheader
Definition:
struct.h:76
_bitmap
struct bitmap _bitmap
_Color
struct Color _Color
Color::color
Real color[3]
Definition:
struct.h:95
bitmapinfoheader::compression
uint32_t compression
Definition:
struct.h:62
bitmapinfoheader::xpixelpermeter
uint32_t xpixelpermeter
Definition:
struct.h:65
Vertexf::color
Colorf color
Definition:
struct.h:110
Openholo
Openholo
src
struct.h
Generated by
1.8.14