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
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
/* automatically generated by rust-bindgen */

pub const OPJ_TRUE : u32 = 1 ; pub const OPJ_FALSE : u32 = 0 ; pub const OPJ_HAVE_STDINT_H : u32 = 1 ; pub const OPJ_VERSION_MAJOR : u32 = 2 ; pub const OPJ_VERSION_MINOR : u32 = 3 ; pub const OPJ_VERSION_BUILD : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_ISO_10646__ : u32 = 201605 ; pub const __STDC_NO_THREADS__ : u32 = 1 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 24 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const INT8_MIN : i32 = -128 ; pub const INT16_MIN : i32 = -32768 ; pub const INT32_MIN : i32 = -2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = -128 ; pub const INT_LEAST16_MIN : i32 = -32768 ; pub const INT_LEAST32_MIN : i32 = -2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = -128 ; pub const INT_FAST16_MIN : i64 = -9223372036854775808 ; pub const INT_FAST32_MIN : i64 = -9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = -1 ; pub const UINT_FAST32_MAX : i32 = -1 ; pub const INTPTR_MIN : i64 = -9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = -1 ; pub const PTRDIFF_MIN : i64 = -9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = -2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = -1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const _STDIO_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const __FILE_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const _G_config_h : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _G_HAVE_MMAP : u32 = 1 ; pub const _G_HAVE_MREMAP : u32 = 1 ; pub const _G_IO_IO_FILE_VERSION : u32 = 131073 ; pub const _G_BUFSIZ : u32 = 8192 ; pub const _IO_BUFSIZ : u32 = 8192 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const _IO_UNIFIED_JUMPTABLES : u32 = 1 ; pub const EOF : i32 = -1 ; pub const _IOS_INPUT : u32 = 1 ; pub const _IOS_OUTPUT : u32 = 2 ; pub const _IOS_ATEND : u32 = 4 ; pub const _IOS_APPEND : u32 = 8 ; pub const _IOS_TRUNC : u32 = 16 ; pub const _IOS_NOCREATE : u32 = 32 ; pub const _IOS_NOREPLACE : u32 = 64 ; pub const _IOS_BIN : u32 = 128 ; pub const _IO_MAGIC : u32 = 4222418944 ; pub const _OLD_STDIO_MAGIC : u32 = 4206624768 ; pub const _IO_MAGIC_MASK : u32 = 4294901760 ; pub const _IO_USER_BUF : u32 = 1 ; pub const _IO_UNBUFFERED : u32 = 2 ; pub const _IO_NO_READS : u32 = 4 ; pub const _IO_NO_WRITES : u32 = 8 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_DELETE_DONT_CLOSE : u32 = 64 ; pub const _IO_LINKED : u32 = 128 ; pub const _IO_IN_BACKUP : u32 = 256 ; pub const _IO_LINE_BUF : u32 = 512 ; pub const _IO_TIED_PUT_GET : u32 = 1024 ; pub const _IO_CURRENTLY_PUTTING : u32 = 2048 ; pub const _IO_IS_APPENDING : u32 = 4096 ; pub const _IO_IS_FILEBUF : u32 = 8192 ; pub const _IO_BAD_SEEN : u32 = 16384 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const _IO_FLAGS2_MMAP : u32 = 1 ; pub const _IO_FLAGS2_NOTCANCEL : u32 = 2 ; pub const _IO_FLAGS2_USER_WBUF : u32 = 8 ; pub const _IO_SKIPWS : u32 = 1 ; pub const _IO_LEFT : u32 = 2 ; pub const _IO_RIGHT : u32 = 4 ; pub const _IO_INTERNAL : u32 = 8 ; pub const _IO_DEC : u32 = 16 ; pub const _IO_OCT : u32 = 32 ; pub const _IO_HEX : u32 = 64 ; pub const _IO_SHOWBASE : u32 = 128 ; pub const _IO_SHOWPOINT : u32 = 256 ; pub const _IO_UPPERCASE : u32 = 512 ; pub const _IO_SHOWPOS : u32 = 1024 ; pub const _IO_SCIENTIFIC : u32 = 2048 ; pub const _IO_FIXED : u32 = 4096 ; pub const _IO_UNITBUF : u32 = 8192 ; pub const _IO_STDIO : u32 = 16384 ; pub const _IO_DONT_CLOSE : u32 = 32768 ; pub const _IO_BOOLALPHA : u32 = 65536 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & 'static [ u8 ; 5usize ] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const OPJ_PATH_LEN : u32 = 4096 ; pub const OPJ_J2K_MAXRLVLS : u32 = 33 ; pub const OPJ_J2K_MAXBANDS : u32 = 97 ; pub const OPJ_J2K_DEFAULT_NB_SEGS : u32 = 10 ; pub const OPJ_J2K_STREAM_CHUNK_SIZE : u32 = 1048576 ; pub const OPJ_J2K_DEFAULT_HEADER_SIZE : u32 = 1000 ; pub const OPJ_J2K_MCC_DEFAULT_NB_RECORDS : u32 = 10 ; pub const OPJ_J2K_MCT_DEFAULT_NB_RECORDS : u32 = 10 ; pub const JPWL_MAX_NO_TILESPECS : u32 = 16 ; pub const JPWL_MAX_NO_PACKSPECS : u32 = 16 ; pub const JPWL_MAX_NO_MARKERS : u32 = 512 ; pub const JPWL_PRIVATEINDEX_NAME : & 'static [ u8 ; 27usize ] = b"jpwl_index_privatefilename\0" ; pub const JPWL_EXPECTED_COMPONENTS : u32 = 3 ; pub const JPWL_MAXIMUM_TILES : u32 = 8192 ; pub const JPWL_MAXIMUM_HAMMING : u32 = 2 ; pub const JPWL_MAXIMUM_EPB_ROOM : u32 = 65450 ; pub const OPJ_IMG_INFO : u32 = 1 ; pub const OPJ_J2K_MH_INFO : u32 = 2 ; pub const OPJ_J2K_TH_INFO : u32 = 4 ; pub const OPJ_J2K_TCH_INFO : u32 = 8 ; pub const OPJ_J2K_MH_IND : u32 = 16 ; pub const OPJ_J2K_TH_IND : u32 = 32 ; pub const OPJ_JP2_INFO : u32 = 128 ; pub const OPJ_JP2_IND : u32 = 256 ; pub const OPJ_PROFILE_NONE : u32 = 0 ; pub const OPJ_PROFILE_0 : u32 = 1 ; pub const OPJ_PROFILE_1 : u32 = 2 ; pub const OPJ_PROFILE_PART2 : u32 = 32768 ; pub const OPJ_PROFILE_CINEMA_2K : u32 = 3 ; pub const OPJ_PROFILE_CINEMA_4K : u32 = 4 ; pub const OPJ_PROFILE_CINEMA_S2K : u32 = 5 ; pub const OPJ_PROFILE_CINEMA_S4K : u32 = 6 ; pub const OPJ_PROFILE_CINEMA_LTS : u32 = 7 ; pub const OPJ_PROFILE_BC_SINGLE : u32 = 256 ; pub const OPJ_PROFILE_BC_MULTI : u32 = 512 ; pub const OPJ_PROFILE_BC_MULTI_R : u32 = 768 ; pub const OPJ_PROFILE_IMF_2K : u32 = 1024 ; pub const OPJ_PROFILE_IMF_4K : u32 = 1025 ; pub const OPJ_PROFILE_IMF_8K : u32 = 1026 ; pub const OPJ_PROFILE_IMF_2K_R : u32 = 1027 ; pub const OPJ_PROFILE_IMF_4K_R : u32 = 2048 ; pub const OPJ_PROFILE_IMF_8K_R : u32 = 2049 ; pub const OPJ_EXTENSION_NONE : u32 = 0 ; pub const OPJ_EXTENSION_MCT : u32 = 256 ; pub const OPJ_CINEMA_24_CS : u32 = 1302083 ; pub const OPJ_CINEMA_48_CS : u32 = 651041 ; pub const OPJ_CINEMA_24_COMP : u32 = 1041666 ; pub const OPJ_CINEMA_48_COMP : u32 = 520833 ; pub const OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG : u32 = 1 ; pub const OPJ_DPARAMETERS_DUMP_FLAG : u32 = 2 ; pub const OPJ_STREAM_READ : u32 = 1 ; pub const OPJ_STREAM_WRITE : u32 = 0 ; pub type OPJ_BOOL = :: std :: os :: raw :: c_int ; pub type OPJ_CHAR = :: std :: os :: raw :: c_char ; pub type OPJ_FLOAT32 = f32 ; pub type OPJ_FLOAT64 = f64 ; pub type OPJ_BYTE = :: std :: os :: raw :: c_uchar ; pub type int_least8_t = :: std :: os :: raw :: c_schar ; pub type int_least16_t = :: std :: os :: raw :: c_short ; pub type int_least32_t = :: std :: os :: raw :: c_int ; pub type int_least64_t = :: std :: os :: raw :: c_long ; pub type uint_least8_t = :: std :: os :: raw :: c_uchar ; pub type uint_least16_t = :: std :: os :: raw :: c_ushort ; pub type uint_least32_t = :: std :: os :: raw :: c_uint ; pub type uint_least64_t = :: std :: os :: raw :: c_ulong ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = :: std :: os :: raw :: c_long ; pub type uintmax_t = :: std :: os :: raw :: c_ulong ; pub type OPJ_INT8 = i8 ; pub type OPJ_UINT8 = u8 ; pub type OPJ_INT16 = i16 ; pub type OPJ_UINT16 = u16 ; pub type OPJ_INT32 = i32 ; pub type OPJ_UINT32 = u32 ; pub type OPJ_INT64 = i64 ; pub type OPJ_UINT64 = u64 ; pub type OPJ_OFF_T = i64 ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __fsid_t { pub __val : [ :: std :: os :: raw :: c_int ; 2usize ] , } # [ test ] fn bindgen_test_layout___fsid_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __fsid_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __fsid_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __fsid_t ) , "::" , stringify ! ( __val ) ) ) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __qaddr_t = * mut __quad_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type FILE = _IO_FILE ; pub type __FILE = _IO_FILE ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [ :: std :: os :: raw :: c_char ; 4usize ] , _bindgen_union_align : u32 , } # [ test ] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __mbstate_t__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t__bindgen_ty_1 > ( ) ) ) . __wch as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wch ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t__bindgen_ty_1 > ( ) ) ) . __wchb as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wchb ) ) ) ; } # [ test ] fn bindgen_test_layout___mbstate_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mbstate_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __mbstate_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mbstate_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __mbstate_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t > ( ) ) ) . __count as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t ) , "::" , stringify ! ( __count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t > ( ) ) ) . __value as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t ) , "::" , stringify ! ( __value ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [ test ] fn bindgen_test_layout__G_fpos_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _G_fpos_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( _G_fpos_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _G_fpos_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _G_fpos_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos_t > ( ) ) ) . __pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos_t ) , "::" , stringify ! ( __pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos_t > ( ) ) ) . __state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos_t ) , "::" , stringify ! ( __state ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [ test ] fn bindgen_test_layout__G_fpos64_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _G_fpos64_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( _G_fpos64_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _G_fpos64_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _G_fpos64_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos64_t > ( ) ) ) . __pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos64_t ) , "::" , stringify ! ( __pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos64_t > ( ) ) ) . __state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos64_t ) , "::" , stringify ! ( __state ) ) ) ; } pub type va_list = __builtin_va_list ; pub type __gnuc_va_list = __builtin_va_list ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _IO_jump_t { _unused : [ u8 ; 0 ] , } pub type _IO_lock_t = :: std :: os :: raw :: c_void ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _IO_marker { pub _next : * mut _IO_marker , pub _sbuf : * mut _IO_FILE , pub _pos : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout__IO_marker ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _IO_marker > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( _IO_marker ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _IO_marker > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _IO_marker ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_marker > ( ) ) ) . _next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _IO_marker ) , "::" , stringify ! ( _next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_marker > ( ) ) ) . _sbuf as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _IO_marker ) , "::" , stringify ! ( _sbuf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_marker > ( ) ) ) . _pos as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( _IO_marker ) , "::" , stringify ! ( _pos ) ) ) ; } pub const __codecvt_result___codecvt_ok : __codecvt_result = 0 ; pub const __codecvt_result___codecvt_partial : __codecvt_result = 1 ; pub const __codecvt_result___codecvt_error : __codecvt_result = 2 ; pub const __codecvt_result___codecvt_noconv : __codecvt_result = 3 ; pub type __codecvt_result = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _flags2 : :: std :: os :: raw :: c_int , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [ :: std :: os :: raw :: c_char ; 1usize ] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub __pad1 : * mut :: std :: os :: raw :: c_void , pub __pad2 : * mut :: std :: os :: raw :: c_void , pub __pad3 : * mut :: std :: os :: raw :: c_void , pub __pad4 : * mut :: std :: os :: raw :: c_void , pub __pad5 : usize , pub _mode : :: std :: os :: raw :: c_int , pub _unused2 : [ :: std :: os :: raw :: c_char ; 20usize ] , } # [ test ] fn bindgen_test_layout__IO_FILE ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _IO_FILE > ( ) , 216usize , concat ! ( "Size of: " , stringify ! ( _IO_FILE ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _IO_FILE > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _IO_FILE ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _flags as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_read_ptr as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_read_ptr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_read_end as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_read_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_read_base as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_read_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_write_base as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_write_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_write_ptr as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_write_ptr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_write_end as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_write_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_buf_base as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_buf_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_buf_end as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_buf_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_save_base as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_save_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_backup_base as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_backup_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_save_end as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_save_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _markers as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _markers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _chain as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _chain ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _fileno as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _fileno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _flags2 as * const _ as usize } , 116usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _flags2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _old_offset as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _old_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _cur_column as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _cur_column ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _vtable_offset as * const _ as usize } , 130usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _vtable_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _shortbuf as * const _ as usize } , 131usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _shortbuf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _lock as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _offset as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad1 as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad2 as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad3 as * const _ as usize } , 168usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad4 as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad5 as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad5 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _mode as * const _ as usize } , 192usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _mode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _unused2 as * const _ as usize } , 196usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _unused2 ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _IO_FILE_plus { _unused : [ u8 ; 0 ] , } extern "C" { # [ link_name = "\u{1}_IO_2_1_stdin_" ] pub static mut _IO_2_1_stdin_ : _IO_FILE_plus ; } extern "C" { # [ link_name = "\u{1}_IO_2_1_stdout_" ] pub static mut _IO_2_1_stdout_ : _IO_FILE_plus ; } extern "C" { # [ link_name = "\u{1}_IO_2_1_stderr_" ] pub static mut _IO_2_1_stderr_ : _IO_FILE_plus ; } pub type __io_read_fn = :: std :: option :: Option < unsafe extern "C" fn ( __cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize ) -> __ssize_t > ; pub type __io_write_fn = :: std :: option :: Option < unsafe extern "C" fn ( __cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __n : usize ) -> __ssize_t > ; pub type __io_seek_fn = :: std :: option :: Option < unsafe extern "C" fn ( __cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int > ; pub type __io_close_fn = :: std :: option :: Option < unsafe extern "C" fn ( __cookie : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn __underflow ( arg1 : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __uflow ( arg1 : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow ( arg1 : * mut _IO_FILE , arg2 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_getc ( __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_putc ( __c : :: std :: os :: raw :: c_int , __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_feof ( __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_ferror ( __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_peekc_locked ( __fp : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_flockfile ( arg1 : * mut _IO_FILE ) ; } extern "C" { pub fn _IO_funlockfile ( arg1 : * mut _IO_FILE ) ; } extern "C" { pub fn _IO_ftrylockfile ( arg1 : * mut _IO_FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_vfscanf ( arg1 : * mut _IO_FILE , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut __va_list_tag , arg4 : * mut :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_vfprintf ( arg1 : * mut _IO_FILE , arg2 : * const :: std :: os :: raw :: c_char , arg3 : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn _IO_padn ( arg1 : * mut _IO_FILE , arg2 : :: std :: os :: raw :: c_int , arg3 : __ssize_t ) -> __ssize_t ; } extern "C" { pub fn _IO_sgetn ( arg1 : * mut _IO_FILE , arg2 : * mut :: std :: os :: raw :: c_void , arg3 : usize ) -> usize ; } extern "C" { pub fn _IO_seekoff ( arg1 : * mut _IO_FILE , arg2 : __off64_t , arg3 : :: std :: os :: raw :: c_int , arg4 : :: std :: os :: raw :: c_int ) -> __off64_t ; } extern "C" { pub fn _IO_seekpos ( arg1 : * mut _IO_FILE , arg2 : __off64_t , arg3 : :: std :: os :: raw :: c_int ) -> __off64_t ; } extern "C" { pub fn _IO_free_backup_area ( arg1 : * mut _IO_FILE ) ; } pub type off_t = __off_t ; pub type fpos_t = _G_fpos_t ; extern "C" { # [ link_name = "\u{1}stdin" ] pub static mut stdin : * mut _IO_FILE ; } extern "C" { # [ link_name = "\u{1}stdout" ] pub static mut stdout : * mut _IO_FILE ; } extern "C" { # [ link_name = "\u{1}stderr" ] pub static mut stderr : * mut _IO_FILE ; } extern "C" { pub fn remove ( __filename : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename ( __old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat ( __oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile ( ) -> * mut FILE ; } extern "C" { pub fn tmpnam ( __s : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r ( __s : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam ( __dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fclose ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen ( __filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn freopen ( __filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE ) -> * mut FILE ; } extern "C" { pub fn fdopen ( __fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn fmemopen ( __s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn open_memstream ( __bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize ) -> * mut FILE ; } extern "C" { pub fn setbuf ( __stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn setvbuf ( __stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer ( __stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize ) ; } extern "C" { pub fn setlinebuf ( __stream : * mut FILE ) ; } extern "C" { pub fn fprintf ( __stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf ( __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf ( __s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf ( __s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf ( __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf ( __s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf ( __s : * mut :: std :: os :: raw :: c_char , __maxlen : usize , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf ( __s : * mut :: std :: os :: raw :: c_char , __maxlen : usize , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf ( __fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf ( __fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf ( __stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf ( __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_fscanf" ] pub fn fscanf1 ( __stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_scanf" ] pub fn scanf1 ( __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_sscanf" ] pub fn sscanf1 ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf ( __s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf ( __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_vfscanf" ] pub fn vfscanf1 ( __s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_vscanf" ] pub fn vscanf1 ( __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_vsscanf" ] pub fn vsscanf1 ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar ( __c : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked ( __c : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw ( __w : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets ( __s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim ( __lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> __ssize_t ; } extern "C" { pub fn getdelim ( __lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> __ssize_t ; } extern "C" { pub fn getline ( __lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE ) -> __ssize_t ; } extern "C" { pub fn fputs ( __s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts ( __s : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread ( __ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE ) -> usize ; } extern "C" { pub fn fwrite ( __ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __s : * mut FILE ) -> usize ; } extern "C" { pub fn fread_unlocked ( __ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE ) -> usize ; } extern "C" { pub fn fwrite_unlocked ( __ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE ) -> usize ; } extern "C" { pub fn fseek ( __stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind ( __stream : * mut FILE ) ; } extern "C" { pub fn fseeko ( __stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello ( __stream : * mut FILE ) -> __off_t ; } extern "C" { pub fn fgetpos ( __stream : * mut FILE , __pos : * mut fpos_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos ( __stream : * mut FILE , __pos : * const fpos_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr ( __stream : * mut FILE ) ; } extern "C" { pub fn feof ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked ( __stream : * mut FILE ) ; } extern "C" { pub fn feof_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror ( __s : * const :: std :: os :: raw :: c_char ) ; } extern "C" { # [ link_name = "\u{1}sys_nerr" ] pub static mut sys_nerr : :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}sys_errlist" ] pub static mut sys_errlist : [ * const :: std :: os :: raw :: c_char ; 0usize ] ; } extern "C" { pub fn fileno ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen ( __command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn pclose ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ctermid ( __s : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile ( __stream : * mut FILE ) ; } extern "C" { pub fn ftrylockfile ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile ( __stream : * mut FILE ) ; } pub type OPJ_SIZE_T = usize ; pub const RSIZ_CAPABILITIES_OPJ_STD_RSIZ : RSIZ_CAPABILITIES = 0 ; 
 /// Standard JPEG2000 profile 
 pub const RSIZ_CAPABILITIES_OPJ_CINEMA2K : RSIZ_CAPABILITIES = 3 ; 
 /// Profile name for a 2K image 
 pub const RSIZ_CAPABILITIES_OPJ_CINEMA4K : RSIZ_CAPABILITIES = 4 ; 
 /// Profile name for a 4K image 
 pub const RSIZ_CAPABILITIES_OPJ_MCT : RSIZ_CAPABILITIES = 33024 ; 
 /// DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead
