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
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520

pub const DIM: u32 = 3;

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct XDRFILE {
    _unused: [u8; 0],
}


pub type BindgenTy1 = u32;
pub const exdrOK: BindgenTy1 = 0;
pub const exdrHEADER: BindgenTy1 = 1;
pub const exdrSTRING: BindgenTy1 = 2;
pub const exdrDOUBLE: BindgenTy1 = 3;
pub const exdrINT: BindgenTy1 = 4;
pub const exdrFLOAT: BindgenTy1 = 5;
pub const exdrUINT: BindgenTy1 = 6;
pub const exdr3DX: BindgenTy1 = 7;
pub const exdrCLOSE: BindgenTy1 = 8;
pub const exdrMAGIC: BindgenTy1 = 9;
pub const exdrNOMEM: BindgenTy1 = 10;
pub const exdrENDOFFILE: BindgenTy1 = 11;
pub const exdrFILENOTFOUND: BindgenTy1 = 12;
pub const exdrNR: BindgenTy1 = 13;

extern "C" {
    pub static mut exdr_message: [*mut ::std::os::raw::c_char; 13usize];
}

pub type Matrix = [[::std::os::raw::c_float; 3usize]; 3usize];
pub type Rvec = [::std::os::raw::c_float; 3usize];
pub type Mybool = ::std::os::raw::c_int;

