Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4RTJpeg.hh File Reference

Go to the source code of this file.

Classes

struct  G4JpegProperty
 
class  G4MemoryError
 
class  G4IndexError
 
class  G4BufferError
 
class  G4DataFormatError
 
class  G4NotSupported
 

Typedefs

typedef unsigned char u_char
 
typedef unsigned int u_int
 

Enumerations

enum  jProcessResult { M_NoError = 0 , M_RuntimeError = -1 , M_DataError = -2 }
 
enum  jMarker {
  M_SOF0 = 0xc0 , M_SOF1 = 0xc1 , M_SOF2 = 0xc2 , M_SOF3 = 0xc3 ,
  M_SOF5 = 0xc5 , M_SOF6 = 0xc6 , M_SOF7 = 0xc7 , M_JPG = 0xc8 ,
  M_SOF9 = 0xc9 , M_SOF10 = 0xca , M_SOF11 = 0xcb , M_SOF13 = 0xcd ,
  M_SOF14 = 0xce , M_SOF15 = 0xcf , M_DHT = 0xc4 , M_DAC = 0xcc ,
  M_RST0 = 0xd0 , M_RST1 = 0xd1 , M_RST2 = 0xd2 , M_RST3 = 0xd3 ,
  M_RST4 = 0xd4 , M_RST5 = 0xd5 , M_RST6 = 0xd6 , M_RST7 = 0xd7 ,
  M_SOI = 0xd8 , M_EOI = 0xd9 , M_SOS = 0xda , M_DQT = 0xdb ,
  M_DNL = 0xdc , M_DRI = 0xdd , M_DHP = 0xde , M_EXP = 0xdf ,
  M_COM = 0xfe , M_APP0 = 0xe0 , M_APP1 = 0xe1 , M_APP2 = 0xe2 ,
  M_APP3 = 0xe3 , M_APP4 = 0xe4 , M_APP5 = 0xe5 , M_APP6 = 0xe6 ,
  M_APP7 = 0xe7 , M_APP8 = 0xe8 , M_APP9 = 0xe9 , M_APP10 = 0xea ,
  M_APP11 = 0xeb , M_APP12 = 0xec , M_APP13 = 0xed , M_APP14 = 0xee ,
  M_APP15 = 0xef , M_JPG0 = 0xf0 , M_JPG1 = 0xf1 , M_JPG2 = 0xf2 ,
  M_JPG3 = 0xf3 , M_JPG4 = 0xf4 , M_JPG5 = 0xf5 , M_JPG6 = 0xf6 ,
  M_JPG7 = 0xf7 , M_JPG8 = 0xf8 , M_JPG9 = 0xf9 , M_JPG10 = 0xfa ,
  M_JPG11 = 0xfb , M_JPG12 = 0xfc , M_JPG13 = 0xfd , M_TEM = 0x01 ,
  M_RESst = 0x02 , M_RESend = 0xbf , M_Error = 0xff , M_Marker = 0xff
}
 

Variables

const char JFIF [] = "JFIF"
 
const char JFXX [] = "JFXX"
 
const double Sqrt2 = 1.41421356
 
const double DisSqrt2 = 1.0 / Sqrt2
 
const double PaiDiv16 = 3.14159265 / 16
 

Typedef Documentation

◆ u_char

typedef unsigned char u_char

Definition at line 40 of file G4RTJpeg.hh.

◆ u_int

typedef unsigned int u_int

Definition at line 41 of file G4RTJpeg.hh.

Enumeration Type Documentation

◆ jMarker

enum jMarker
Enumerator
M_SOF0 
M_SOF1 
M_SOF2 
M_SOF3 
M_SOF5 
M_SOF6 
M_SOF7 
M_JPG 
M_SOF9 
M_SOF10 
M_SOF11 
M_SOF13 
M_SOF14 
M_SOF15 
M_DHT 
M_DAC 
M_RST0 
M_RST1 
M_RST2 
M_RST3 
M_RST4 
M_RST5 
M_RST6 
M_RST7 
M_SOI 
M_EOI 
M_SOS 
M_DQT 
M_DNL 
M_DRI 
M_DHP 
M_EXP 
M_COM 
M_APP0 
M_APP1 
M_APP2 
M_APP3 
M_APP4 
M_APP5 
M_APP6 
M_APP7 
M_APP8 
M_APP9 
M_APP10 
M_APP11 
M_APP12 
M_APP13 
M_APP14 
M_APP15 
M_JPG0 
M_JPG1 
M_JPG2 
M_JPG3 
M_JPG4 
M_JPG5 
M_JPG6 
M_JPG7 
M_JPG8 
M_JPG9 
M_JPG10 
M_JPG11 
M_JPG12 
M_JPG13 
M_TEM 
M_RESst 
M_RESend 
M_Error 
M_Marker 