/// Rsiz Capabilities
/// 
 pub type RSIZ_CAPABILITIES = u32 ; pub use self :: RSIZ_CAPABILITIES as OPJ_RSIZ_CAPABILITIES ; pub const CINEMA_MODE_OPJ_OFF : CINEMA_MODE = 0 ; 
 /// Not Digital Cinema 
 pub const CINEMA_MODE_OPJ_CINEMA2K_24 : CINEMA_MODE = 1 ; 
 /// 2K Digital Cinema at 24 fps 
 pub const CINEMA_MODE_OPJ_CINEMA2K_48 : CINEMA_MODE = 2 ; 
 /// 2K Digital Cinema at 48 fps 
 pub const CINEMA_MODE_OPJ_CINEMA4K_24 : CINEMA_MODE = 3 ; 
 /// DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead
/// Digital cinema operation mode
/// 
 pub type CINEMA_MODE = u32 ; pub use self :: CINEMA_MODE as OPJ_CINEMA_MODE ; 
 /// < place-holder 
 pub const PROG_ORDER_OPJ_PROG_UNKNOWN : PROG_ORDER = -1 ; 
 /// < layer-resolution-component-precinct order 
 pub const PROG_ORDER_OPJ_LRCP : PROG_ORDER = 0 ; 
 /// < resolution-layer-component-precinct order 
 pub const PROG_ORDER_OPJ_RLCP : PROG_ORDER = 1 ; 
 /// < resolution-precinct-component-layer order 
 pub const PROG_ORDER_OPJ_RPCL : PROG_ORDER = 2 ; 
 /// < precinct-component-resolution-layer order 
 pub const PROG_ORDER_OPJ_PCRL : PROG_ORDER = 3 ; 
 /// < component-precinct-resolution-layer order 
 pub const PROG_ORDER_OPJ_CPRL : PROG_ORDER = 4 ; 
 /// Progression order
/// 
 pub type PROG_ORDER = i32 ; pub use self :: PROG_ORDER as OPJ_PROG_ORDER ; 
 /// < not supported by the library 
 pub const COLOR_SPACE_OPJ_CLRSPC_UNKNOWN : COLOR_SPACE = -1 ; 
 /// < not specified in the codestream 
 pub const COLOR_SPACE_OPJ_CLRSPC_UNSPECIFIED : COLOR_SPACE = 0 ; 
 /// < sRGB 
 pub const COLOR_SPACE_OPJ_CLRSPC_SRGB : COLOR_SPACE = 1 ; 
 /// < grayscale 
 pub const COLOR_SPACE_OPJ_CLRSPC_GRAY : COLOR_SPACE = 2 ; 
 /// < YUV 
 pub const COLOR_SPACE_OPJ_CLRSPC_SYCC : COLOR_SPACE = 3 ; 
 /// < e-YCC 
 pub const COLOR_SPACE_OPJ_CLRSPC_EYCC : COLOR_SPACE = 4 ; 
 /// < CMYK 
 pub const COLOR_SPACE_OPJ_CLRSPC_CMYK : COLOR_SPACE = 5 ; 
 /// Supported image color spaces 
 pub type COLOR_SPACE = i32 ; pub use self :: COLOR_SPACE as OPJ_COLOR_SPACE ; 
 /// < place-holder 
 pub const CODEC_FORMAT_OPJ_CODEC_UNKNOWN : CODEC_FORMAT = -1 ; 
 /// < JPEG-2000 codestream : read/write 
 pub const CODEC_FORMAT_OPJ_CODEC_J2K : CODEC_FORMAT = 0 ; 
 /// < JPT-stream (JPEG 2000, JPIP) : read only 
 pub const CODEC_FORMAT_OPJ_CODEC_JPT : CODEC_FORMAT = 1 ; 
 /// < JP2 file format : read/write 
 pub const CODEC_FORMAT_OPJ_CODEC_JP2 : CODEC_FORMAT = 2 ; 
 /// < JPP-stream (JPEG 2000, JPIP) : to be coded 
 pub const CODEC_FORMAT_OPJ_CODEC_JPP : CODEC_FORMAT = 3 ; 
 /// < JPX file format (JPEG 2000 Part-2) : to be coded 
 pub const CODEC_FORMAT_OPJ_CODEC_JPX : CODEC_FORMAT = 4 ; 
 /// Supported codec 
 pub type CODEC_FORMAT = i32 ; pub use self :: CODEC_FORMAT as OPJ_CODEC_FORMAT ; 
 /// Callback function prototype for events