extern "C" {
    #[doc = " \\brief Open a portable binary file, just like fopen()"]
    #[doc = ""]
    #[doc = "  Use this routine much like calls to the standard library function"]
    #[doc = "  fopen(). The only difference is that the returned pointer should only"]
    #[doc = "  be used with routines defined in this header."]
    #[doc = ""]
    #[doc = "  \\param path  Full or relative path (including name) of the file"]
    #[doc = "  \\param mode  \"r\" for reading, \"w\" for writing, \"a\" for append."]
    #[doc = ""]
    #[doc = "  \\return Pointer to abstract xdr file datatype, or NULL if an error occurs."]
    #[doc = ""]
    pub fn xdrfile_open(
        path: *const ::std::os::raw::c_char,
        mode: *const ::std::os::raw::c_char,
    ) -> *mut XDRFILE;
}
extern "C" {
    #[doc = " \\brief Close a previously opened portable binary file, just like fclose()"]
    #[doc = ""]
    #[doc = "  Use this routine much like calls to the standard library function"]
    #[doc = "  fopen(). The only difference is that it is used for an XDRFILE handle"]
    #[doc = "  instead of a FILE handle."]
    #[doc = ""]
    #[doc = "  \\param xfp  Pointer to an abstract XDRFILE datatype"]
    #[doc = ""]
    #[doc = "  \\return     0 on success, non-zero on error."]
    pub fn xdrfile_close(xfp: *mut XDRFILE) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read one or more \\a char type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be written"]
    #[doc = "  \\param ndata  Number of characters to read"]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of characters read"]
    pub fn xdrfile_read_char(
        ptr: *mut ::std::os::raw::c_char,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write one or more \\a characters type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be read"]
    #[doc = "  \\param ndata  Number of characters to write."]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of characters written"]
    pub fn xdrfile_write_char(
        ptr: *mut ::std::os::raw::c_char,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read one or more \\a unsigned \\a char type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be written"]
    #[doc = "  \\param ndata  Number of unsigned characters to read"]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of unsigned characters read"]
    pub fn xdrfile_read_uchar(
        ptr: *mut ::std::os::raw::c_uchar,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write one or more \\a unsigned \\a characters type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be read"]
    #[doc = "  \\param ndata  Number of unsigned characters to write."]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of unsigned characters written"]
    pub fn xdrfile_write_uchar(
        ptr: *mut ::std::os::raw::c_uchar,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read one or more \\a short type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be written"]
    #[doc = "  \\param ndata  Number of shorts to read"]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of shorts read"]
    pub fn xdrfile_read_short(
        ptr: *mut ::std::os::raw::c_short,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write one or more \\a short type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be read"]
    #[doc = "  \\param ndata  Number of shorts to write."]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of shorts written"]
    pub fn xdrfile_write_short(
        ptr: *mut ::std::os::raw::c_short,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read one or more \\a unsigned \\a short type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be written"]
    #[doc = "  \\param ndata  Number of unsigned shorts to read"]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of unsigned shorts read"]
    pub fn xdrfile_read_ushort(
        ptr: *mut ::std::os::raw::c_ushort,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write one or more \\a unsigned \\a short type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be read"]
    #[doc = "  \\param ndata  Number of unsigned shorts to write."]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of unsigned shorts written"]
    pub fn xdrfile_write_ushort(
        ptr: *mut ::std::os::raw::c_ushort,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read one or more \\a integer type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be written"]
    #[doc = "  \\param ndata  Number of integers to read"]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of integers read"]
    #[doc = ""]
    #[doc = "  The integer data type is assumed to be less than or equal to 32 bits."]
    #[doc = ""]
    #[doc = "  We do not provide any routines for reading/writing 64-bit integers, since"]
    #[doc = "  - Not all XDR implementations support it"]
    #[doc = "  - Not all machines have 64-bit integers"]
    #[doc = ""]
    #[doc = "  Split your 64-bit data into two 32-bit integers for portability!"]
    pub fn xdrfile_read_int(
        ptr: *mut ::std::os::raw::c_int,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write one or more \\a integer type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be read"]
    #[doc = "  \\param ndata  Number of integers to write."]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of integers written"]
    #[doc = ""]
    #[doc = "  The integer data type is assumed to be less than or equal to 32 bits."]
    #[doc = ""]
    #[doc = "  We do not provide any routines for reading/writing 64-bit integers, since"]
    #[doc = "  - Not all XDR implementations support it"]
    #[doc = "  - Not all machines have 64-bit integers"]
    #[doc = ""]
    #[doc = "  Split your 64-bit data into two 32-bit integers for portability!"]
    pub fn xdrfile_write_int(
        ptr: *mut ::std::os::raw::c_int,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read one or more \\a unsigned \\a integers type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be written"]
    #[doc = "  \\param ndata  Number of unsigned integers to read"]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of unsigned integers read"]
    #[doc = ""]
    #[doc = "  The integer data type is assumed to be less than or equal to 32 bits."]
    #[doc = ""]
    #[doc = "  We do not provide any routines for reading/writing 64-bit integers, since"]
    #[doc = "  - Not all XDR implementations support it"]
    #[doc = "  - Not all machines have 64-bit integers"]
    #[doc = ""]
    #[doc = "  Split your 64-bit data into two 32-bit integers for portability!"]
    pub fn xdrfile_read_uint(
        ptr: *mut ::std::os::raw::c_uint,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write one or more \\a unsigned \\a integer type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be read"]
    #[doc = "  \\param ndata  Number of unsigned integers to write."]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of unsigned integers written"]
    #[doc = ""]
    #[doc = "  The integer data type is assumed to be less than or equal to 32 bits."]
    #[doc = ""]
    #[doc = "  We do not provide any routines for reading/writing 64-bit integers, since"]
    #[doc = "  - Not all XDR implementations support it"]
    #[doc = "  - Not all machines have 64-bit integers"]
    #[doc = ""]
    #[doc = "  Split your 64-bit data into two 32-bit integers for portability!"]
    pub fn xdrfile_write_uint(
        ptr: *mut ::std::os::raw::c_uint,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read one or more \\a float type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be written"]
    #[doc = "  \\param ndata  Number of floats to read"]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of floats read"]
    pub fn xdrfile_read_float(
        ptr: *mut ::std::os::raw::c_float,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write one or more \\a float type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be read"]
    #[doc = "  \\param ndata  Number of floats to write."]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of floats written"]
    pub fn xdrfile_write_float(
        ptr: *mut ::std::os::raw::c_float,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read one or more \\a double type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be written"]
    #[doc = "  \\param ndata  Number of doubles to read"]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of doubles read"]
    pub fn xdrfile_read_double(
        ptr: *mut ::std::os::raw::c_double,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write one or more \\a double type variable(s)"]
    #[doc = ""]
    #[doc = "  \\param ptr    Pointer to memory where data should be read"]
    #[doc = "  \\param ndata  Number of double to write."]
    #[doc = "  \\param xfp    Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return       Number of doubles written"]
    pub fn xdrfile_write_double(
        ptr: *mut ::std::os::raw::c_double,
        ndata: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read a string (array of characters)"]
    #[doc = ""]
    #[doc = "  \\param ptr     Pointer to memory where data should be written"]
    #[doc = "  \\param maxlen  Maximum length of string. If no end-of-string is encountered,"]
    #[doc = "                 one byte less than this is read and end-of-string appended."]
    #[doc = "  \\param xfp     Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return        Number of characters read, including end-of-string"]
    pub fn xdrfile_read_string(
        ptr: *mut ::std::os::raw::c_char,
        maxlen: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write a string (array of characters)"]
    #[doc = ""]
    #[doc = "  \\param ptr     Pointer to memory where data should be read"]
    #[doc = "  \\param xfp     Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return        Number of characters written, including end-of-string"]
    pub fn xdrfile_write_string(
        ptr: *mut ::std::os::raw::c_char,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Read raw bytes from file (unknown datatype)"]
    #[doc = ""]
    #[doc = "  \\param ptr     Pointer to memory where data should be written"]
    #[doc = "  \\param nbytes  Number of bytes to read. No conversion whatsoever is done."]
    #[doc = "  \\param xfp     Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return        Number of bytes read from file"]
    pub fn xdrfile_read_opaque(
        ptr: *mut ::std::os::raw::c_char,
        nbytes: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Write raw bytes to file (unknown datatype)"]
    #[doc = ""]
    #[doc = "  \\param ptr     Pointer to memory where data should be read"]
    #[doc = "  \\param nbytes  Number of bytes to write. No conversion whatsoever is done."]
    #[doc = "  \\param xfp     Handle to portable binary file, created with xdrfile_open()"]
    #[doc = ""]
    #[doc = "  \\return        Number of bytes written to file"]
    pub fn xdrfile_write_opaque(
        ptr: *mut ::std::os::raw::c_char,
        nbytes: ::std::os::raw::c_int,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Compress coordiates in a float array to XDR file"]
    #[doc = ""]
    #[doc = "  This routine will perform \\a lossy compression on the three-dimensional"]
    #[doc = "  coordinate data data specified and store it in the XDR file."]
    #[doc = ""]
    #[doc = "  The lossy part of the compression consists of multiplying each"]
    #[doc = "  coordinate with the precision argument and then rounding to integers."]
    #[doc = "  We suggest a default value of 1000.0, which means you are guaranteed"]
    #[doc = "  three decimals of accuracy. The only limitation is that scaled coordinates"]
    #[doc = "  must still fit in an integer variable, so if the precision is 1000.0 the"]
    #[doc = "  coordinate magnitudes must be less than +-2e6."]
    #[doc = ""]
    #[doc = "  \\param ptr        Pointer to coordinates to compress (length 3*ncoord)"]
    #[doc = "  \\param ncoord     Number of coordinate triplets in data"]
    #[doc = "  \\param precision  Scaling factor for lossy compression. If it is <=0,"]
    #[doc = "                    the default value of 1000.0 is used."]
    #[doc = "  \\param xfp        Handle to portably binary file"]
    #[doc = ""]
    #[doc = "  \\return           Number of coordinate triplets written."]
    #[doc = "                    IMPORTANT: Check that this is equal to ncoord - if it is"]
    #[doc = "                    negative, an error occured. This should not happen with"]
    #[doc = "\t   \t              normal data, but if your coordinates are NaN or very"]
    #[doc = "                    large (>1e6) it is not possible to use the compression."]
    #[doc = ""]
    #[doc = "  \\warning          The compression algorithm is not part of the XDR standard,"]
    #[doc = "                    and very complicated, so you will need this xdrfile module"]
    #[doc = "                    to read it later."]
    pub fn xdrfile_compress_coord_float(
        ptr: *mut ::std::os::raw::c_float,
        ncoord: ::std::os::raw::c_int,
        precision: ::std::os::raw::c_float,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Decompress coordiates from XDR file to array of floats"]
    #[doc = ""]
    #[doc = "  This routine will decompress three-dimensional coordinate data previously"]
    #[doc = "  stored in an XDR file and store it in the specified array of floats."]
    #[doc = ""]
    #[doc = "  The precision used during the earlier compression is read from the file"]
    #[doc = "  and returned - you cannot adjust the accuracy at this stage."]
    #[doc = ""]
    #[doc = "  \\param ptr        Pointer to coordinates to compress (length>= 3*ncoord)"]
    #[doc = "  \\param ncoord     Max number of coordinate triplets to read on input, actual"]
    #[doc = "                    number of coordinate triplets read on return. If this"]
    #[doc = "                    is smaller than the number of coordinates in the frame an"]
    #[doc = "                    error will occur."]
    #[doc = "  \\param precision  The precision used in the previous compression will be"]
    #[doc = "                    written to this variable on return."]
    #[doc = "  \\param xfp        Handle to portably binary file"]
    #[doc = ""]
    #[doc = "  \\return           Number of coordinate triplets read. If this is negative,"]
    #[doc = "                    an error occured."]
    #[doc = ""]
    #[doc = "  \\warning          Since we cannot count on being able to set/get the"]
    #[doc = "                    position of large files (>2Gb), it is not possible to"]
    #[doc = "                    recover from errors by re-reading the frame if the"]
    #[doc = "                    storage area you provided was too small. To avoid this"]
    #[doc = "                    from happening, we recommend that you store the number of"]
    #[doc = "                    coordinates triplet as an integer either in a header or"]
    #[doc = "                    just before the compressed coordinate data, so you can"]
    #[doc = "                    read it first and allocated enough memory."]
    pub fn xdrfile_decompress_coord_float(
        ptr: *mut ::std::os::raw::c_float,
        ncoord: *mut ::std::os::raw::c_int,
        precision: *mut ::std::os::raw::c_float,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Compress coordiates in a double array to XDR file"]
    #[doc = ""]
    #[doc = "  This routine will perform \\a lossy compression on the three-dimensional"]
    #[doc = "  coordinate data data specified and store it in the XDR file. Double will"]
    #[doc = "  NOT give you any extra precision since the coordinates are compressed. This"]
    #[doc = "  routine just avoids allocating a temporary array of floats."]
    #[doc = ""]
    #[doc = "  The lossy part of the compression consists of multiplying each"]
    #[doc = "  coordinate with the precision argument and then rounding to integers."]
    #[doc = "  We suggest a default value of 1000.0, which means you are guaranteed"]
    #[doc = "  three decimals of accuracy. The only limitation is that scaled coordinates"]
    #[doc = "  must still fit in an integer variable, so if the precision is 1000.0 the"]
    #[doc = "  coordinate magnitudes must be less than +-2e6."]
    #[doc = ""]
    #[doc = "  \\param ptr        Pointer to coordinates to compress (length 3*ncoord)"]
    #[doc = "  \\param ncoord     Number of coordinate triplets in data"]
    #[doc = "  \\param precision  Scaling factor for lossy compression. If it is <=0, the"]
    #[doc = "                    default value of 1000.0 is used."]
    #[doc = "  \\param xfp        Handle to portably binary file"]
    #[doc = ""]
    #[doc = "  \\return           Number of coordinate triplets written."]
    #[doc = "                    IMPORTANT: Check that this is equal to ncoord - if it is"]
    #[doc = "                    negative, an error occured. This should not happen with"]
    #[doc = "                    normal data, but if your coordinates are NaN or very"]
    #[doc = "                    large (>1e6) it is not possible to use the compression."]
    #[doc = ""]
    #[doc = "  \\warning          The compression algorithm is not part of the XDR standard,"]
    #[doc = "                    and very complicated, so you will need this xdrfile module"]
    #[doc = "                    to read it later."]
    pub fn xdrfile_compress_coord_double(
        ptr: *mut ::std::os::raw::c_double,
        ncoord: ::std::os::raw::c_int,
        precision: ::std::os::raw::c_double,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " \\brief Decompress coordiates from XDR file to array of doubles"]
    #[doc = ""]
    #[doc = "  This routine will decompress three-dimensional coordinate data previously"]
    #[doc = "  stored in an XDR file and store it in the specified array of doubles."]
    #[doc = "  Double will NOT give you any extra precision since the coordinates are"]
    #[doc = "  compressed. This routine just avoids allocating a temporary array of floats."]
    #[doc = ""]
    #[doc = "  The precision used during the earlier compression is read from the file"]
    #[doc = "  and returned - you cannot adjust the accuracy at this stage."]
    #[doc = ""]
    #[doc = "  \\param ptr        Pointer to coordinates to compress (length>= 3*ncoord)"]
    #[doc = "  \\param ncoord     Max number of coordinate triplets to read on input, actual"]
    #[doc = "                    number of coordinate triplets read on return. If this"]
    #[doc = "                    is smaller than the number of coordinates in the frame an"]
    #[doc = "                    error will occur."]
    #[doc = "  \\param precision  The precision used in the previous compression will be"]
    #[doc = "                    written to this variable on return."]
    #[doc = "  \\param xfp        Handle to portably binary file"]
    #[doc = ""]
    #[doc = "  \\return           Number of coordinate triplets read. If this is negative,"]
    #[doc = "                    an error occured."]
    #[doc = ""]
    #[doc = "  \\warning          Since we cannot count on being able to set/get the"]
    #[doc = "                    position of large files (>2Gb), it is not possible to"]
    #[doc = "                    recover from errors by re-reading the frame if the"]
    #[doc = "                    storage area you provided was too small. To avoid this"]
    #[doc = "                    from happening, we recommend that you store the number of"]
    #[doc = "                    coordinates triplet as an integer either in a header or"]
    #[doc = "                    just before the compressed coordinate data, so you can"]
    #[doc = "                    read it first and allocated enough memory."]
    pub fn xdrfile_decompress_coord_double(
        ptr: *mut ::std::os::raw::c_double,
        ncoord: *mut ::std::os::raw::c_int,
        precision: *mut ::std::os::raw::c_double,
        xfp: *mut XDRFILE,
    ) -> ::std::os::raw::c_int;
}