Definition at line 71 of file G4RTJpeg.hh.

72 {
73
74 M_SOF0 = 0xc0,
75 M_SOF1 = 0xc1,
76 M_SOF2 = 0xc2,
77 M_SOF3 = 0xc3,
78
79 M_SOF5 = 0xc5,
80 M_SOF6 = 0xc6,
81 M_SOF7 = 0xc7,
82
83 M_JPG = 0xc8,
84 M_SOF9 = 0xc9,
85 M_SOF10 = 0xca,
86 M_SOF11 = 0xcb,
87
88 M_SOF13 = 0xcd,
89 M_SOF14 = 0xce,
90 M_SOF15 = 0xcf,
91
92 M_DHT = 0xc4,
93
94 M_DAC = 0xcc,
95
96 M_RST0 = 0xd0, M_RST1 = 0xd1,
97 M_RST2 = 0xd2, M_RST3 = 0xd3,
98 M_RST4 = 0xd4, M_RST5 = 0xd5,
99 M_RST6 = 0xd6, M_RST7 = 0xd7,
100
101 M_SOI = 0xd8,
102 M_EOI = 0xd9,
103 M_SOS = 0xda,
104 M_DQT = 0xdb,
105 M_DNL = 0xdc,
106 M_DRI = 0xdd,
107 M_DHP = 0xde,
108 M_EXP = 0xdf,
109 M_COM = 0xfe,
110
111 M_APP0 = 0xe0, M_APP1 = 0xe1,
112 M_APP2 = 0xe2, M_APP3 = 0xe3,
113 M_APP4 = 0xe4, M_APP5 = 0xe5,
114 M_APP6 = 0xe6, M_APP7 = 0xe7,
115 M_APP8 = 0xe8, M_APP9 = 0xe9,
116 M_APP10 = 0xea, M_APP11 = 0xeb,
117 M_APP12 = 0xec, M_APP13 = 0xed,
118 M_APP14 = 0xee, M_APP15 = 0xef,
119
120
121 M_JPG0 = 0xf0, M_JPG1 = 0xf1,
122 M_JPG2 = 0xf2, M_JPG3 = 0xf3,
123 M_JPG4 = 0xf4, M_JPG5 = 0xf5,
124 M_JPG6 = 0xf6, M_JPG7 = 0xf7,
125 M_JPG8 = 0xf8, M_JPG9 = 0xf9,
126 M_JPG10 = 0xfa, M_JPG11 = 0xfb,
127 M_JPG12 = 0xfc, M_JPG13 = 0xfd,
128
129
130 M_TEM = 0x01,
131 M_RESst = 0x02,
132 M_RESend = 0xbf,
133
134 M_Error = 0xff,
135 M_Marker = 0xff
136};
@ M_RST4
Definition: G4RTJpeg.hh:98
@ M_COM
Definition: G4RTJpeg.hh:109
@ M_RST5
Definition: G4RTJpeg.hh:98
@ M_DNL
Definition: G4RTJpeg.hh:105
@ M_SOF14
Definition: G4RTJpeg.hh:89
@ M_APP3
Definition: G4RTJpeg.hh:112
@ M_SOF7
Definition: G4RTJpeg.hh:81
@ M_JPG4
Definition: G4RTJpeg.hh:123
@ M_EOI
Definition: G4RTJpeg.hh:102
@ M_APP11
Definition: G4RTJpeg.hh:116
@ M_JPG10
Definition: G4RTJpeg.hh:126
@ M_JPG8
Definition: G4RTJpeg.hh:125
@ M_Error
Definition: G4RTJpeg.hh:134
@ M_APP1
Definition: G4RTJpeg.hh:111
@ M_Marker
Definition: G4RTJpeg.hh:135
@ M_JPG3
Definition: G4RTJpeg.hh:122
@ M_APP12
Definition: G4RTJpeg.hh:117
@ M_APP2
Definition: G4RTJpeg.hh:112
@ M_APP13
Definition: G4RTJpeg.hh:117
@ M_RST3
Definition: G4RTJpeg.hh:97
@ M_APP9
Definition: G4RTJpeg.hh:115
@ M_JPG11
Definition: G4RTJpeg.hh:126
@ M_DQT
Definition: G4RTJpeg.hh:104
@ M_DHT
Definition: G4RTJpeg.hh:92
@ M_SOF3
Definition: G4RTJpeg.hh:77
@ M_SOF2
Definition: G4RTJpeg.hh:76
@ M_APP14
Definition: G4RTJpeg.hh:118
@ M_DAC
Definition: G4RTJpeg.hh:94
@ M_SOF6
Definition: G4RTJpeg.hh:80
@ M_APP6
Definition: G4RTJpeg.hh:114
@ M_RST0
Definition: G4RTJpeg.hh:96
@ M_APP8
Definition: G4RTJpeg.hh:115
@ M_SOF15
Definition: G4RTJpeg.hh:90
@ M_SOI
Definition: G4RTJpeg.hh:101
@ M_JPG6
Definition: G4RTJpeg.hh:124
@ M_RST7
Definition: G4RTJpeg.hh:99
@ M_DRI
Definition: G4RTJpeg.hh:106
@ M_SOF9
Definition: G4RTJpeg.hh:84
@ M_JPG
Definition: G4RTJpeg.hh:83
@ M_RESst
Definition: G4RTJpeg.hh:131
@ M_JPG9
Definition: G4RTJpeg.hh:125
@ M_APP10
Definition: G4RTJpeg.hh:116
@ M_SOF10
Definition: G4RTJpeg.hh:85
@ M_SOF11
Definition: G4RTJpeg.hh:86
@ M_TEM
Definition: G4RTJpeg.hh:130
@ M_EXP
Definition: G4RTJpeg.hh:108
@ M_JPG12
Definition: G4RTJpeg.hh:127
@ M_SOF13
Definition: G4RTJpeg.hh:88
@ M_JPG7
Definition: G4RTJpeg.hh:124
@ M_JPG0
Definition: G4RTJpeg.hh:121
@ M_RST6
Definition: G4RTJpeg.hh:99
@ M_APP4
Definition: G4RTJpeg.hh:113
@ M_JPG2
Definition: G4RTJpeg.hh:122
@ M_RESend
Definition: G4RTJpeg.hh:132
@ M_JPG5
Definition: G4RTJpeg.hh:123
@ M_APP5
Definition: G4RTJpeg.hh:113
@ M_SOF1
Definition: G4RTJpeg.hh:75
@ M_SOS
Definition: G4RTJpeg.hh:103
@ M_APP7
Definition: G4RTJpeg.hh:114
@ M_SOF0
Definition: G4RTJpeg.hh:74
@ M_JPG1
Definition: G4RTJpeg.hh:121
@ M_APP0
Definition: G4RTJpeg.hh:111
@ M_APP15
Definition: G4RTJpeg.hh:118
@ M_RST2
Definition: G4RTJpeg.hh:97
@ M_SOF5
Definition: G4RTJpeg.hh:79
@ M_RST1
Definition: G4RTJpeg.hh:96
@ M_JPG13
Definition: G4RTJpeg.hh:127
@ M_DHP
Definition: G4RTJpeg.hh:107