/// @param msg               Event message
/// @param client_data       Client object where will be return the event message
/// 
 pub type opj_msg_callback = :: std :: option :: Option < unsafe extern "C" fn ( msg : * const :: std :: os :: raw :: c_char , client_data : * mut :: std :: os :: raw :: c_void ) > ; 
 /// Progression order changes
/// 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_poc { 
 /// Resolution num start, Component num start, given by POC 
 pub resno0 : OPJ_UINT32 , 
 /// Resolution num start, Component num start, given by POC 
 pub compno0 : OPJ_UINT32 , 
 /// Layer num end,Resolution num end, Component num end, given by POC 
 pub layno1 : OPJ_UINT32 , 
 /// Layer num end,Resolution num end, Component num end, given by POC 
 pub resno1 : OPJ_UINT32 , 
 /// Layer num end,Resolution num end, Component num end, given by POC 
 pub compno1 : OPJ_UINT32 , 
 /// Layer num start,Precinct num start, Precinct num end 
 pub layno0 : OPJ_UINT32 , 
 /// Layer num start,Precinct num start, Precinct num end 
 pub precno0 : OPJ_UINT32 , 
 /// Layer num start,Precinct num start, Precinct num end 
 pub precno1 : OPJ_UINT32 , 
 /// Progression order enum 
 pub prg1 : OPJ_PROG_ORDER , 
 /// Progression order enum 
 pub prg : OPJ_PROG_ORDER , 
 /// Progression order string 
 pub progorder : [ OPJ_CHAR ; 5usize ] , 
 /// Tile number 
 pub tile : OPJ_UINT32 , 
 /// Start and end values for Tile width and height 
 pub tx0 : OPJ_INT32 , 
 /// Start and end values for Tile width and height 
 pub tx1 : OPJ_INT32 , 
 /// Start and end values for Tile width and height 
 pub ty0 : OPJ_INT32 , 
 /// Start and end values for Tile width and height 
 pub ty1 : OPJ_INT32 , 
 /// Start value, initialised in pi_initialise_encode 
 pub layS : OPJ_UINT32 , 
 /// Start value, initialised in pi_initialise_encode 
 pub resS : OPJ_UINT32 , 
 /// Start value, initialised in pi_initialise_encode 
 pub compS : OPJ_UINT32 , 
 /// Start value, initialised in pi_initialise_encode 
 pub prcS : OPJ_UINT32 , 
 /// End value, initialised in pi_initialise_encode 
 pub layE : OPJ_UINT32 , 
 /// End value, initialised in pi_initialise_encode 
 pub resE : OPJ_UINT32 , 
 /// End value, initialised in pi_initialise_encode 
 pub compE : OPJ_UINT32 , 
 /// End value, initialised in pi_initialise_encode 
 pub prcE : OPJ_UINT32 , 
 /// Start and end values of Tile width and height, initialised in pi_initialise_encode 
 pub txS : OPJ_UINT32 , 
 /// Start and end values of Tile width and height, initialised in pi_initialise_encode 
 pub txE : OPJ_UINT32 , 
 /// Start and end values of Tile width and height, initialised in pi_initialise_encode 
 pub tyS : OPJ_UINT32 , 
 /// Start and end values of Tile width and height, initialised in pi_initialise_encode 
 pub tyE : OPJ_UINT32 , 
 /// Start and end values of Tile width and height, initialised in pi_initialise_encode 
 pub dx : OPJ_UINT32 , 
 /// Start and end values of Tile width and height, initialised in pi_initialise_encode 
 pub dy : OPJ_UINT32 , 
 /// Temporary values for Tile parts, initialised in pi_create_encode 
 pub lay_t : OPJ_UINT32 , 
 /// Temporary values for Tile parts, initialised in pi_create_encode 
 pub res_t : OPJ_UINT32 , 
 /// Temporary values for Tile parts, initialised in pi_create_encode 
 pub comp_t : OPJ_UINT32 , 
 /// Temporary values for Tile parts, initialised in pi_create_encode 
 pub prc_t : OPJ_UINT32 , 
 /// Temporary values for Tile parts, initialised in pi_create_encode 
 pub tx0_t : OPJ_UINT32 , 
 /// Temporary values for Tile parts, initialised in pi_create_encode 
 pub ty0_t : OPJ_UINT32 , } # [ test ] fn bindgen_test_layout_opj_poc ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_poc > ( ) , 148usize , concat ! ( "Size of: " , stringify ! ( opj_poc ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_poc > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( opj_poc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . resno0 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( resno0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . compno0 as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( compno0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . layno1 as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( layno1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . resno1 as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( resno1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . compno1 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( compno1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . layno0 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( layno0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . precno0 as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( precno0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . precno1 as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( precno1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . prg1 as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( prg1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . prg as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( prg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . progorder as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( progorder ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . tile as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( tile ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . tx0 as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( tx0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . tx1 as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( tx1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . ty0 as * const _ as usize } , 60usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( ty0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . ty1 as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( ty1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . layS as * const _ as usize } , 68usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( layS ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . resS as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( resS ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . compS as * const _ as usize } , 76usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( compS ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . prcS as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( prcS ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . layE as * const _ as usize } , 84usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( layE ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . resE as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( resE ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . compE as * const _ as usize } , 92usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( compE ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . prcE as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( prcE ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . txS as * const _ as usize } , 100usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( txS ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . txE as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( txE ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . tyS as * const _ as usize } , 108usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( tyS ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . tyE as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( tyE ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . dx as * const _ as usize } , 116usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( dx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . dy as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( dy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . lay_t as * const _ as usize } , 124usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( lay_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . res_t as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( res_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . comp_t as * const _ as usize } , 132usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( comp_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . prc_t as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( prc_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . tx0_t as * const _ as usize } , 140usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( tx0_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_poc > ( ) ) ) . ty0_t as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( opj_poc ) , "::" , stringify ! ( ty0_t ) ) ) ; } pub type opj_poc_t = opj_poc ; 
 /// Compression parameters
/// 
 # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct opj_cparameters { 
 /// size of tile: tile_size_on = false (not in argument) or = true (in argument) 
 pub tile_size_on : OPJ_BOOL , 
 /// XTOsiz 
 pub cp_tx0 : :: std :: os :: raw :: c_int , 
 /// YTOsiz 
 pub cp_ty0 : :: std :: os :: raw :: c_int , 
 /// XTsiz 
 pub cp_tdx : :: std :: os :: raw :: c_int , 
 /// YTsiz 
 pub cp_tdy : :: std :: os :: raw :: c_int , 
 /// allocation by rate/distortion 
 pub cp_disto_alloc : :: std :: os :: raw :: c_int , 
 /// allocation by fixed layer 
 pub cp_fixed_alloc : :: std :: os :: raw :: c_int , 
 /// add fixed_quality 
 pub cp_fixed_quality : :: std :: os :: raw :: c_int , 
 /// fixed layer 
 pub cp_matrice : * mut :: std :: os :: raw :: c_int , 
 /// comment for coding 
 pub cp_comment : * mut :: std :: os :: raw :: c_char , 
 /// csty : coding style 
 pub csty : :: std :: os :: raw :: c_int , 
 /// progression order (default OPJ_LRCP) 
 pub prog_order : OPJ_PROG_ORDER , 
 /// progression order changes 
 pub POC : [ opj_poc_t ; 32usize ] , 
 /// number of progression order changes (POC), default to 0 
 pub numpocs : OPJ_UINT32 , 
 /// number of layers 
 pub tcp_numlayers : :: std :: os :: raw :: c_int , 
 /// rates of layers - might be subsequently limited by the max_cs_size field.
    /// Should be decreasing. 1 can be
    /// used as last value to indicate the last layer is lossless. 
 pub tcp_rates : [ f32 ; 100usize ] , 
 /// different psnr for successive layers. Should be increasing. 0 can be
    /// used as last value to indicate the last layer is lossless. 
 pub tcp_distoratio : [ f32 ; 100usize ] , 
 /// number of resolutions 
 pub numresolution : :: std :: os :: raw :: c_int , 
 /// initial code block width, default to 64 
 pub cblockw_init : :: std :: os :: raw :: c_int , 
 /// initial code block height, default to 64 
 pub cblockh_init : :: std :: os :: raw :: c_int , 
 /// mode switch (cblk_style) 
 pub mode : :: std :: os :: raw :: c_int , 
 /// 1 : use the irreversible DWT 9-7, 0 : use lossless compression (default) 
 pub irreversible : :: std :: os :: raw :: c_int , 
 /// region of interest: affected component in [0..3], -1 means no ROI 
 pub roi_compno : :: std :: os :: raw :: c_int , 
 /// region of interest: upshift value 
 pub roi_shift : :: std :: os :: raw :: c_int , pub res_spec : :: std :: os :: raw :: c_int , 
 /// initial precinct width 
 pub prcw_init : [ :: std :: os :: raw :: c_int ; 33usize ] , 
 /// initial precinct height 
 pub prch_init : [ :: std :: os :: raw :: c_int ; 33usize ] , 
 /// input file name 
 pub infile : [ :: std :: os :: raw :: c_char ; 4096usize ] , 
 /// output file name 
 pub outfile : [ :: std :: os :: raw :: c_char ; 4096usize ] , 
 /// DEPRECATED. Index generation is now handeld with the opj_encode_with_info() function. Set to NULL 
 pub index_on : :: std :: os :: raw :: c_int , 
 /// DEPRECATED. Index generation is now handeld with the opj_encode_with_info() function. Set to NULL 
 pub index : [ :: std :: os :: raw :: c_char ; 4096usize ] , 
 /// subimage encoding: origin image offset in x direction 
 pub image_offset_x0 : :: std :: os :: raw :: c_int , 
 /// subimage encoding: origin image offset in y direction 
 pub image_offset_y0 : :: std :: os :: raw :: c_int , 
 /// subsampling value for dx 
 pub subsampling_dx : :: std :: os :: raw :: c_int , 
 /// subsampling value for dy 
 pub subsampling_dy : :: std :: os :: raw :: c_int , 
 /// input file format 0: PGX, 1: PxM, 2: BMP 3:TIF 
 pub decod_format : :: std :: os :: raw :: c_int , 
 /// output file format 0: J2K, 1: JP2, 2: JPT 
 pub cod_format : :: std :: os :: raw :: c_int , 
 /// enables writing of EPC in MH, thus activating JPWL 
 pub jpwl_epc_on : OPJ_BOOL , 
 /// error protection method for MH (0,1,16,32,37-128) 
 pub jpwl_hprot_MH : :: std :: os :: raw :: c_int , 
 /// tile number of header protection specification (>=0) 
 pub jpwl_hprot_TPH_tileno : [ :: std :: os :: raw :: c_int ; 16usize ] , 
 /// error protection methods for TPHs (0,1,16,32,37-128) 
 pub jpwl_hprot_TPH : [ :: std :: os :: raw :: c_int ; 16usize ] , 
 /// tile number of packet protection specification (>=0) 
 pub jpwl_pprot_tileno : [ :: std :: os :: raw :: c_int ; 16usize ] , 
 /// packet number of packet protection specification (>=0) 
 pub jpwl_pprot_packno : [ :: std :: os :: raw :: c_int ; 16usize ] , 
 /// error protection methods for packets (0,1,16,32,37-128) 
 pub jpwl_pprot : [ :: std :: os :: raw :: c_int ; 16usize ] , 
 /// enables writing of ESD, (0=no/1/2 bytes) 
 pub jpwl_sens_size : :: std :: os :: raw :: c_int , 
 /// sensitivity addressing size (0=auto/2/4 bytes) 
 pub jpwl_sens_addr : :: std :: os :: raw :: c_int , 
 /// sensitivity range (0-3) 
 pub jpwl_sens_range : :: std :: os :: raw :: c_int , 
 /// sensitivity method for MH (-1=no,0-7) 
 pub jpwl_sens_MH : :: std :: os :: raw :: c_int , 
 /// tile number of sensitivity specification (>=0) 
 pub jpwl_sens_TPH_tileno : [ :: std :: os :: raw :: c_int ; 16usize ] , 
 /// sensitivity methods for TPHs (-1=no,0-7) 
 pub jpwl_sens_TPH : [ :: std :: os :: raw :: c_int ; 16usize ] , 
 /// DEPRECATED: use RSIZ, OPJ_PROFILE_* and MAX_COMP_SIZE instead
    /// Digital Cinema compliance 0-not compliant, 1-compliant
    /// 
 pub cp_cinema : OPJ_CINEMA_MODE , 
 /// Maximum size (in bytes) for each component.
    /// If == 0, component size limitation is not considered
    /// 
 pub max_comp_size : :: std :: os :: raw :: c_int , 
 /// DEPRECATED: use RSIZ, OPJ_PROFILE_* and OPJ_EXTENSION_* instead
    /// Profile name
    /// 
 pub cp_rsiz : OPJ_RSIZ_CAPABILITIES , 
 /// Tile part generation 
 pub tp_on : :: std :: os :: raw :: c_char , 
 /// Flag for Tile part generation 
 pub tp_flag : :: std :: os :: raw :: c_char , 
 /// MCT (multiple component transform) 
 pub tcp_mct : :: std :: os :: raw :: c_char , 
 /// Enable JPIP indexing 
 pub jpip_on : OPJ_BOOL , 
 /// Naive implementation of MCT restricted to a single reversible array based
    /// encoding without offset concerning all the components. 
 pub mct_data : * mut :: std :: os :: raw :: c_void , 
 /// Maximum size (in bytes) for the whole codestream.
    /// If == 0, codestream size limitation is not considered
    /// If it does not comply with tcp_rates, max_cs_size prevails
    /// and a warning is issued.
    /// 
 pub max_cs_size : :: std :: os :: raw :: c_int , 
 /// RSIZ value
    /// To be used to combine OPJ_PROFILE_*, OPJ_EXTENSION_* and (sub)levels values. 
 pub rsiz : OPJ_UINT16 , } # [ test ] fn bindgen_test_layout_opj_cparameters ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_cparameters > ( ) , 18720usize , concat ! ( "Size of: " , stringify ! ( opj_cparameters ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_cparameters > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_cparameters ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . tile_size_on as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( tile_size_on ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_tx0 as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_tx0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_ty0 as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_ty0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_tdx as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_tdx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_tdy as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_tdy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_disto_alloc as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_disto_alloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_fixed_alloc as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_fixed_alloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_fixed_quality as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_fixed_quality ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_matrice as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_matrice ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_comment as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_comment ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . csty as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( csty ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . prog_order as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( prog_order ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . POC as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( POC ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . numpocs as * const _ as usize } , 4792usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( numpocs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . tcp_numlayers as * const _ as usize } , 4796usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( tcp_numlayers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . tcp_rates as * const _ as usize } , 4800usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( tcp_rates ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . tcp_distoratio as * const _ as usize } , 5200usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( tcp_distoratio ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . numresolution as * const _ as usize } , 5600usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( numresolution ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cblockw_init as * const _ as usize } , 5604usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cblockw_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cblockh_init as * const _ as usize } , 5608usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cblockh_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . mode as * const _ as usize } , 5612usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( mode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . irreversible as * const _ as usize } , 5616usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( irreversible ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . roi_compno as * const _ as usize } , 5620usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( roi_compno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . roi_shift as * const _ as usize } , 5624usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( roi_shift ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . res_spec as * const _ as usize } , 5628usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( res_spec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . prcw_init as * const _ as usize } , 5632usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( prcw_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . prch_init as * const _ as usize } , 5764usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( prch_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . infile as * const _ as usize } , 5896usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( infile ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . outfile as * const _ as usize } , 9992usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( outfile ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . index_on as * const _ as usize } , 14088usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( index_on ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . index as * const _ as usize } , 14092usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( index ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . image_offset_x0 as * const _ as usize } , 18188usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( image_offset_x0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . image_offset_y0 as * const _ as usize } , 18192usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( image_offset_y0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . subsampling_dx as * const _ as usize } , 18196usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( subsampling_dx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . subsampling_dy as * const _ as usize } , 18200usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( subsampling_dy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . decod_format as * const _ as usize } , 18204usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( decod_format ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cod_format as * const _ as usize } , 18208usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cod_format ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_epc_on as * const _ as usize } , 18212usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_epc_on ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_hprot_MH as * const _ as usize } , 18216usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_hprot_MH ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_hprot_TPH_tileno as * const _ as usize } , 18220usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_hprot_TPH_tileno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_hprot_TPH as * const _ as usize } , 18284usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_hprot_TPH ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_pprot_tileno as * const _ as usize } , 18348usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_pprot_tileno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_pprot_packno as * const _ as usize } , 18412usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_pprot_packno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_pprot as * const _ as usize } , 18476usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_pprot ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_sens_size as * const _ as usize } , 18540usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_sens_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_sens_addr as * const _ as usize } , 18544usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_sens_addr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_sens_range as * const _ as usize } , 18548usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_sens_range ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_sens_MH as * const _ as usize } , 18552usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_sens_MH ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_sens_TPH_tileno as * const _ as usize } , 18556usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_sens_TPH_tileno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpwl_sens_TPH as * const _ as usize } , 18620usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpwl_sens_TPH ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_cinema as * const _ as usize } , 18684usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_cinema ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . max_comp_size as * const _ as usize } , 18688usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( max_comp_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . cp_rsiz as * const _ as usize } , 18692usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( cp_rsiz ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . tp_on as * const _ as usize } , 18696usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( tp_on ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . tp_flag as * const _ as usize } , 18697usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( tp_flag ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . tcp_mct as * const _ as usize } , 18698usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( tcp_mct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . jpip_on as * const _ as usize } , 18700usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( jpip_on ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . mct_data as * const _ as usize } , 18704usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( mct_data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . max_cs_size as * const _ as usize } , 18712usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( max_cs_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_cparameters > ( ) ) ) . rsiz as * const _ as usize } , 18716usize , concat ! ( "Offset of field: " , stringify ! ( opj_cparameters ) , "::" , stringify ! ( rsiz ) ) ) ; } pub type opj_cparameters_t = opj_cparameters ; 
 /// Decompression parameters
/// 
 # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct opj_dparameters { 
 /// Set the number of highest resolution levels to be discarded.
    /// The image resolution is effectively divided by 2 to the power of the number of discarded levels.
    /// The reduce factor is limited by the smallest total number of decomposition levels among tiles.
    /// if != 0, then original dimension divided by 2^(reduce);
    /// if == 0 or not used, image is decoded to the full resolution 
 pub cp_reduce : OPJ_UINT32 , 
 /// Set the maximum number of quality layers to decode.
    /// If there are less quality layers than the specified number, all the quality layers are decoded.
    /// if != 0, then only the first "layer" layers are decoded;
    /// if == 0 or not used, all the quality layers are decoded 
 pub cp_layer : OPJ_UINT32 , 
 /// input file name 
 pub infile : [ :: std :: os :: raw :: c_char ; 4096usize ] , 
 /// output file name 
 pub outfile : [ :: std :: os :: raw :: c_char ; 4096usize ] , 
 /// input file format 0: J2K, 1: JP2, 2: JPT 
 pub decod_format : :: std :: os :: raw :: c_int , 
 /// output file format 0: PGX, 1: PxM, 2: BMP 
 pub cod_format : :: std :: os :: raw :: c_int , 
 /// Decoding area left boundary 
 pub DA_x0 : OPJ_UINT32 , 
 /// Decoding area right boundary 
 pub DA_x1 : OPJ_UINT32 , 
 /// Decoding area up boundary 
 pub DA_y0 : OPJ_UINT32 , 
 /// Decoding area bottom boundary 
 pub DA_y1 : OPJ_UINT32 , 
 /// Verbose mode 
 pub m_verbose : OPJ_BOOL , 
 /// tile number ot the decoded tile 
 pub tile_index : OPJ_UINT32 , 
 /// Nb of tile to decode 
 pub nb_tile_to_decode : OPJ_UINT32 , 
 /// activates the JPWL correction capabilities 
 pub jpwl_correct : OPJ_BOOL , 
 /// expected number of components 
 pub jpwl_exp_comps : :: std :: os :: raw :: c_int , 
 /// maximum number of tiles 
 pub jpwl_max_tiles : :: std :: os :: raw :: c_int , pub flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_opj_dparameters ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_dparameters > ( ) , 8252usize , concat ! ( "Size of: " , stringify ! ( opj_dparameters ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_dparameters > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( opj_dparameters ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . cp_reduce as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( cp_reduce ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . cp_layer as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( cp_layer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . infile as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( infile ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . outfile as * const _ as usize } , 4104usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( outfile ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . decod_format as * const _ as usize } , 8200usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( decod_format ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . cod_format as * const _ as usize } , 8204usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( cod_format ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . DA_x0 as * const _ as usize } , 8208usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( DA_x0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . DA_x1 as * const _ as usize } , 8212usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( DA_x1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . DA_y0 as * const _ as usize } , 8216usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( DA_y0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . DA_y1 as * const _ as usize } , 8220usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( DA_y1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . m_verbose as * const _ as usize } , 8224usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( m_verbose ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . tile_index as * const _ as usize } , 8228usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( tile_index ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . nb_tile_to_decode as * const _ as usize } , 8232usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( nb_tile_to_decode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . jpwl_correct as * const _ as usize } , 8236usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( jpwl_correct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . jpwl_exp_comps as * const _ as usize } , 8240usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( jpwl_exp_comps ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . jpwl_max_tiles as * const _ as usize } , 8244usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( jpwl_max_tiles ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_dparameters > ( ) ) ) . flags as * const _ as usize } , 8248usize , concat ! ( "Offset of field: " , stringify ! ( opj_dparameters ) , "::" , stringify ! ( flags ) ) ) ; } pub type opj_dparameters_t = opj_dparameters ; 
 /// JPEG2000 codec V2.
/// 
 pub type opj_codec_t = * mut :: std :: os :: raw :: c_void ; pub type opj_stream_read_fn = :: std :: option :: Option < unsafe extern "C" fn ( p_buffer : * mut :: std :: os :: raw :: c_void , p_nb_bytes : OPJ_SIZE_T , p_user_data : * mut :: std :: os :: raw :: c_void ) -> OPJ_SIZE_T > ; pub type opj_stream_write_fn = :: std :: option :: Option < unsafe extern "C" fn ( p_buffer : * mut :: std :: os :: raw :: c_void , p_nb_bytes : OPJ_SIZE_T , p_user_data : * mut :: std :: os :: raw :: c_void ) -> OPJ_SIZE_T > ; pub type opj_stream_skip_fn = :: std :: option :: Option < unsafe extern "C" fn ( p_nb_bytes : OPJ_OFF_T , p_user_data : * mut :: std :: os :: raw :: c_void ) -> OPJ_OFF_T > ; pub type opj_stream_seek_fn = :: std :: option :: Option < unsafe extern "C" fn ( p_nb_bytes : OPJ_OFF_T , p_user_data : * mut :: std :: os :: raw :: c_void ) -> OPJ_BOOL > ; pub type opj_stream_free_user_data_fn = :: std :: option :: Option < unsafe extern "C" fn ( p_user_data : * mut :: std :: os :: raw :: c_void ) > ; pub type opj_stream_t = * mut :: std :: os :: raw :: c_void ; 
 /// Defines a single image component
/// 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_image_comp { 
 /// XRsiz: horizontal separation of a sample of ith component with respect to the reference grid 
 pub dx : OPJ_UINT32 , 
 /// YRsiz: vertical separation of a sample of ith component with respect to the reference grid 
 pub dy : OPJ_UINT32 , 
 /// data width 
 pub w : OPJ_UINT32 , 
 /// data height 
 pub h : OPJ_UINT32 , 
 /// x component offset compared to the whole image 
 pub x0 : OPJ_UINT32 , 
 /// y component offset compared to the whole image 
 pub y0 : OPJ_UINT32 , 
 /// precision 
 pub prec : OPJ_UINT32 , 
 /// image depth in bits 
 pub bpp : OPJ_UINT32 , 
 /// signed (1) / unsigned (0) 
 pub sgnd : OPJ_UINT32 , 
 /// number of decoded resolution 
 pub resno_decoded : OPJ_UINT32 , 
 /// number of division by 2 of the out image compared to the original size of image 
 pub factor : OPJ_UINT32 , 
 /// image component data 
 pub data : * mut OPJ_INT32 , 
 /// alpha channel 
 pub alpha : OPJ_UINT16 , } # [ test ] fn bindgen_test_layout_opj_image_comp ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_image_comp > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( opj_image_comp ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_image_comp > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_image_comp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . dx as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( dx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . dy as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( dy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . w as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . h as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . x0 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( x0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . y0 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( y0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . prec as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( prec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . bpp as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( bpp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . sgnd as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( sgnd ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . resno_decoded as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( resno_decoded ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . factor as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( factor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . data as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comp > ( ) ) ) . alpha as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comp ) , "::" , stringify ! ( alpha ) ) ) ; } pub type opj_image_comp_t = opj_image_comp ; 
 /// Defines image data and characteristics