◆ jProcessResult

Enumerator
M_NoError 
M_RuntimeError 
M_DataError 

Definition at line 63 of file G4RTJpeg.hh.

64 {
65 M_NoError = 0,
66 M_RuntimeError = -1,
67 M_DataError = -2
68};
@ M_RuntimeError
Definition: G4RTJpeg.hh:66
@ M_DataError
Definition: G4RTJpeg.hh:67
@ M_NoError
Definition: G4RTJpeg.hh:65

Variable Documentation

◆ DisSqrt2

const double DisSqrt2 = 1.0 / Sqrt2

Definition at line 47 of file G4RTJpeg.hh.

Referenced by G4JpegCoder::ForwardDCT().

◆ JFIF

const char JFIF[] = "JFIF"

Definition at line 43 of file G4RTJpeg.hh.

Referenced by G4JpegCoder::WriteHeader().

◆ JFXX

const char JFXX[] = "JFXX"

Definition at line 44 of file G4RTJpeg.hh.

◆ PaiDiv16

const double PaiDiv16 = 3.14159265 / 16

Definition at line 48 of file G4RTJpeg.hh.

Referenced by G4JpegCoder::G4JpegCoder().

◆ Sqrt2

const double Sqrt2 = 1.41421356

Definition at line 46 of file G4RTJpeg.hh.