/// 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_image { 
 /// XOsiz: horizontal offset from the origin of the reference grid to the left side of the image area 
 pub x0 : OPJ_UINT32 , 
 /// YOsiz: vertical offset from the origin of the reference grid to the top side of the image area 
 pub y0 : OPJ_UINT32 , 
 /// Xsiz: width of the reference grid 
 pub x1 : OPJ_UINT32 , 
 /// Ysiz: height of the reference grid 
 pub y1 : OPJ_UINT32 , 
 /// number of components in the image 
 pub numcomps : OPJ_UINT32 , 
 /// color space: sRGB, Greyscale or YUV 
 pub color_space : OPJ_COLOR_SPACE , 
 /// image components 
 pub comps : * mut opj_image_comp_t , 
 /// 'restricted' ICC profile 
 pub icc_profile_buf : * mut OPJ_BYTE , 
 /// size of ICC profile 
 pub icc_profile_len : OPJ_UINT32 , } # [ test ] fn bindgen_test_layout_opj_image ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_image > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( opj_image ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_image > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_image ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image > ( ) ) ) . x0 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_image ) , "::" , stringify ! ( x0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image > ( ) ) ) . y0 as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_image ) , "::" , stringify ! ( y0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image > ( ) ) ) . x1 as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_image ) , "::" , stringify ! ( x1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image > ( ) ) ) . y1 as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_image ) , "::" , stringify ! ( y1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image > ( ) ) ) . numcomps as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_image ) , "::" , stringify ! ( numcomps ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image > ( ) ) ) . color_space as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( opj_image ) , "::" , stringify ! ( color_space ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image > ( ) ) ) . comps as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_image ) , "::" , stringify ! ( comps ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image > ( ) ) ) . icc_profile_buf as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_image ) , "::" , stringify ! ( icc_profile_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image > ( ) ) ) . icc_profile_len as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( opj_image ) , "::" , stringify ! ( icc_profile_len ) ) ) ; } pub type opj_image_t = opj_image ; 
 /// Component parameters structure used by the opj_image_create function
/// 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_image_comptparm { 
 /// XRsiz: horizontal separation of a sample of ith component with respect to the reference grid 
 pub dx : OPJ_UINT32 , 
 /// YRsiz: vertical separation of a sample of ith component with respect to the reference grid 
 pub dy : OPJ_UINT32 , 
 /// data width 
 pub w : OPJ_UINT32 , 
 /// data height 
 pub h : OPJ_UINT32 , 
 /// x component offset compared to the whole image 
 pub x0 : OPJ_UINT32 , 
 /// y component offset compared to the whole image 
 pub y0 : OPJ_UINT32 , 
 /// precision 
 pub prec : OPJ_UINT32 , 
 /// image depth in bits 
 pub bpp : OPJ_UINT32 , 
 /// signed (1) / unsigned (0) 
 pub sgnd : OPJ_UINT32 , } # [ test ] fn bindgen_test_layout_opj_image_comptparm ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_image_comptparm > ( ) , 36usize , concat ! ( "Size of: " , stringify ! ( opj_image_comptparm ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_image_comptparm > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( opj_image_comptparm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comptparm > ( ) ) ) . dx as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comptparm ) , "::" , stringify ! ( dx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comptparm > ( ) ) ) . dy as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comptparm ) , "::" , stringify ! ( dy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comptparm > ( ) ) ) . w as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comptparm ) , "::" , stringify ! ( w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comptparm > ( ) ) ) . h as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comptparm ) , "::" , stringify ! ( h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comptparm > ( ) ) ) . x0 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comptparm ) , "::" , stringify ! ( x0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comptparm > ( ) ) ) . y0 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comptparm ) , "::" , stringify ! ( y0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comptparm > ( ) ) ) . prec as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comptparm ) , "::" , stringify ! ( prec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comptparm > ( ) ) ) . bpp as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comptparm ) , "::" , stringify ! ( bpp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_image_comptparm > ( ) ) ) . sgnd as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_image_comptparm ) , "::" , stringify ! ( sgnd ) ) ) ; } pub type opj_image_cmptparm_t = opj_image_comptparm ; 
 /// Index structure : Information concerning a packet inside tile
/// 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_packet_info { 
 /// packet start position (including SOP marker if it exists) 
 pub start_pos : OPJ_OFF_T , 
 /// end of packet header position (including EPH marker if it exists) 
 pub end_ph_pos : OPJ_OFF_T , 
 /// packet end position 
 pub end_pos : OPJ_OFF_T , 
 /// packet distorsion 
 pub disto : f64 , } # [ test ] fn bindgen_test_layout_opj_packet_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_packet_info > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( opj_packet_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_packet_info > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_packet_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_packet_info > ( ) ) ) . start_pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_packet_info ) , "::" , stringify ! ( start_pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_packet_info > ( ) ) ) . end_ph_pos as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_packet_info ) , "::" , stringify ! ( end_ph_pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_packet_info > ( ) ) ) . end_pos as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_packet_info ) , "::" , stringify ! ( end_pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_packet_info > ( ) ) ) . disto as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_packet_info ) , "::" , stringify ! ( disto ) ) ) ; } pub type opj_packet_info_t = opj_packet_info ; 
 /// Marker structure
/// 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_marker_info { 
 /// marker type 
 pub type_ : :: std :: os :: raw :: c_ushort , 
 /// position in codestream 
 pub pos : OPJ_OFF_T , 
 /// length, marker val included 
 pub len : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_opj_marker_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_marker_info > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( opj_marker_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_marker_info > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_marker_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_marker_info > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_marker_info ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_marker_info > ( ) ) ) . pos as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_marker_info ) , "::" , stringify ! ( pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_marker_info > ( ) ) ) . len as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_marker_info ) , "::" , stringify ! ( len ) ) ) ; } pub type opj_marker_info_t = opj_marker_info ; 
 /// Index structure : Information concerning tile-parts 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_tp_info { 
 /// start position of tile part 
 pub tp_start_pos : :: std :: os :: raw :: c_int , 
 /// end position of tile part header 
 pub tp_end_header : :: std :: os :: raw :: c_int , 
 /// end position of tile part 
 pub tp_end_pos : :: std :: os :: raw :: c_int , 
 /// start packet of tile part 
 pub tp_start_pack : :: std :: os :: raw :: c_int , 
 /// number of packets of tile part 
 pub tp_numpacks : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_opj_tp_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_tp_info > ( ) , 20usize , concat ! ( "Size of: " , stringify ! ( opj_tp_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_tp_info > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( opj_tp_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tp_info > ( ) ) ) . tp_start_pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_tp_info ) , "::" , stringify ! ( tp_start_pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tp_info > ( ) ) ) . tp_end_header as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_tp_info ) , "::" , stringify ! ( tp_end_header ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tp_info > ( ) ) ) . tp_end_pos as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_tp_info ) , "::" , stringify ! ( tp_end_pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tp_info > ( ) ) ) . tp_start_pack as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_tp_info ) , "::" , stringify ! ( tp_start_pack ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tp_info > ( ) ) ) . tp_numpacks as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_tp_info ) , "::" , stringify ! ( tp_numpacks ) ) ) ; } pub type opj_tp_info_t = opj_tp_info ; 
 /// Index structure : information regarding tiles 
 # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct opj_tile_info { 
 /// value of thresh for each layer by tile cfr. Marcela 
 pub thresh : * mut f64 , 
 /// number of tile 
 pub tileno : :: std :: os :: raw :: c_int , 
 /// start position 
 pub start_pos : :: std :: os :: raw :: c_int , 
 /// end position of the header 
 pub end_header : :: std :: os :: raw :: c_int , 
 /// end position 
 pub end_pos : :: std :: os :: raw :: c_int , 
 /// precinct number for each resolution level (width) 
 pub pw : [ :: std :: os :: raw :: c_int ; 33usize ] , 
 /// precinct number for each resolution level (height) 
 pub ph : [ :: std :: os :: raw :: c_int ; 33usize ] , 
 /// precinct size (in power of 2), in X for each resolution level 
 pub pdx : [ :: std :: os :: raw :: c_int ; 33usize ] , 
 /// precinct size (in power of 2), in Y for each resolution level 
 pub pdy : [ :: std :: os :: raw :: c_int ; 33usize ] , 
 /// information concerning packets inside tile 
 pub packet : * mut opj_packet_info_t , 
 /// add fixed_quality 
 pub numpix : :: std :: os :: raw :: c_int , 
 /// add fixed_quality 
 pub distotile : f64 , 
 /// number of markers 
 pub marknum : :: std :: os :: raw :: c_int , 
 /// list of markers 
 pub marker : * mut opj_marker_info_t , 
 /// actual size of markers array 
 pub maxmarknum : :: std :: os :: raw :: c_int , 
 /// number of tile parts 
 pub num_tps : :: std :: os :: raw :: c_int , 
 /// information concerning tile parts 
 pub tp : * mut opj_tp_info_t , } # [ test ] fn bindgen_test_layout_opj_tile_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_tile_info > ( ) , 608usize , concat ! ( "Size of: " , stringify ! ( opj_tile_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_tile_info > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_tile_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . thresh as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( thresh ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . tileno as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( tileno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . start_pos as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( start_pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . end_header as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( end_header ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . end_pos as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( end_pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . pw as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( pw ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . ph as * const _ as usize } , 156usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( ph ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . pdx as * const _ as usize } , 288usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( pdx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . pdy as * const _ as usize } , 420usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( pdy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . packet as * const _ as usize } , 552usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( packet ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . numpix as * const _ as usize } , 560usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( numpix ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . distotile as * const _ as usize } , 568usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( distotile ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . marknum as * const _ as usize } , 576usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( marknum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . marker as * const _ as usize } , 584usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( marker ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . maxmarknum as * const _ as usize } , 592usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( maxmarknum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . num_tps as * const _ as usize } , 596usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( num_tps ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_info > ( ) ) ) . tp as * const _ as usize } , 600usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_info ) , "::" , stringify ! ( tp ) ) ) ; } pub type opj_tile_info_t = opj_tile_info ; 
 /// Index structure of the codestream 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_codestream_info { 
 /// maximum distortion reduction on the whole image (add for Marcela) 
 pub D_max : f64 , 
 /// packet number 
 pub packno : :: std :: os :: raw :: c_int , 
 /// writing the packet in the index with t2_encode_packets 
 pub index_write : :: std :: os :: raw :: c_int , 
 /// image width 
 pub image_w : :: std :: os :: raw :: c_int , 
 /// image height 
 pub image_h : :: std :: os :: raw :: c_int , 
 /// progression order 
 pub prog : OPJ_PROG_ORDER , 
 /// tile size in x 
 pub tile_x : :: std :: os :: raw :: c_int , 
 /// tile size in y 
 pub tile_y : :: std :: os :: raw :: c_int , 
 
 pub tile_Ox : :: std :: os :: raw :: c_int , 
 
 pub tile_Oy : :: std :: os :: raw :: c_int , 
 /// number of tiles in X 
 pub tw : :: std :: os :: raw :: c_int , 
 /// number of tiles in Y 
 pub th : :: std :: os :: raw :: c_int , 
 /// component numbers 
 pub numcomps : :: std :: os :: raw :: c_int , 
 /// number of layer 
 pub numlayers : :: std :: os :: raw :: c_int , 
 /// number of decomposition for each component 
 pub numdecompos : * mut :: std :: os :: raw :: c_int , 
 /// number of markers 
 pub marknum : :: std :: os :: raw :: c_int , 
 /// list of markers 
 pub marker : * mut opj_marker_info_t , 
 /// actual size of markers array 
 pub maxmarknum : :: std :: os :: raw :: c_int , 
 /// main header position 
 pub main_head_start : :: std :: os :: raw :: c_int , 
 /// main header position 
 pub main_head_end : :: std :: os :: raw :: c_int , 
 /// codestream's size 
 pub codestream_size : :: std :: os :: raw :: c_int , 
 /// information regarding tiles inside image 
 pub tile : * mut opj_tile_info_t , } # [ test ] fn bindgen_test_layout_opj_codestream_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_codestream_info > ( ) , 112usize , concat ! ( "Size of: " , stringify ! ( opj_codestream_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_codestream_info > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_codestream_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . D_max as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( D_max ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . packno as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( packno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . index_write as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( index_write ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . image_w as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( image_w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . image_h as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( image_h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . prog as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( prog ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . tile_x as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( tile_x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . tile_y as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( tile_y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . tile_Ox as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( tile_Ox ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . tile_Oy as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( tile_Oy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . tw as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( tw ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . th as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( th ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . numcomps as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( numcomps ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . numlayers as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( numlayers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . numdecompos as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( numdecompos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . marknum as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( marknum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . marker as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( marker ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . maxmarknum as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( maxmarknum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . main_head_start as * const _ as usize } , 92usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( main_head_start ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . main_head_end as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( main_head_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . codestream_size as * const _ as usize } , 100usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( codestream_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info > ( ) ) ) . tile as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info ) , "::" , stringify ! ( tile ) ) ) ; } pub type opj_codestream_info_t = opj_codestream_info ; 
 /// Tile-component coding parameters information 
 # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct opj_tccp_info { 
 /// component index 
 pub compno : OPJ_UINT32 , 
 /// coding style 
 pub csty : OPJ_UINT32 , 
 /// number of resolutions 
 pub numresolutions : OPJ_UINT32 , 
 /// log2 of code-blocks width 
 pub cblkw : OPJ_UINT32 , 
 /// log2 of code-blocks height 
 pub cblkh : OPJ_UINT32 , 
 /// code-block coding style 
 pub cblksty : OPJ_UINT32 , 
 /// discrete wavelet transform identifier: 0 = 9-7 irreversible, 1 = 5-3 reversible 
 pub qmfbid : OPJ_UINT32 , 
 /// quantisation style 
 pub qntsty : OPJ_UINT32 , 
 /// stepsizes used for quantization 
 pub stepsizes_mant : [ OPJ_UINT32 ; 97usize ] , 
 /// stepsizes used for quantization 
 pub stepsizes_expn : [ OPJ_UINT32 ; 97usize ] , 
 /// number of guard bits 
 pub numgbits : OPJ_UINT32 , 
 /// Region Of Interest shift 
 pub roishift : OPJ_INT32 , 
 /// precinct width 
 pub prcw : [ OPJ_UINT32 ; 33usize ] , 
 /// precinct height 
 pub prch : [ OPJ_UINT32 ; 33usize ] , } # [ test ] fn bindgen_test_layout_opj_tccp_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_tccp_info > ( ) , 1080usize , concat ! ( "Size of: " , stringify ! ( opj_tccp_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_tccp_info > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( opj_tccp_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . compno as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( compno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . csty as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( csty ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . numresolutions as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( numresolutions ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . cblkw as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( cblkw ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . cblkh as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( cblkh ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . cblksty as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( cblksty ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . qmfbid as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( qmfbid ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . qntsty as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( qntsty ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . stepsizes_mant as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( stepsizes_mant ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . stepsizes_expn as * const _ as usize } , 420usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( stepsizes_expn ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . numgbits as * const _ as usize } , 808usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( numgbits ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . roishift as * const _ as usize } , 812usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( roishift ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . prcw as * const _ as usize } , 816usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( prcw ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tccp_info > ( ) ) ) . prch as * const _ as usize } , 948usize , concat ! ( "Offset of field: " , stringify ! ( opj_tccp_info ) , "::" , stringify ! ( prch ) ) ) ; } pub type opj_tccp_info_t = opj_tccp_info ; 
 /// Tile coding parameters information 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_tile_v2_info { 
 /// number (index) of tile 
 pub tileno : :: std :: os :: raw :: c_int , 
 /// coding style 
 pub csty : OPJ_UINT32 , 
 /// progression order 
 pub prg : OPJ_PROG_ORDER , 
 /// number of layers 
 pub numlayers : OPJ_UINT32 , 
 /// multi-component transform identifier 
 pub mct : OPJ_UINT32 , 
 /// information concerning tile component parameters 
 pub tccp_info : * mut opj_tccp_info_t , } # [ test ] fn bindgen_test_layout_opj_tile_v2_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_tile_v2_info > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( opj_tile_v2_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_tile_v2_info > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_tile_v2_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_v2_info > ( ) ) ) . tileno as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_v2_info ) , "::" , stringify ! ( tileno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_v2_info > ( ) ) ) . csty as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_v2_info ) , "::" , stringify ! ( csty ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_v2_info > ( ) ) ) . prg as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_v2_info ) , "::" , stringify ! ( prg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_v2_info > ( ) ) ) . numlayers as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_v2_info ) , "::" , stringify ! ( numlayers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_v2_info > ( ) ) ) . mct as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_v2_info ) , "::" , stringify ! ( mct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_v2_info > ( ) ) ) . tccp_info as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_v2_info ) , "::" , stringify ! ( tccp_info ) ) ) ; } pub type opj_tile_info_v2_t = opj_tile_v2_info ; 
 /// Information structure about the codestream (FIXME should be expand and enhance) 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_codestream_info_v2 { 
 /// tile origin in x = XTOsiz 
 pub tx0 : OPJ_UINT32 , 
 /// tile origin in y = YTOsiz 
 pub ty0 : OPJ_UINT32 , 
 /// tile size in x = XTsiz 
 pub tdx : OPJ_UINT32 , 
 /// tile size in y = YTsiz 
 pub tdy : OPJ_UINT32 , 
 /// number of tiles in X 
 pub tw : OPJ_UINT32 , 
 /// number of tiles in Y 
 pub th : OPJ_UINT32 , 
 /// number of components 
 pub nbcomps : OPJ_UINT32 , 
 /// Default information regarding tiles inside image 
 pub m_default_tile_info : opj_tile_info_v2_t , 
 /// information regarding tiles inside image 
 pub tile_info : * mut opj_tile_info_v2_t , } # [ test ] fn bindgen_test_layout_opj_codestream_info_v2 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_codestream_info_v2 > ( ) , 72usize , concat ! ( "Size of: " , stringify ! ( opj_codestream_info_v2 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_codestream_info_v2 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_codestream_info_v2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info_v2 > ( ) ) ) . tx0 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info_v2 ) , "::" , stringify ! ( tx0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info_v2 > ( ) ) ) . ty0 as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info_v2 ) , "::" , stringify ! ( ty0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info_v2 > ( ) ) ) . tdx as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info_v2 ) , "::" , stringify ! ( tdx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info_v2 > ( ) ) ) . tdy as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info_v2 ) , "::" , stringify ! ( tdy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info_v2 > ( ) ) ) . tw as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info_v2 ) , "::" , stringify ! ( tw ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info_v2 > ( ) ) ) . th as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info_v2 ) , "::" , stringify ! ( th ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info_v2 > ( ) ) ) . nbcomps as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info_v2 ) , "::" , stringify ! ( nbcomps ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info_v2 > ( ) ) ) . m_default_tile_info as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info_v2 ) , "::" , stringify ! ( m_default_tile_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_info_v2 > ( ) ) ) . tile_info as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_info_v2 ) , "::" , stringify ! ( tile_info ) ) ) ; } pub type opj_codestream_info_v2_t = opj_codestream_info_v2 ; 
 /// Index structure about a tile part 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_tp_index { 
 /// start position 
 pub start_pos : OPJ_OFF_T , 
 /// end position of the header 
 pub end_header : OPJ_OFF_T , 
 /// end position 
 pub end_pos : OPJ_OFF_T , } # [ test ] fn bindgen_test_layout_opj_tp_index ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_tp_index > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( opj_tp_index ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_tp_index > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_tp_index ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tp_index > ( ) ) ) . start_pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_tp_index ) , "::" , stringify ! ( start_pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tp_index > ( ) ) ) . end_header as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_tp_index ) , "::" , stringify ! ( end_header ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tp_index > ( ) ) ) . end_pos as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_tp_index ) , "::" , stringify ! ( end_pos ) ) ) ; } pub type opj_tp_index_t = opj_tp_index ; 
 /// Index structure about a tile 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_tile_index { 
 /// tile index 
 pub tileno : OPJ_UINT32 , 
 /// number of tile parts 
 pub nb_tps : OPJ_UINT32 , 
 /// current nb of tile part (allocated) 
 pub current_nb_tps : OPJ_UINT32 , 
 /// current tile-part index 
 pub current_tpsno : OPJ_UINT32 , 
 /// information concerning tile parts 
 pub tp_index : * mut opj_tp_index_t , 
 /// number of markers 
 pub marknum : OPJ_UINT32 , 
 /// list of markers 
 pub marker : * mut opj_marker_info_t , 
 /// actual size of markers array 
 pub maxmarknum : OPJ_UINT32 , 
 /// packet number 
 pub nb_packet : OPJ_UINT32 , 
 /// information concerning packets inside tile 
 pub packet_index : * mut opj_packet_info_t , } # [ test ] fn bindgen_test_layout_opj_tile_index ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_tile_index > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( opj_tile_index ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_tile_index > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_tile_index ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . tileno as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( tileno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . nb_tps as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( nb_tps ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . current_nb_tps as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( current_nb_tps ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . current_tpsno as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( current_tpsno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . tp_index as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( tp_index ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . marknum as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( marknum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . marker as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( marker ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . maxmarknum as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( maxmarknum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . nb_packet as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( nb_packet ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_tile_index > ( ) ) ) . packet_index as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( opj_tile_index ) , "::" , stringify ! ( packet_index ) ) ) ; } pub type opj_tile_index_t = opj_tile_index ; 
 /// Index structure of the codestream (FIXME should be expand and enhance) 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_codestream_index { 
 /// main header start position (SOC position) 
 pub main_head_start : OPJ_OFF_T , 
 /// main header end position (first SOT position) 
 pub main_head_end : OPJ_OFF_T , 
 /// codestream's size 
 pub codestream_size : OPJ_UINT64 , 
 /// number of markers 
 pub marknum : OPJ_UINT32 , 
 /// list of markers 
 pub marker : * mut opj_marker_info_t , 
 /// actual size of markers array 
 pub maxmarknum : OPJ_UINT32 , 
 
 pub nb_of_tiles : OPJ_UINT32 , 
 
 pub tile_index : * mut opj_tile_index_t , } # [ test ] fn bindgen_test_layout_opj_codestream_index ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_codestream_index > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( opj_codestream_index ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_codestream_index > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( opj_codestream_index ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_index > ( ) ) ) . main_head_start as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_index ) , "::" , stringify ! ( main_head_start ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_index > ( ) ) ) . main_head_end as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_index ) , "::" , stringify ! ( main_head_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_index > ( ) ) ) . codestream_size as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_index ) , "::" , stringify ! ( codestream_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_index > ( ) ) ) . marknum as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_index ) , "::" , stringify ! ( marknum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_index > ( ) ) ) . marker as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_index ) , "::" , stringify ! ( marker ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_index > ( ) ) ) . maxmarknum as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_index ) , "::" , stringify ! ( maxmarknum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_index > ( ) ) ) . nb_of_tiles as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_index ) , "::" , stringify ! ( nb_of_tiles ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_codestream_index > ( ) ) ) . tile_index as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( opj_codestream_index ) , "::" , stringify ! ( tile_index ) ) ) ; } pub type opj_codestream_index_t = opj_codestream_index ; 
 /// Info structure of the JP2 file
/// EXPERIMENTAL FOR THE MOMENT 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_jp2_metadata { 
 
 pub not_used : OPJ_INT32 , } # [ test ] fn bindgen_test_layout_opj_jp2_metadata ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_jp2_metadata > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( opj_jp2_metadata ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_jp2_metadata > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( opj_jp2_metadata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_jp2_metadata > ( ) ) ) . not_used as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_jp2_metadata ) , "::" , stringify ! ( not_used ) ) ) ; } pub type opj_jp2_metadata_t = opj_jp2_metadata ; 
 /// Index structure of the JP2 file
/// EXPERIMENTAL FOR THE MOMENT 
 # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct opj_jp2_index { 
 
 pub not_used : OPJ_INT32 , } # [ test ] fn bindgen_test_layout_opj_jp2_index ( ) { assert_eq ! ( :: std :: mem :: size_of :: < opj_jp2_index > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( opj_jp2_index ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < opj_jp2_index > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( opj_jp2_index ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < opj_jp2_index > ( ) ) ) . not_used as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( opj_jp2_index ) , "::" , stringify ! ( not_used ) ) ) ; } pub type opj_jp2_index_t = opj_jp2_index ; extern "C" { pub fn opj_version ( ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { 
 /// Create an image
///
/// @param numcmpts      number of components
/// @param cmptparms     components parameters
/// @param clrspc        image color space
/// @return returns      a new image structure if successful, returns NULL otherwise
/// 
 pub fn opj_image_create ( numcmpts : OPJ_UINT32 , cmptparms : * mut opj_image_cmptparm_t , clrspc : OPJ_COLOR_SPACE ) -> * mut opj_image_t ; } extern "C" { 
 /// Deallocate any resources associated with an image
///
/// @param image         image to be destroyed 
 pub fn opj_image_destroy ( image : * mut opj_image_t ) ; } extern "C" { 
 /// Creates an image without allocating memory for the image (used in the new version of the library).
///
/// @param   numcmpts    the number of components
/// @param   cmptparms   the components parameters
/// @param   clrspc      the image color space
///
/// @return  a new image structure if successful, NULL otherwise. 
 pub fn opj_image_tile_create ( numcmpts : OPJ_UINT32 , cmptparms : * mut opj_image_cmptparm_t , clrspc : OPJ_COLOR_SPACE ) -> * mut opj_image_t ; } extern "C" { 
 /// Allocator for opj_image_t->comps[].data
/// To be paired with opj_image_data_free.
///
/// @param   size    number of bytes to allocate
///
/// @return  a new pointer if successful, NULL otherwise.
/// @since 2.2.0 
 pub fn opj_image_data_alloc ( size : OPJ_SIZE_T ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { 
 /// Destructor for opj_image_t->comps[].data
/// To be paired with opj_image_data_alloc.
///
/// @param   ptr    Pointer to free
///
/// @since 2.2.0 
 pub fn opj_image_data_free ( ptr : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { 
 /// Creates an abstract stream. This function does nothing except allocating memory and initializing the abstract stream.
///
/// @param   p_is_input      if set to true then the stream will be an input stream, an output stream else.
///
/// @return  a stream object. 
 pub fn opj_stream_default_create ( p_is_input : OPJ_BOOL ) -> * mut opj_stream_t ; } extern "C" { 
 /// Creates an abstract stream. This function does nothing except allocating memory and initializing the abstract stream.
///
/// @param   p_buffer_size  FIXME DOC
/// @param   p_is_input      if set to true then the stream will be an input stream, an output stream else.
///
/// @return  a stream object. 
 pub fn opj_stream_create ( p_buffer_size : OPJ_SIZE_T , p_is_input : OPJ_BOOL ) -> * mut opj_stream_t ; } extern "C" { 
 /// Destroys a stream created by opj_create_stream. This function does NOT close the abstract stream. If needed the user must
/// close its own implementation of the stream.
///
/// @param   p_stream    the stream to destroy. 
 pub fn opj_stream_destroy ( p_stream : * mut opj_stream_t ) ; } extern "C" { 
 /// Sets the given function to be used as a read function.
/// @param       p_stream    the stream to modify
/// @param       p_function  the function to use a read function. 
 pub fn opj_stream_set_read_function ( p_stream : * mut opj_stream_t , p_function : opj_stream_read_fn ) ; } extern "C" { 
 /// Sets the given function to be used as a write function.
/// @param       p_stream    the stream to modify
/// @param       p_function  the function to use a write function. 
 pub fn opj_stream_set_write_function ( p_stream : * mut opj_stream_t , p_function : opj_stream_write_fn ) ; } extern "C" { 
 /// Sets the given function to be used as a skip function.
/// @param       p_stream    the stream to modify
/// @param       p_function  the function to use a skip function. 
 pub fn opj_stream_set_skip_function ( p_stream : * mut opj_stream_t , p_function : opj_stream_skip_fn ) ; } extern "C" { 
 /// Sets the given function to be used as a seek function, the stream is then seekable.
/// @param       p_stream    the stream to modify
/// @param       p_function  the function to use a skip function. 
 pub fn opj_stream_set_seek_function ( p_stream : * mut opj_stream_t , p_function : opj_stream_seek_fn ) ; } extern "C" { 
 /// Sets the given data to be used as a user data for the stream.
/// @param       p_stream    the stream to modify
/// @param       p_data      the data to set.
/// @param       p_function  the function to free p_data when opj_stream_destroy() is called. 
 pub fn opj_stream_set_user_data ( p_stream : * mut opj_stream_t , p_data : * mut :: std :: os :: raw :: c_void , p_function : opj_stream_free_user_data_fn ) ; } extern "C" { 
 /// Sets the length of the user data for the stream.
///
/// @param p_stream    the stream to modify
/// @param data_length length of the user_data. 
 pub fn opj_stream_set_user_data_length ( p_stream : * mut opj_stream_t , data_length : OPJ_UINT64 ) ; } extern "C" { 
 /// Create a stream from a file identified with its filename with default parameters (helper function)
/// @param fname             the filename of the file to stream
/// @param p_is_read_stream  whether the stream is a read stream (true) or not (false) 
 pub fn opj_stream_create_default_file_stream ( fname : * const :: std :: os :: raw :: c_char , p_is_read_stream : OPJ_BOOL ) -> * mut opj_stream_t ; } extern "C" { 
 /// Create a stream from a file identified with its filename with a specific buffer size
/// @param fname             the filename of the file to stream
/// @param p_buffer_size     size of the chunk used to stream
/// @param p_is_read_stream  whether the stream is a read stream (true) or not (false) 
 pub fn opj_stream_create_file_stream ( fname : * const :: std :: os :: raw :: c_char , p_buffer_size : OPJ_SIZE_T , p_is_read_stream : OPJ_BOOL ) -> * mut opj_stream_t ; } extern "C" { 
 /// Set the info handler use by openjpeg.
/// @param p_codec       the codec previously initialise
/// @param p_callback    the callback function which will be used
/// @param p_user_data   client object where will be returned the message 
 pub fn opj_set_info_handler ( p_codec : * mut opj_codec_t , p_callback : opj_msg_callback , p_user_data : * mut :: std :: os :: raw :: c_void ) -> OPJ_BOOL ; } extern "C" { 
 /// Set the warning handler use by openjpeg.
/// @param p_codec       the codec previously initialise
/// @param p_callback    the callback function which will be used
/// @param p_user_data   client object where will be returned the message 
 pub fn opj_set_warning_handler ( p_codec : * mut opj_codec_t , p_callback : opj_msg_callback , p_user_data : * mut :: std :: os :: raw :: c_void ) -> OPJ_BOOL ; } extern "C" { 
 /// Set the error handler use by openjpeg.
/// @param p_codec       the codec previously initialise
/// @param p_callback    the callback function which will be used
/// @param p_user_data   client object where will be returned the message 
 pub fn opj_set_error_handler ( p_codec : * mut opj_codec_t , p_callback : opj_msg_callback , p_user_data : * mut :: std :: os :: raw :: c_void ) -> OPJ_BOOL ; } extern "C" { 
 /// Creates a J2K/JP2 decompression structure
/// @param format        Decoder to select
///
/// @return Returns a handle to a decompressor if successful, returns NULL otherwise
/// 
 pub fn opj_create_decompress ( format : OPJ_CODEC_FORMAT ) -> * mut opj_codec_t ; } extern "C" { 
 /// Destroy a decompressor handle
///
/// @param   p_codec         decompressor handle to destroy 
 pub fn opj_destroy_codec ( p_codec : * mut opj_codec_t ) ; } extern "C" { 
 /// Read after the codestream if necessary
/// @param   p_codec         the JPEG2000 codec to read.
/// @param   p_stream        the JPEG2000 stream. 
 pub fn opj_end_decompress ( p_codec : * mut opj_codec_t , p_stream : * mut opj_stream_t ) -> OPJ_BOOL ; } extern "C" { 
 /// Set decoding parameters to default values
/// @param parameters Decompression parameters 
 pub fn opj_set_default_decoder_parameters ( parameters : * mut opj_dparameters_t ) ; } extern "C" { 
 /// Setup the decoder with decompression parameters provided by the user and with the message handler
/// provided by the user.
///
/// @param p_codec       decompressor handler
/// @param parameters    decompression parameters
///
/// @return true         if the decoder is correctly set 
 pub fn opj_setup_decoder ( p_codec : * mut opj_codec_t , parameters : * mut opj_dparameters_t ) -> OPJ_BOOL ; } extern "C" { 
 /// Allocates worker threads for the compressor/decompressor.
///
/// By default, only the main thread is used. If this function is not used,
/// but the OPJ_NUM_THREADS environment variable is set, its value will be
/// used to initialize the number of threads. The value can be either an integer
/// number, or "ALL_CPUS". If OPJ_NUM_THREADS is set and this function is called,
/// this function will override the behaviour of the environment variable.
///
/// Note: currently only has effect on the decompressor.
///
/// @param p_codec       decompressor handler
/// @param num_threads   number of threads.
///
/// @return OPJ_TRUE     if the decoder is correctly set 
 pub fn opj_codec_set_threads ( p_codec : * mut opj_codec_t , num_threads : :: std :: os :: raw :: c_int ) -> OPJ_BOOL ; } extern "C" { 
 /// Decodes an image header.
///
/// @param   p_stream        the jpeg2000 stream.
/// @param   p_codec         the jpeg2000 codec to read.
/// @param   p_image         the image structure initialized with the characteristics of encoded image.
///
/// @return true             if the main header of the codestream and the JP2 header is correctly read. 
 pub fn opj_read_header ( p_stream : * mut opj_stream_t , p_codec : * mut opj_codec_t , p_image : * mut * mut opj_image_t ) -> OPJ_BOOL ; } extern "C" { 
 /// Restrict the number of components to decode.
///
/// This function should be called after opj_read_header().
///
/// This function enables to restrict the set of decoded components to the
/// specified indices.
/// Note that the current implementation (apply_color_transforms == OPJ_FALSE)
/// is such that neither the multi-component transform at codestream level,
/// nor JP2 channel transformations will be applied.
/// Consequently the indices are relative to the codestream.
///
/// Note: opj_decode_tile_data() should not be used together with opj_set_decoded_components().
///
/// @param   p_codec         the jpeg2000 codec to read.
/// @param   numcomps        Size of the comps_indices array.
/// @param   comps_indices   Array of numcomps values representing the indices
/// of the components to decode (relative to the
/// codestream, starting at 0)
/// @param   apply_color_transforms Whether multi-component transform at codestream level
/// or JP2 channel transformations should be applied.
/// Currently this parameter should be set to OPJ_FALSE.
/// Setting it to OPJ_TRUE will result in an error.
///
/// @return OPJ_TRUE         in case of success. 
 pub fn opj_set_decoded_components ( p_codec : * mut opj_codec_t , numcomps : OPJ_UINT32 , comps_indices : * const OPJ_UINT32 , apply_color_transforms : OPJ_BOOL ) -> OPJ_BOOL ; } extern "C" { 
 /// Sets the given area to be decoded. This function should be called right after opj_read_header and before any tile header reading.
///
/// The coordinates passed to this function should be expressed in the reference grid,
/// that is to say at the highest resolution level, even if requesting the image at lower
/// resolution levels.
///
/// Generally opj_set_decode_area() should be followed by opj_decode(), and the
/// codec cannot be re-used.
/// In the particular case of an image made of a single tile, several sequences of
/// calls to opoj_set_decode_area() and opj_decode() are allowed, and will bring
/// performance improvements when reading an image by chunks.
///
/// @param   p_codec         the jpeg2000 codec.
/// @param   p_image         the decoded image previously setted by opj_read_header
/// @param   p_start_x       the left position of the rectangle to decode (in image coordinates).
/// @param   p_end_x         the right position of the rectangle to decode (in image coordinates).
/// @param   p_start_y       the up position of the rectangle to decode (in image coordinates).
/// @param   p_end_y         the bottom position of the rectangle to decode (in image coordinates).
///
/// @return  true            if the area could be set. 
 pub fn opj_set_decode_area ( p_codec : * mut opj_codec_t , p_image : * mut opj_image_t , p_start_x : OPJ_INT32 , p_start_y : OPJ_INT32 , p_end_x : OPJ_INT32 , p_end_y : OPJ_INT32 ) -> OPJ_BOOL ; } extern "C" { 
 /// Decode an image from a JPEG-2000 codestream
///
/// @param p_decompressor    decompressor handle
/// @param p_stream          Input buffer stream
/// @param p_image           the decoded image
/// @return                  true if success, otherwise false
/// 
 pub fn opj_decode ( p_decompressor : * mut opj_codec_t , p_stream : * mut opj_stream_t , p_image : * mut opj_image_t ) -> OPJ_BOOL ; } extern "C" { 
 /// Get the decoded tile from the codec
///
/// @param   p_codec         the jpeg2000 codec.
/// @param   p_stream        input streamm
/// @param   p_image         output image
/// @param   tile_index      index of the tile which will be decode
///
/// @return                  true if success, otherwise false 
 pub fn opj_get_decoded_tile ( p_codec : * mut opj_codec_t , p_stream : * mut opj_stream_t , p_image : * mut opj_image_t , tile_index : OPJ_UINT32 ) -> OPJ_BOOL ; } extern "C" { 
 /// Set the resolution factor of the decoded image
/// @param   p_codec         the jpeg2000 codec.
/// @param   res_factor      resolution factor to set
///
/// @return                  true if success, otherwise false 
 pub fn opj_set_decoded_resolution_factor ( p_codec : * mut opj_codec_t , res_factor : OPJ_UINT32 ) -> OPJ_BOOL ; } extern "C" { 
 /// Writes a tile with the given data.
///
/// @param   p_codec             the jpeg2000 codec.
/// @param   p_tile_index        the index of the tile to write. At the moment, the tiles must be written from 0 to n-1 in sequence.
/// @param   p_data              pointer to the data to write. Data is arranged in sequence, data_comp0, then data_comp1, then ... NO INTERLEAVING should be set.
/// @param   p_data_size         this value os used to make sure the data being written is correct. The size must be equal to the sum for each component of
/// tile_width * tile_height * component_size. component_size can be 1,2 or 4 bytes, depending on the precision of the given component.
/// @param   p_stream            the stream to write data to.
///
/// @return  true if the data could be written. 
 pub fn opj_write_tile ( p_codec : * mut opj_codec_t , p_tile_index : OPJ_UINT32 , p_data : * mut OPJ_BYTE , p_data_size : OPJ_UINT32 , p_stream : * mut opj_stream_t ) -> OPJ_BOOL ; } extern "C" { 
 /// Reads a tile header. This function is compulsory and allows one to know the size of the tile that will be decoded.
/// The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile.
///
/// @param   p_codec         the jpeg2000 codec.
/// @param   p_tile_index    pointer to a value that will hold the index of the tile being decoded, in case of success.
/// @param   p_data_size     pointer to a value that will hold the maximum size of the decoded data, in case of success. In case
/// of truncated codestreams, the actual number of bytes decoded may be lower. The computation of the size is the same
/// as depicted in opj_write_tile.
/// @param   p_tile_x0       pointer to a value that will hold the x0 pos of the tile (in the image).
/// @param   p_tile_y0       pointer to a value that will hold the y0 pos of the tile (in the image).
/// @param   p_tile_x1       pointer to a value that will hold the x1 pos of the tile (in the image).
/// @param   p_tile_y1       pointer to a value that will hold the y1 pos of the tile (in the image).
/// @param   p_nb_comps      pointer to a value that will hold the number of components in the tile.
/// @param   p_should_go_on  pointer to a boolean that will hold the fact that the decoding should go on. In case the
/// codestream is over at the time of the call, the value will be set to false. The user should then stop
/// the decoding.
/// @param   p_stream        the stream to decode.
/// @return  true            if the tile header could be decoded. In case the decoding should end, the returned value is still true.
/// returning false may be the result of a shortage of memory or an internal error. 
 pub fn opj_read_tile_header ( p_codec : * mut opj_codec_t , p_stream : * mut opj_stream_t , p_tile_index : * mut OPJ_UINT32 , p_data_size : * mut OPJ_UINT32 , p_tile_x0 : * mut OPJ_INT32 , p_tile_y0 : * mut OPJ_INT32 , p_tile_x1 : * mut OPJ_INT32 , p_tile_y1 : * mut OPJ_INT32 , p_nb_comps : * mut OPJ_UINT32 , p_should_go_on : * mut OPJ_BOOL ) -> OPJ_BOOL ; } extern "C" { 
 /// Reads a tile data. This function is compulsory and allows one to decode tile data. opj_read_tile_header should be called before.
/// The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile.
///
/// Note: opj_decode_tile_data() should not be used together with opj_set_decoded_components().
///
/// @param   p_codec         the jpeg2000 codec.
/// @param   p_tile_index    the index of the tile being decoded, this should be the value set by opj_read_tile_header.
/// @param   p_data          pointer to a memory block that will hold the decoded data.
/// @param   p_data_size     size of p_data. p_data_size should be bigger or equal to the value set by opj_read_tile_header.
/// @param   p_stream        the stream to decode.
///
/// @return  true            if the data could be decoded. 
 pub fn opj_decode_tile_data ( p_codec : * mut opj_codec_t , p_tile_index : OPJ_UINT32 , p_data : * mut OPJ_BYTE , p_data_size : OPJ_UINT32 , p_stream : * mut opj_stream_t ) -> OPJ_BOOL ; } extern "C" { 
 /// Creates a J2K/JP2 compression structure
/// @param   format      Coder to select
/// @return              Returns a handle to a compressor if successful, returns NULL otherwise 
 pub fn opj_create_compress ( format : OPJ_CODEC_FORMAT ) -> * mut opj_codec_t ; } extern "C" { 
 /// Set encoding parameters to default values, that means :
/// <ul>
/// <li>Lossless
/// <li>1 tile
/// <li>Size of precinct : 2^15 x 2^15 (means 1 precinct)
/// <li>Size of code-block : 64 x 64
/// <li>Number of resolutions: 6
/// <li>No SOP marker in the codestream
/// <li>No EPH marker in the codestream
/// <li>No sub-sampling in x or y direction
/// <li>No mode switch activated
/// <li>Progression order: LRCP
/// <li>No index file
/// <li>No ROI upshifted
/// <li>No offset of the origin of the image
/// <li>No offset of the origin of the tiles
/// <li>Reversible DWT 5-3
/// </ul>
/// @param parameters Compression parameters 
 pub fn opj_set_default_encoder_parameters ( parameters : * mut opj_cparameters_t ) ; } extern "C" { 
 /// Setup the encoder parameters using the current image and using user parameters.
/// @param p_codec       Compressor handle
/// @param parameters    Compression parameters
/// @param image         Input filled image 
 pub fn opj_setup_encoder ( p_codec : * mut opj_codec_t , parameters : * mut opj_cparameters_t , image : * mut opj_image_t ) -> OPJ_BOOL ; } extern "C" { 
 /// Start to compress the current image.
/// @param p_codec       Compressor handle
/// @param p_image       Input filled image
/// @param p_stream      Input stgream 
 pub fn opj_start_compress ( p_codec : * mut opj_codec_t , p_image : * mut opj_image_t , p_stream : * mut opj_stream_t ) -> OPJ_BOOL ; } extern "C" { 
 /// End to compress the current image.
/// @param p_codec       Compressor handle
/// @param p_stream      Input stgream 
 pub fn opj_end_compress ( p_codec : * mut opj_codec_t , p_stream : * mut opj_stream_t ) -> OPJ_BOOL ; } extern "C" { 
 /// Encode an image into a JPEG-2000 codestream
/// @param p_codec       compressor handle
/// @param p_stream      Output buffer stream
///
/// @return              Returns true if successful, returns false otherwise 
 pub fn opj_encode ( p_codec : * mut opj_codec_t , p_stream : * mut opj_stream_t ) -> OPJ_BOOL ; } extern "C" { 
 /// Destroy Codestream information after compression or decompression
/// @param cstr_info Codestream information structure 
 pub fn opj_destroy_cstr_info ( cstr_info : * mut * mut opj_codestream_info_v2_t ) ; } extern "C" { 
 /// Dump the codec information into the output stream
///
/// @param   p_codec         the jpeg2000 codec.
/// @param   info_flag       type of information dump.
/// @param   output_stream   output stream where dump the information gotten from the codec.
/// 
 pub fn opj_dump_codec ( p_codec : * mut opj_codec_t , info_flag : OPJ_INT32 , output_stream : * mut FILE ) ; } extern "C" { 
 /// Get the codestream information from the codec
///
/// @param   p_codec         the jpeg2000 codec.
///
/// @return                  a pointer to a codestream information structure.
/// 
 pub fn opj_get_cstr_info ( p_codec : * mut opj_codec_t ) -> * mut opj_codestream_info_v2_t ; } extern "C" { 
 /// Get the codestream index from the codec
///
/// @param   p_codec         the jpeg2000 codec.
///
/// @return                  a pointer to a codestream index structure.
/// 
 pub fn opj_get_cstr_index ( p_codec : * mut opj_codec_t ) -> * mut opj_codestream_index_t ; } extern "C" { pub fn opj_destroy_cstr_index ( p_cstr_index : * mut * mut opj_codestream_index_t ) ; } extern "C" { 
 /// Get the JP2 file information from the codec FIXME
///
/// @param   p_codec         the jpeg2000 codec.
///
/// @return                  a pointer to a JP2 metadata structure.
/// 
 pub fn opj_get_jp2_metadata ( p_codec : * mut opj_codec_t ) -> * mut opj_jp2_metadata_t ; } extern "C" { 
 /// Get the JP2 file index from the codec FIXME
///
/// @param   p_codec         the jpeg2000 codec.
///
/// @return                  a pointer to a JP2 index structure.
/// 
 pub fn opj_get_jp2_index ( p_codec : * mut opj_codec_t ) -> * mut opj_jp2_index_t ; } extern "C" { 
 /// Sets the MCT matrix to use.
///
/// @param   parameters      the parameters to change.
/// @param   pEncodingMatrix the encoding matrix.
/// @param   p_dc_shift      the dc shift coefficients to use.
/// @param   pNbComp         the number of components of the image.
///
/// @return  true if the parameters could be set. 
 pub fn opj_set_MCT ( parameters : * mut opj_cparameters_t , pEncodingMatrix : * mut OPJ_FLOAT32 , p_dc_shift : * mut OPJ_INT32 , pNbComp : OPJ_UINT32 ) -> OPJ_BOOL ; } extern "C" { 
 /// Returns if the library is built with thread support.
/// OPJ_TRUE if mutex, condition, thread, thread pool are available. 
 pub fn opj_has_thread_support ( ) -> OPJ_BOOL ; } extern "C" { 
 /// Return the number of virtual CPUs 
 pub fn opj_get_num_cpus ( ) -> :: std :: os :: raw :: c_int ; } pub type __builtin_va_list = [ __va_list_tag ; 1usize ] ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout___va_list_tag ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __va_list_tag > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __va_list_tag ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __va_list_tag > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __va_list_tag ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . gp_offset as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( gp_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . fp_offset as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( fp_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . overflow_arg_area as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( overflow_arg_area ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . reg_save_area as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( reg_save_area ) ) ) ; }