kazan 0.3.9+1.4.359

Vulkan bindings for Rust
Documentation
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
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
//! <https://registry.khronos.org/vulkan/specs/latest/man/html/vulkan_video_codec_h264std.html>
#![allow(unused_imports)]
use crate::{vk::Result as VkResult, vk::*, *};
use core::ffi::{CStr, c_char, c_int, c_void};
use core::mem::transmute;
use core::ptr;

pub const EXTENSION_NAME: &CStr = c"vulkan_video_codec_h264std";

pub(super) mod defs {
    #![allow(non_camel_case_types, unused_imports)]
    use crate::{vk::*, *};
    use core::ffi::{CStr, c_char, c_int, c_void};
    use core::fmt;
    use core::marker::PhantomData;
    use core::ptr;

    pub const STD_VIDEO_H264_CPB_CNT_LIST_SIZE: u32 = 32;
    pub const STD_VIDEO_H264_SCALING_LIST_4X4_NUM_LISTS: u32 = 6;
    pub const STD_VIDEO_H264_SCALING_LIST_4X4_NUM_ELEMENTS: u32 = 16;
    pub const STD_VIDEO_H264_SCALING_LIST_8X8_NUM_LISTS: u32 = 6;
    pub const STD_VIDEO_H264_SCALING_LIST_8X8_NUM_ELEMENTS: u32 = 64;
    pub const STD_VIDEO_H264_MAX_NUM_LIST_REF: u32 = 32;
    pub const STD_VIDEO_H264_MAX_CHROMA_PLANES: u32 = 2;
    pub const STD_VIDEO_H264_NO_REFERENCE_PICTURE: u8 = 0xF;

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264SpsVuiFlags.html>
    #[repr(C)]
    #[cfg_attr(feature = "debug", derive(Debug))]
    #[derive(Copy, Clone, Default)]
    #[must_use]
    pub struct StdVideoH264SpsVuiFlags {
        pub _bitfield_0: u32,
    }

    impl StdVideoH264SpsVuiFlags {
        #[inline]
        pub fn aspect_ratio_info_present_flag(
            mut self,
            aspect_ratio_info_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<0>(&mut self._bitfield_0, aspect_ratio_info_present_flag);
            self
        }

        #[inline]
        pub fn overscan_info_present_flag(mut self, overscan_info_present_flag: bool) -> Self {
            set_bitfield_bool::<1>(&mut self._bitfield_0, overscan_info_present_flag);
            self
        }

        #[inline]
        pub fn overscan_appropriate_flag(mut self, overscan_appropriate_flag: bool) -> Self {
            set_bitfield_bool::<2>(&mut self._bitfield_0, overscan_appropriate_flag);
            self
        }

        #[inline]
        pub fn video_signal_type_present_flag(
            mut self,
            video_signal_type_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<3>(&mut self._bitfield_0, video_signal_type_present_flag);
            self
        }

        #[inline]
        pub fn video_full_range_flag(mut self, video_full_range_flag: bool) -> Self {
            set_bitfield_bool::<4>(&mut self._bitfield_0, video_full_range_flag);
            self
        }

        #[inline]
        pub fn color_description_present_flag(
            mut self,
            color_description_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<5>(&mut self._bitfield_0, color_description_present_flag);
            self
        }

        #[inline]
        pub fn chroma_loc_info_present_flag(mut self, chroma_loc_info_present_flag: bool) -> Self {
            set_bitfield_bool::<6>(&mut self._bitfield_0, chroma_loc_info_present_flag);
            self
        }

        #[inline]
        pub fn timing_info_present_flag(mut self, timing_info_present_flag: bool) -> Self {
            set_bitfield_bool::<7>(&mut self._bitfield_0, timing_info_present_flag);
            self
        }

        #[inline]
        pub fn fixed_frame_rate_flag(mut self, fixed_frame_rate_flag: bool) -> Self {
            set_bitfield_bool::<8>(&mut self._bitfield_0, fixed_frame_rate_flag);
            self
        }

        #[inline]
        pub fn bitstream_restriction_flag(mut self, bitstream_restriction_flag: bool) -> Self {
            set_bitfield_bool::<9>(&mut self._bitfield_0, bitstream_restriction_flag);
            self
        }

        #[inline]
        pub fn nal_hrd_parameters_present_flag(
            mut self,
            nal_hrd_parameters_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<10>(&mut self._bitfield_0, nal_hrd_parameters_present_flag);
            self
        }

        #[inline]
        pub fn vcl_hrd_parameters_present_flag(
            mut self,
            vcl_hrd_parameters_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<11>(&mut self._bitfield_0, vcl_hrd_parameters_present_flag);
            self
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264HrdParameters.html>
    #[repr(C)]
    #[cfg_attr(feature = "debug", derive(Debug))]
    #[derive(Copy, Clone)]
    #[must_use]
    pub struct StdVideoH264HrdParameters {
        pub cpb_cnt_minus1: u8,
        pub bit_rate_scale: u8,
        pub cpb_size_scale: u8,
        pub reserved1: u8,
        pub bit_rate_value_minus1: [u32; STD_VIDEO_H264_CPB_CNT_LIST_SIZE as usize],
        pub cpb_size_value_minus1: [u32; STD_VIDEO_H264_CPB_CNT_LIST_SIZE as usize],
        pub cbr_flag: [u8; STD_VIDEO_H264_CPB_CNT_LIST_SIZE as usize],
        pub initial_cpb_removal_delay_length_minus1: u32,
        pub cpb_removal_delay_length_minus1: u32,
        pub dpb_output_delay_length_minus1: u32,
        pub time_offset_length: u32,
    }

    impl Default for StdVideoH264HrdParameters {
        fn default() -> Self {
            Self {
                cpb_cnt_minus1: Default::default(),
                bit_rate_scale: Default::default(),
                cpb_size_scale: Default::default(),
                reserved1: Default::default(),
                bit_rate_value_minus1: [Default::default(); _],
                cpb_size_value_minus1: [Default::default(); _],
                cbr_flag: [Default::default(); _],
                initial_cpb_removal_delay_length_minus1: Default::default(),
                cpb_removal_delay_length_minus1: Default::default(),
                dpb_output_delay_length_minus1: Default::default(),
                time_offset_length: Default::default(),
            }
        }
    }

    impl StdVideoH264HrdParameters {
        #[inline]
        pub fn cpb_cnt_minus1(mut self, cpb_cnt_minus1: u8) -> Self {
            self.cpb_cnt_minus1 = cpb_cnt_minus1;
            self
        }

        #[inline]
        pub fn bit_rate_scale(mut self, bit_rate_scale: u8) -> Self {
            self.bit_rate_scale = bit_rate_scale;
            self
        }

        #[inline]
        pub fn cpb_size_scale(mut self, cpb_size_scale: u8) -> Self {
            self.cpb_size_scale = cpb_size_scale;
            self
        }

        #[inline]
        pub fn reserved1(mut self, reserved1: u8) -> Self {
            self.reserved1 = reserved1;
            self
        }

        #[inline]
        pub fn bit_rate_value_minus1(
            mut self,
            bit_rate_value_minus1: [u32; STD_VIDEO_H264_CPB_CNT_LIST_SIZE as usize],
        ) -> Self {
            self.bit_rate_value_minus1 = bit_rate_value_minus1;
            self
        }

        #[inline]
        pub fn cpb_size_value_minus1(
            mut self,
            cpb_size_value_minus1: [u32; STD_VIDEO_H264_CPB_CNT_LIST_SIZE as usize],
        ) -> Self {
            self.cpb_size_value_minus1 = cpb_size_value_minus1;
            self
        }

        #[inline]
        pub fn cbr_flag(
            mut self,
            cbr_flag: [u8; STD_VIDEO_H264_CPB_CNT_LIST_SIZE as usize],
        ) -> Self {
            self.cbr_flag = cbr_flag;
            self
        }

        #[inline]
        pub fn initial_cpb_removal_delay_length_minus1(
            mut self,
            initial_cpb_removal_delay_length_minus1: u32,
        ) -> Self {
            self.initial_cpb_removal_delay_length_minus1 = initial_cpb_removal_delay_length_minus1;
            self
        }

        #[inline]
        pub fn cpb_removal_delay_length_minus1(
            mut self,
            cpb_removal_delay_length_minus1: u32,
        ) -> Self {
            self.cpb_removal_delay_length_minus1 = cpb_removal_delay_length_minus1;
            self
        }

        #[inline]
        pub fn dpb_output_delay_length_minus1(
            mut self,
            dpb_output_delay_length_minus1: u32,
        ) -> Self {
            self.dpb_output_delay_length_minus1 = dpb_output_delay_length_minus1;
            self
        }

        #[inline]
        pub fn time_offset_length(mut self, time_offset_length: u32) -> Self {
            self.time_offset_length = time_offset_length;
            self
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264SequenceParameterSetVui.html>
    #[repr(C)]
    #[derive(Copy, Clone)]
    #[must_use]
    pub struct StdVideoH264SequenceParameterSetVui<'a> {
        pub flags: StdVideoH264SpsVuiFlags,
        pub aspect_ratio_idc: StdVideoH264AspectRatioIdc,
        pub sar_width: u16,
        pub sar_height: u16,
        pub video_format: u8,
        pub colour_primaries: u8,
        pub transfer_characteristics: u8,
        pub matrix_coefficients: u8,
        pub num_units_in_tick: u32,
        pub time_scale: u32,
        pub max_num_reorder_frames: u8,
        pub max_dec_frame_buffering: u8,
        pub chroma_sample_loc_type_top_field: u8,
        pub chroma_sample_loc_type_bottom_field: u8,
        pub reserved1: u32,
        pub p_hrd_parameters: *const StdVideoH264HrdParameters,
        pub _marker: PhantomData<&'a ()>,
    }

    #[cfg(feature = "debug")]
    impl fmt::Debug for StdVideoH264SequenceParameterSetVui<'_> {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            f.debug_struct("StdVideoH264SequenceParameterSetVui")
                .field("flags", &self.flags)
                .field("aspect_ratio_idc", &self.aspect_ratio_idc)
                .field("sar_width", &self.sar_width)
                .field("sar_height", &self.sar_height)
                .field("video_format", &self.video_format)
                .field("colour_primaries", &self.colour_primaries)
                .field("transfer_characteristics", &self.transfer_characteristics)
                .field("matrix_coefficients", &self.matrix_coefficients)
                .field("num_units_in_tick", &self.num_units_in_tick)
                .field("time_scale", &self.time_scale)
                .field("max_num_reorder_frames", &self.max_num_reorder_frames)
                .field("max_dec_frame_buffering", &self.max_dec_frame_buffering)
                .field(
                    "chroma_sample_loc_type_top_field",
                    &self.chroma_sample_loc_type_top_field,
                )
                .field(
                    "chroma_sample_loc_type_bottom_field",
                    &self.chroma_sample_loc_type_bottom_field,
                )
                .field("reserved1", &self.reserved1)
                .field("p_hrd_parameters", &self.p_hrd_parameters)
                .finish()
        }
    }

    impl Default for StdVideoH264SequenceParameterSetVui<'_> {
        fn default() -> Self {
            Self {
                flags: Default::default(),
                aspect_ratio_idc: Default::default(),
                sar_width: Default::default(),
                sar_height: Default::default(),
                video_format: Default::default(),
                colour_primaries: Default::default(),
                transfer_characteristics: Default::default(),
                matrix_coefficients: Default::default(),
                num_units_in_tick: Default::default(),
                time_scale: Default::default(),
                max_num_reorder_frames: Default::default(),
                max_dec_frame_buffering: Default::default(),
                chroma_sample_loc_type_top_field: Default::default(),
                chroma_sample_loc_type_bottom_field: Default::default(),
                reserved1: Default::default(),
                p_hrd_parameters: ptr::null(),
                _marker: PhantomData,
            }
        }
    }

    impl<'a> StdVideoH264SequenceParameterSetVui<'a> {
        #[inline]
        pub fn flags(mut self, flags: StdVideoH264SpsVuiFlags) -> Self {
            self.flags = flags;
            self
        }

        #[inline]
        pub fn aspect_ratio_idc(mut self, aspect_ratio_idc: StdVideoH264AspectRatioIdc) -> Self {
            self.aspect_ratio_idc = aspect_ratio_idc;
            self
        }

        #[inline]
        pub fn sar_width(mut self, sar_width: u16) -> Self {
            self.sar_width = sar_width;
            self
        }

        #[inline]
        pub fn sar_height(mut self, sar_height: u16) -> Self {
            self.sar_height = sar_height;
            self
        }

        #[inline]
        pub fn video_format(mut self, video_format: u8) -> Self {
            self.video_format = video_format;
            self
        }

        #[inline]
        pub fn colour_primaries(mut self, colour_primaries: u8) -> Self {
            self.colour_primaries = colour_primaries;
            self
        }

        #[inline]
        pub fn transfer_characteristics(mut self, transfer_characteristics: u8) -> Self {
            self.transfer_characteristics = transfer_characteristics;
            self
        }

        #[inline]
        pub fn matrix_coefficients(mut self, matrix_coefficients: u8) -> Self {
            self.matrix_coefficients = matrix_coefficients;
            self
        }

        #[inline]
        pub fn num_units_in_tick(mut self, num_units_in_tick: u32) -> Self {
            self.num_units_in_tick = num_units_in_tick;
            self
        }

        #[inline]
        pub fn time_scale(mut self, time_scale: u32) -> Self {
            self.time_scale = time_scale;
            self
        }

        #[inline]
        pub fn max_num_reorder_frames(mut self, max_num_reorder_frames: u8) -> Self {
            self.max_num_reorder_frames = max_num_reorder_frames;
            self
        }

        #[inline]
        pub fn max_dec_frame_buffering(mut self, max_dec_frame_buffering: u8) -> Self {
            self.max_dec_frame_buffering = max_dec_frame_buffering;
            self
        }

        #[inline]
        pub fn chroma_sample_loc_type_top_field(
            mut self,
            chroma_sample_loc_type_top_field: u8,
        ) -> Self {
            self.chroma_sample_loc_type_top_field = chroma_sample_loc_type_top_field;
            self
        }

        #[inline]
        pub fn chroma_sample_loc_type_bottom_field(
            mut self,
            chroma_sample_loc_type_bottom_field: u8,
        ) -> Self {
            self.chroma_sample_loc_type_bottom_field = chroma_sample_loc_type_bottom_field;
            self
        }

        #[inline]
        pub fn reserved1(mut self, reserved1: u32) -> Self {
            self.reserved1 = reserved1;
            self
        }

        #[inline]
        pub fn hrd_parameters(mut self, hrd_parameters: &'a StdVideoH264HrdParameters) -> Self {
            self.p_hrd_parameters = hrd_parameters;
            self
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264SpsFlags.html>
    #[repr(C)]
    #[cfg_attr(feature = "debug", derive(Debug))]
    #[derive(Copy, Clone, Default)]
    #[must_use]
    pub struct StdVideoH264SpsFlags {
        pub _bitfield_0: u32,
    }

    impl StdVideoH264SpsFlags {
        #[inline]
        pub fn constraint_set0_flag(mut self, constraint_set0_flag: bool) -> Self {
            set_bitfield_bool::<0>(&mut self._bitfield_0, constraint_set0_flag);
            self
        }

        #[inline]
        pub fn constraint_set1_flag(mut self, constraint_set1_flag: bool) -> Self {
            set_bitfield_bool::<1>(&mut self._bitfield_0, constraint_set1_flag);
            self
        }

        #[inline]
        pub fn constraint_set2_flag(mut self, constraint_set2_flag: bool) -> Self {
            set_bitfield_bool::<2>(&mut self._bitfield_0, constraint_set2_flag);
            self
        }

        #[inline]
        pub fn constraint_set3_flag(mut self, constraint_set3_flag: bool) -> Self {
            set_bitfield_bool::<3>(&mut self._bitfield_0, constraint_set3_flag);
            self
        }

        #[inline]
        pub fn constraint_set4_flag(mut self, constraint_set4_flag: bool) -> Self {
            set_bitfield_bool::<4>(&mut self._bitfield_0, constraint_set4_flag);
            self
        }

        #[inline]
        pub fn constraint_set5_flag(mut self, constraint_set5_flag: bool) -> Self {
            set_bitfield_bool::<5>(&mut self._bitfield_0, constraint_set5_flag);
            self
        }

        #[inline]
        pub fn direct_8x8_inference_flag(mut self, direct_8x8_inference_flag: bool) -> Self {
            set_bitfield_bool::<6>(&mut self._bitfield_0, direct_8x8_inference_flag);
            self
        }

        #[inline]
        pub fn mb_adaptive_frame_field_flag(mut self, mb_adaptive_frame_field_flag: bool) -> Self {
            set_bitfield_bool::<7>(&mut self._bitfield_0, mb_adaptive_frame_field_flag);
            self
        }

        #[inline]
        pub fn frame_mbs_only_flag(mut self, frame_mbs_only_flag: bool) -> Self {
            set_bitfield_bool::<8>(&mut self._bitfield_0, frame_mbs_only_flag);
            self
        }

        #[inline]
        pub fn delta_pic_order_always_zero_flag(
            mut self,
            delta_pic_order_always_zero_flag: bool,
        ) -> Self {
            set_bitfield_bool::<9>(&mut self._bitfield_0, delta_pic_order_always_zero_flag);
            self
        }

        #[inline]
        pub fn separate_colour_plane_flag(mut self, separate_colour_plane_flag: bool) -> Self {
            set_bitfield_bool::<10>(&mut self._bitfield_0, separate_colour_plane_flag);
            self
        }

        #[inline]
        pub fn gaps_in_frame_num_value_allowed_flag(
            mut self,
            gaps_in_frame_num_value_allowed_flag: bool,
        ) -> Self {
            set_bitfield_bool::<11>(&mut self._bitfield_0, gaps_in_frame_num_value_allowed_flag);
            self
        }

        #[inline]
        pub fn qpprime_y_zero_transform_bypass_flag(
            mut self,
            qpprime_y_zero_transform_bypass_flag: bool,
        ) -> Self {
            set_bitfield_bool::<12>(&mut self._bitfield_0, qpprime_y_zero_transform_bypass_flag);
            self
        }

        #[inline]
        pub fn frame_cropping_flag(mut self, frame_cropping_flag: bool) -> Self {
            set_bitfield_bool::<13>(&mut self._bitfield_0, frame_cropping_flag);
            self
        }

        #[inline]
        pub fn seq_scaling_matrix_present_flag(
            mut self,
            seq_scaling_matrix_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<14>(&mut self._bitfield_0, seq_scaling_matrix_present_flag);
            self
        }

        #[inline]
        pub fn vui_parameters_present_flag(mut self, vui_parameters_present_flag: bool) -> Self {
            set_bitfield_bool::<15>(&mut self._bitfield_0, vui_parameters_present_flag);
            self
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264ScalingLists.html>
    #[repr(C)]
    #[cfg_attr(feature = "debug", derive(Debug))]
    #[derive(Copy, Clone)]
    #[must_use]
    pub struct StdVideoH264ScalingLists {
        pub scaling_list_present_mask: u16,
        pub use_default_scaling_matrix_mask: u16,
        pub scaling_list4x4: [[u8; STD_VIDEO_H264_SCALING_LIST_4X4_NUM_ELEMENTS as usize];
            STD_VIDEO_H264_SCALING_LIST_4X4_NUM_LISTS as usize],
        pub scaling_list8x8: [[u8; STD_VIDEO_H264_SCALING_LIST_8X8_NUM_ELEMENTS as usize];
            STD_VIDEO_H264_SCALING_LIST_8X8_NUM_LISTS as usize],
    }

    impl Default for StdVideoH264ScalingLists {
        fn default() -> Self {
            Self {
                scaling_list_present_mask: Default::default(),
                use_default_scaling_matrix_mask: Default::default(),
                scaling_list4x4: [[Default::default(); _]; _],
                scaling_list8x8: [[Default::default(); _]; _],
            }
        }
    }

    impl StdVideoH264ScalingLists {
        #[inline]
        pub fn scaling_list_present_mask(mut self, scaling_list_present_mask: u16) -> Self {
            self.scaling_list_present_mask = scaling_list_present_mask;
            self
        }

        #[inline]
        pub fn use_default_scaling_matrix_mask(
            mut self,
            use_default_scaling_matrix_mask: u16,
        ) -> Self {
            self.use_default_scaling_matrix_mask = use_default_scaling_matrix_mask;
            self
        }

        #[inline]
        pub fn scaling_list4x4(
            mut self,
            scaling_list4x4: [[u8; STD_VIDEO_H264_SCALING_LIST_4X4_NUM_ELEMENTS as usize];
                STD_VIDEO_H264_SCALING_LIST_4X4_NUM_LISTS as usize],
        ) -> Self {
            self.scaling_list4x4 = scaling_list4x4;
            self
        }

        #[inline]
        pub fn scaling_list8x8(
            mut self,
            scaling_list8x8: [[u8; STD_VIDEO_H264_SCALING_LIST_8X8_NUM_ELEMENTS as usize];
                STD_VIDEO_H264_SCALING_LIST_8X8_NUM_LISTS as usize],
        ) -> Self {
            self.scaling_list8x8 = scaling_list8x8;
            self
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264SequenceParameterSet.html>
    #[repr(C)]
    #[derive(Copy, Clone)]
    #[must_use]
    pub struct StdVideoH264SequenceParameterSet<'a> {
        pub flags: StdVideoH264SpsFlags,
        pub profile_idc: StdVideoH264ProfileIdc,
        pub level_idc: StdVideoH264LevelIdc,
        pub chroma_format_idc: StdVideoH264ChromaFormatIdc,
        pub seq_parameter_set_id: u8,
        pub bit_depth_luma_minus8: u8,
        pub bit_depth_chroma_minus8: u8,
        pub log2_max_frame_num_minus4: u8,
        pub pic_order_cnt_type: StdVideoH264PocType,
        pub offset_for_non_ref_pic: i32,
        pub offset_for_top_to_bottom_field: i32,
        pub log2_max_pic_order_cnt_lsb_minus4: u8,
        pub num_ref_frames_in_pic_order_cnt_cycle: u8,
        pub max_num_ref_frames: u8,
        pub reserved1: u8,
        pub pic_width_in_mbs_minus1: u32,
        pub pic_height_in_map_units_minus1: u32,
        pub frame_crop_left_offset: u32,
        pub frame_crop_right_offset: u32,
        pub frame_crop_top_offset: u32,
        pub frame_crop_bottom_offset: u32,
        pub reserved2: u32,
        pub p_offset_for_ref_frame: *const i32,
        pub p_scaling_lists: *const StdVideoH264ScalingLists,
        pub p_sequence_parameter_set_vui: *const StdVideoH264SequenceParameterSetVui<'a>,
        pub _marker: PhantomData<&'a ()>,
    }

    #[cfg(feature = "debug")]
    impl fmt::Debug for StdVideoH264SequenceParameterSet<'_> {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            f.debug_struct("StdVideoH264SequenceParameterSet")
                .field("flags", &self.flags)
                .field("profile_idc", &self.profile_idc)
                .field("level_idc", &self.level_idc)
                .field("chroma_format_idc", &self.chroma_format_idc)
                .field("seq_parameter_set_id", &self.seq_parameter_set_id)
                .field("bit_depth_luma_minus8", &self.bit_depth_luma_minus8)
                .field("bit_depth_chroma_minus8", &self.bit_depth_chroma_minus8)
                .field("log2_max_frame_num_minus4", &self.log2_max_frame_num_minus4)
                .field("pic_order_cnt_type", &self.pic_order_cnt_type)
                .field("offset_for_non_ref_pic", &self.offset_for_non_ref_pic)
                .field(
                    "offset_for_top_to_bottom_field",
                    &self.offset_for_top_to_bottom_field,
                )
                .field(
                    "log2_max_pic_order_cnt_lsb_minus4",
                    &self.log2_max_pic_order_cnt_lsb_minus4,
                )
                .field(
                    "num_ref_frames_in_pic_order_cnt_cycle",
                    &self.num_ref_frames_in_pic_order_cnt_cycle,
                )
                .field("max_num_ref_frames", &self.max_num_ref_frames)
                .field("reserved1", &self.reserved1)
                .field("pic_width_in_mbs_minus1", &self.pic_width_in_mbs_minus1)
                .field(
                    "pic_height_in_map_units_minus1",
                    &self.pic_height_in_map_units_minus1,
                )
                .field("frame_crop_left_offset", &self.frame_crop_left_offset)
                .field("frame_crop_right_offset", &self.frame_crop_right_offset)
                .field("frame_crop_top_offset", &self.frame_crop_top_offset)
                .field("frame_crop_bottom_offset", &self.frame_crop_bottom_offset)
                .field("reserved2", &self.reserved2)
                .field("p_offset_for_ref_frame", &self.p_offset_for_ref_frame)
                .field("p_scaling_lists", &self.p_scaling_lists)
                .field(
                    "p_sequence_parameter_set_vui",
                    &self.p_sequence_parameter_set_vui,
                )
                .finish()
        }
    }

    impl Default for StdVideoH264SequenceParameterSet<'_> {
        fn default() -> Self {
            Self {
                flags: Default::default(),
                profile_idc: Default::default(),
                level_idc: Default::default(),
                chroma_format_idc: Default::default(),
                seq_parameter_set_id: Default::default(),
                bit_depth_luma_minus8: Default::default(),
                bit_depth_chroma_minus8: Default::default(),
                log2_max_frame_num_minus4: Default::default(),
                pic_order_cnt_type: Default::default(),
                offset_for_non_ref_pic: Default::default(),
                offset_for_top_to_bottom_field: Default::default(),
                log2_max_pic_order_cnt_lsb_minus4: Default::default(),
                num_ref_frames_in_pic_order_cnt_cycle: Default::default(),
                max_num_ref_frames: Default::default(),
                reserved1: Default::default(),
                pic_width_in_mbs_minus1: Default::default(),
                pic_height_in_map_units_minus1: Default::default(),
                frame_crop_left_offset: Default::default(),
                frame_crop_right_offset: Default::default(),
                frame_crop_top_offset: Default::default(),
                frame_crop_bottom_offset: Default::default(),
                reserved2: Default::default(),
                p_offset_for_ref_frame: ptr::null(),
                p_scaling_lists: ptr::null(),
                p_sequence_parameter_set_vui: ptr::null(),
                _marker: PhantomData,
            }
        }
    }

    impl<'a> StdVideoH264SequenceParameterSet<'a> {
        #[inline]
        pub fn flags(mut self, flags: StdVideoH264SpsFlags) -> Self {
            self.flags = flags;
            self
        }

        #[inline]
        pub fn profile_idc(mut self, profile_idc: StdVideoH264ProfileIdc) -> Self {
            self.profile_idc = profile_idc;
            self
        }

        #[inline]
        pub fn level_idc(mut self, level_idc: StdVideoH264LevelIdc) -> Self {
            self.level_idc = level_idc;
            self
        }

        #[inline]
        pub fn chroma_format_idc(mut self, chroma_format_idc: StdVideoH264ChromaFormatIdc) -> Self {
            self.chroma_format_idc = chroma_format_idc;
            self
        }

        #[inline]
        pub fn seq_parameter_set_id(mut self, seq_parameter_set_id: u8) -> Self {
            self.seq_parameter_set_id = seq_parameter_set_id;
            self
        }

        #[inline]
        pub fn bit_depth_luma_minus8(mut self, bit_depth_luma_minus8: u8) -> Self {
            self.bit_depth_luma_minus8 = bit_depth_luma_minus8;
            self
        }

        #[inline]
        pub fn bit_depth_chroma_minus8(mut self, bit_depth_chroma_minus8: u8) -> Self {
            self.bit_depth_chroma_minus8 = bit_depth_chroma_minus8;
            self
        }

        #[inline]
        pub fn log2_max_frame_num_minus4(mut self, log2_max_frame_num_minus4: u8) -> Self {
            self.log2_max_frame_num_minus4 = log2_max_frame_num_minus4;
            self
        }

        #[inline]
        pub fn pic_order_cnt_type(mut self, pic_order_cnt_type: StdVideoH264PocType) -> Self {
            self.pic_order_cnt_type = pic_order_cnt_type;
            self
        }

        #[inline]
        pub fn offset_for_non_ref_pic(mut self, offset_for_non_ref_pic: i32) -> Self {
            self.offset_for_non_ref_pic = offset_for_non_ref_pic;
            self
        }

        #[inline]
        pub fn offset_for_top_to_bottom_field(
            mut self,
            offset_for_top_to_bottom_field: i32,
        ) -> Self {
            self.offset_for_top_to_bottom_field = offset_for_top_to_bottom_field;
            self
        }

        #[inline]
        pub fn log2_max_pic_order_cnt_lsb_minus4(
            mut self,
            log2_max_pic_order_cnt_lsb_minus4: u8,
        ) -> Self {
            self.log2_max_pic_order_cnt_lsb_minus4 = log2_max_pic_order_cnt_lsb_minus4;
            self
        }

        #[inline]
        pub fn offset_for_ref_frame(mut self, offset_for_ref_frame: &'a [i32]) -> Self {
            self.num_ref_frames_in_pic_order_cnt_cycle =
                offset_for_ref_frame.len().try_into().unwrap();
            self.p_offset_for_ref_frame = offset_for_ref_frame.as_ptr() as _;
            self
        }

        #[inline]
        pub fn max_num_ref_frames(mut self, max_num_ref_frames: u8) -> Self {
            self.max_num_ref_frames = max_num_ref_frames;
            self
        }

        #[inline]
        pub fn reserved1(mut self, reserved1: u8) -> Self {
            self.reserved1 = reserved1;
            self
        }

        #[inline]
        pub fn pic_width_in_mbs_minus1(mut self, pic_width_in_mbs_minus1: u32) -> Self {
            self.pic_width_in_mbs_minus1 = pic_width_in_mbs_minus1;
            self
        }

        #[inline]
        pub fn pic_height_in_map_units_minus1(
            mut self,
            pic_height_in_map_units_minus1: u32,
        ) -> Self {
            self.pic_height_in_map_units_minus1 = pic_height_in_map_units_minus1;
            self
        }

        #[inline]
        pub fn frame_crop_left_offset(mut self, frame_crop_left_offset: u32) -> Self {
            self.frame_crop_left_offset = frame_crop_left_offset;
            self
        }

        #[inline]
        pub fn frame_crop_right_offset(mut self, frame_crop_right_offset: u32) -> Self {
            self.frame_crop_right_offset = frame_crop_right_offset;
            self
        }

        #[inline]
        pub fn frame_crop_top_offset(mut self, frame_crop_top_offset: u32) -> Self {
            self.frame_crop_top_offset = frame_crop_top_offset;
            self
        }

        #[inline]
        pub fn frame_crop_bottom_offset(mut self, frame_crop_bottom_offset: u32) -> Self {
            self.frame_crop_bottom_offset = frame_crop_bottom_offset;
            self
        }

        #[inline]
        pub fn reserved2(mut self, reserved2: u32) -> Self {
            self.reserved2 = reserved2;
            self
        }

        #[inline]
        pub fn scaling_lists(mut self, scaling_lists: &'a StdVideoH264ScalingLists) -> Self {
            self.p_scaling_lists = scaling_lists;
            self
        }

        #[inline]
        pub fn sequence_parameter_set_vui(
            mut self,
            sequence_parameter_set_vui: &'a StdVideoH264SequenceParameterSetVui<'a>,
        ) -> Self {
            self.p_sequence_parameter_set_vui = sequence_parameter_set_vui;
            self
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264PpsFlags.html>
    #[repr(C)]
    #[cfg_attr(feature = "debug", derive(Debug))]
    #[derive(Copy, Clone, Default)]
    #[must_use]
    pub struct StdVideoH264PpsFlags {
        pub _bitfield_0: u32,
    }

    impl StdVideoH264PpsFlags {
        #[inline]
        pub fn transform_8x8_mode_flag(mut self, transform_8x8_mode_flag: bool) -> Self {
            set_bitfield_bool::<0>(&mut self._bitfield_0, transform_8x8_mode_flag);
            self
        }

        #[inline]
        pub fn redundant_pic_cnt_present_flag(
            mut self,
            redundant_pic_cnt_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<1>(&mut self._bitfield_0, redundant_pic_cnt_present_flag);
            self
        }

        #[inline]
        pub fn constrained_intra_pred_flag(mut self, constrained_intra_pred_flag: bool) -> Self {
            set_bitfield_bool::<2>(&mut self._bitfield_0, constrained_intra_pred_flag);
            self
        }

        #[inline]
        pub fn deblocking_filter_control_present_flag(
            mut self,
            deblocking_filter_control_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<3>(
                &mut self._bitfield_0,
                deblocking_filter_control_present_flag,
            );
            self
        }

        #[inline]
        pub fn weighted_pred_flag(mut self, weighted_pred_flag: bool) -> Self {
            set_bitfield_bool::<4>(&mut self._bitfield_0, weighted_pred_flag);
            self
        }

        #[inline]
        pub fn bottom_field_pic_order_in_frame_present_flag(
            mut self,
            bottom_field_pic_order_in_frame_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<5>(
                &mut self._bitfield_0,
                bottom_field_pic_order_in_frame_present_flag,
            );
            self
        }

        #[inline]
        pub fn entropy_coding_mode_flag(mut self, entropy_coding_mode_flag: bool) -> Self {
            set_bitfield_bool::<6>(&mut self._bitfield_0, entropy_coding_mode_flag);
            self
        }

        #[inline]
        pub fn pic_scaling_matrix_present_flag(
            mut self,
            pic_scaling_matrix_present_flag: bool,
        ) -> Self {
            set_bitfield_bool::<7>(&mut self._bitfield_0, pic_scaling_matrix_present_flag);
            self
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264PictureParameterSet.html>
    #[repr(C)]
    #[derive(Copy, Clone)]
    #[must_use]
    pub struct StdVideoH264PictureParameterSet<'a> {
        pub flags: StdVideoH264PpsFlags,
        pub seq_parameter_set_id: u8,
        pub pic_parameter_set_id: u8,
        pub num_ref_idx_l0_default_active_minus1: u8,
        pub num_ref_idx_l1_default_active_minus1: u8,
        pub weighted_bipred_idc: StdVideoH264WeightedBipredIdc,
        pub pic_init_qp_minus26: i8,
        pub pic_init_qs_minus26: i8,
        pub chroma_qp_index_offset: i8,
        pub second_chroma_qp_index_offset: i8,
        pub p_scaling_lists: *const StdVideoH264ScalingLists,
        pub _marker: PhantomData<&'a ()>,
    }

    #[cfg(feature = "debug")]
    impl fmt::Debug for StdVideoH264PictureParameterSet<'_> {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            f.debug_struct("StdVideoH264PictureParameterSet")
                .field("flags", &self.flags)
                .field("seq_parameter_set_id", &self.seq_parameter_set_id)
                .field("pic_parameter_set_id", &self.pic_parameter_set_id)
                .field(
                    "num_ref_idx_l0_default_active_minus1",
                    &self.num_ref_idx_l0_default_active_minus1,
                )
                .field(
                    "num_ref_idx_l1_default_active_minus1",
                    &self.num_ref_idx_l1_default_active_minus1,
                )
                .field("weighted_bipred_idc", &self.weighted_bipred_idc)
                .field("pic_init_qp_minus26", &self.pic_init_qp_minus26)
                .field("pic_init_qs_minus26", &self.pic_init_qs_minus26)
                .field("chroma_qp_index_offset", &self.chroma_qp_index_offset)
                .field(
                    "second_chroma_qp_index_offset",
                    &self.second_chroma_qp_index_offset,
                )
                .field("p_scaling_lists", &self.p_scaling_lists)
                .finish()
        }
    }

    impl Default for StdVideoH264PictureParameterSet<'_> {
        fn default() -> Self {
            Self {
                flags: Default::default(),
                seq_parameter_set_id: Default::default(),
                pic_parameter_set_id: Default::default(),
                num_ref_idx_l0_default_active_minus1: Default::default(),
                num_ref_idx_l1_default_active_minus1: Default::default(),
                weighted_bipred_idc: Default::default(),
                pic_init_qp_minus26: Default::default(),
                pic_init_qs_minus26: Default::default(),
                chroma_qp_index_offset: Default::default(),
                second_chroma_qp_index_offset: Default::default(),
                p_scaling_lists: ptr::null(),
                _marker: PhantomData,
            }
        }
    }

    impl<'a> StdVideoH264PictureParameterSet<'a> {
        #[inline]
        pub fn flags(mut self, flags: StdVideoH264PpsFlags) -> Self {
            self.flags = flags;
            self
        }

        #[inline]
        pub fn seq_parameter_set_id(mut self, seq_parameter_set_id: u8) -> Self {
            self.seq_parameter_set_id = seq_parameter_set_id;
            self
        }

        #[inline]
        pub fn pic_parameter_set_id(mut self, pic_parameter_set_id: u8) -> Self {
            self.pic_parameter_set_id = pic_parameter_set_id;
            self
        }

        #[inline]
        pub fn num_ref_idx_l0_default_active_minus1(
            mut self,
            num_ref_idx_l0_default_active_minus1: u8,
        ) -> Self {
            self.num_ref_idx_l0_default_active_minus1 = num_ref_idx_l0_default_active_minus1;
            self
        }

        #[inline]
        pub fn num_ref_idx_l1_default_active_minus1(
            mut self,
            num_ref_idx_l1_default_active_minus1: u8,
        ) -> Self {
            self.num_ref_idx_l1_default_active_minus1 = num_ref_idx_l1_default_active_minus1;
            self
        }

        #[inline]
        pub fn weighted_bipred_idc(
            mut self,
            weighted_bipred_idc: StdVideoH264WeightedBipredIdc,
        ) -> Self {
            self.weighted_bipred_idc = weighted_bipred_idc;
            self
        }

        #[inline]
        pub fn pic_init_qp_minus26(mut self, pic_init_qp_minus26: i8) -> Self {
            self.pic_init_qp_minus26 = pic_init_qp_minus26;
            self
        }

        #[inline]
        pub fn pic_init_qs_minus26(mut self, pic_init_qs_minus26: i8) -> Self {
            self.pic_init_qs_minus26 = pic_init_qs_minus26;
            self
        }

        #[inline]
        pub fn chroma_qp_index_offset(mut self, chroma_qp_index_offset: i8) -> Self {
            self.chroma_qp_index_offset = chroma_qp_index_offset;
            self
        }

        #[inline]
        pub fn second_chroma_qp_index_offset(mut self, second_chroma_qp_index_offset: i8) -> Self {
            self.second_chroma_qp_index_offset = second_chroma_qp_index_offset;
            self
        }

        #[inline]
        pub fn scaling_lists(mut self, scaling_lists: &'a StdVideoH264ScalingLists) -> Self {
            self.p_scaling_lists = scaling_lists;
            self
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264ChromaFormatIdc.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264ChromaFormatIdc(i32);

    impl StdVideoH264ChromaFormatIdc {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const MONOCHROME: Self = Self(0);
        pub const _420: Self = Self(1);
        pub const _422: Self = Self(2);
        pub const _444: Self = Self(3);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264ChromaFormatIdc {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::MONOCHROME => Some("MONOCHROME"),
                Self::_420 => Some("_420"),
                Self::_422 => Some("_422"),
                Self::_444 => Some("_444"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264ProfileIdc.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264ProfileIdc(i32);

    impl StdVideoH264ProfileIdc {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        /// Only constrained baseline is supported
        pub const BASELINE: Self = Self(66);
        pub const MAIN: Self = Self(77);
        pub const HIGH: Self = Self(100);
        /// Annex A.2.5 High 10 profile (profile_idc 100 or 110)
        pub const HIGH_10: Self = Self(110);
        /// Annex A.2.6 High 4:2:2 profile (profile_idc 100, 110, or 122)
        pub const HIGH_422: Self = Self(122);
        pub const HIGH_444_PREDICTIVE: Self = Self(244);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264ProfileIdc {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::BASELINE => Some("BASELINE"),
                Self::MAIN => Some("MAIN"),
                Self::HIGH => Some("HIGH"),
                Self::HIGH_10 => Some("HIGH_10"),
                Self::HIGH_422 => Some("HIGH_422"),
                Self::HIGH_444_PREDICTIVE => Some("HIGH_444_PREDICTIVE"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264LevelIdc.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264LevelIdc(i32);

    impl StdVideoH264LevelIdc {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const _1_0: Self = Self(0);
        pub const _1_1: Self = Self(1);
        pub const _1_2: Self = Self(2);
        pub const _1_3: Self = Self(3);
        pub const _2_0: Self = Self(4);
        pub const _2_1: Self = Self(5);
        pub const _2_2: Self = Self(6);
        pub const _3_0: Self = Self(7);
        pub const _3_1: Self = Self(8);
        pub const _3_2: Self = Self(9);
        pub const _4_0: Self = Self(10);
        pub const _4_1: Self = Self(11);
        pub const _4_2: Self = Self(12);
        pub const _5_0: Self = Self(13);
        pub const _5_1: Self = Self(14);
        pub const _5_2: Self = Self(15);
        pub const _6_0: Self = Self(16);
        pub const _6_1: Self = Self(17);
        pub const _6_2: Self = Self(18);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264LevelIdc {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::_1_0 => Some("_1_0"),
                Self::_1_1 => Some("_1_1"),
                Self::_1_2 => Some("_1_2"),
                Self::_1_3 => Some("_1_3"),
                Self::_2_0 => Some("_2_0"),
                Self::_2_1 => Some("_2_1"),
                Self::_2_2 => Some("_2_2"),
                Self::_3_0 => Some("_3_0"),
                Self::_3_1 => Some("_3_1"),
                Self::_3_2 => Some("_3_2"),
                Self::_4_0 => Some("_4_0"),
                Self::_4_1 => Some("_4_1"),
                Self::_4_2 => Some("_4_2"),
                Self::_5_0 => Some("_5_0"),
                Self::_5_1 => Some("_5_1"),
                Self::_5_2 => Some("_5_2"),
                Self::_6_0 => Some("_6_0"),
                Self::_6_1 => Some("_6_1"),
                Self::_6_2 => Some("_6_2"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264PocType.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264PocType(i32);

    impl StdVideoH264PocType {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const _0: Self = Self(0);
        pub const _1: Self = Self(1);
        pub const _2: Self = Self(2);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264PocType {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::_0 => Some("_0"),
                Self::_1 => Some("_1"),
                Self::_2 => Some("_2"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264AspectRatioIdc.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264AspectRatioIdc(i32);

    impl StdVideoH264AspectRatioIdc {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const UNSPECIFIED: Self = Self(0);
        pub const SQUARE: Self = Self(1);
        pub const _12_11: Self = Self(2);
        pub const _10_11: Self = Self(3);
        pub const _16_11: Self = Self(4);
        pub const _40_33: Self = Self(5);
        pub const _24_11: Self = Self(6);
        pub const _20_11: Self = Self(7);
        pub const _32_11: Self = Self(8);
        pub const _80_33: Self = Self(9);
        pub const _18_11: Self = Self(10);
        pub const _15_11: Self = Self(11);
        pub const _64_33: Self = Self(12);
        pub const _160_99: Self = Self(13);
        pub const _4_3: Self = Self(14);
        pub const _3_2: Self = Self(15);
        pub const _2_1: Self = Self(16);
        pub const EXTENDED_SAR: Self = Self(255);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264AspectRatioIdc {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::UNSPECIFIED => Some("UNSPECIFIED"),
                Self::SQUARE => Some("SQUARE"),
                Self::_12_11 => Some("_12_11"),
                Self::_10_11 => Some("_10_11"),
                Self::_16_11 => Some("_16_11"),
                Self::_40_33 => Some("_40_33"),
                Self::_24_11 => Some("_24_11"),
                Self::_20_11 => Some("_20_11"),
                Self::_32_11 => Some("_32_11"),
                Self::_80_33 => Some("_80_33"),
                Self::_18_11 => Some("_18_11"),
                Self::_15_11 => Some("_15_11"),
                Self::_64_33 => Some("_64_33"),
                Self::_160_99 => Some("_160_99"),
                Self::_4_3 => Some("_4_3"),
                Self::_3_2 => Some("_3_2"),
                Self::_2_1 => Some("_2_1"),
                Self::EXTENDED_SAR => Some("EXTENDED_SAR"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264WeightedBipredIdc.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264WeightedBipredIdc(i32);

    impl StdVideoH264WeightedBipredIdc {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const DEFAULT: Self = Self(0);
        pub const EXPLICIT: Self = Self(1);
        pub const IMPLICIT: Self = Self(2);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264WeightedBipredIdc {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::DEFAULT => Some("DEFAULT"),
                Self::EXPLICIT => Some("EXPLICIT"),
                Self::IMPLICIT => Some("IMPLICIT"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264ModificationOfPicNumsIdc.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264ModificationOfPicNumsIdc(i32);

    impl StdVideoH264ModificationOfPicNumsIdc {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const SHORT_TERM_SUBTRACT: Self = Self(0);
        pub const SHORT_TERM_ADD: Self = Self(1);
        pub const LONG_TERM: Self = Self(2);
        pub const END: Self = Self(3);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264ModificationOfPicNumsIdc {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::SHORT_TERM_SUBTRACT => Some("SHORT_TERM_SUBTRACT"),
                Self::SHORT_TERM_ADD => Some("SHORT_TERM_ADD"),
                Self::LONG_TERM => Some("LONG_TERM"),
                Self::END => Some("END"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264MemMgmtControlOp.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264MemMgmtControlOp(i32);

    impl StdVideoH264MemMgmtControlOp {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const END: Self = Self(0);
        pub const UNMARK_SHORT_TERM: Self = Self(1);
        pub const UNMARK_LONG_TERM: Self = Self(2);
        pub const MARK_LONG_TERM: Self = Self(3);
        pub const SET_MAX_LONG_TERM_INDEX: Self = Self(4);
        pub const UNMARK_ALL: Self = Self(5);
        pub const MARK_CURRENT_AS_LONG_TERM: Self = Self(6);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264MemMgmtControlOp {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::END => Some("END"),
                Self::UNMARK_SHORT_TERM => Some("UNMARK_SHORT_TERM"),
                Self::UNMARK_LONG_TERM => Some("UNMARK_LONG_TERM"),
                Self::MARK_LONG_TERM => Some("MARK_LONG_TERM"),
                Self::SET_MAX_LONG_TERM_INDEX => Some("SET_MAX_LONG_TERM_INDEX"),
                Self::UNMARK_ALL => Some("UNMARK_ALL"),
                Self::MARK_CURRENT_AS_LONG_TERM => Some("MARK_CURRENT_AS_LONG_TERM"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264CabacInitIdc.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264CabacInitIdc(i32);

    impl StdVideoH264CabacInitIdc {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const _0: Self = Self(0);
        pub const _1: Self = Self(1);
        pub const _2: Self = Self(2);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264CabacInitIdc {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::_0 => Some("_0"),
                Self::_1 => Some("_1"),
                Self::_2 => Some("_2"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264DisableDeblockingFilterIdc.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264DisableDeblockingFilterIdc(i32);

    impl StdVideoH264DisableDeblockingFilterIdc {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const DISABLED: Self = Self(0);
        pub const ENABLED: Self = Self(1);
        pub const PARTIAL: Self = Self(2);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264DisableDeblockingFilterIdc {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::DISABLED => Some("DISABLED"),
                Self::ENABLED => Some("ENABLED"),
                Self::PARTIAL => Some("PARTIAL"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264SliceType.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264SliceType(i32);

    impl StdVideoH264SliceType {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const P: Self = Self(0);
        pub const B: Self = Self(1);
        pub const I: Self = Self(2);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264SliceType {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::P => Some("P"),
                Self::B => Some("B"),
                Self::I => Some("I"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264PictureType.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264PictureType(i32);

    impl StdVideoH264PictureType {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const P: Self = Self(0);
        pub const B: Self = Self(1);
        pub const I: Self = Self(2);
        pub const IDR: Self = Self(5);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264PictureType {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::P => Some("P"),
                Self::B => Some("B"),
                Self::I => Some("I"),
                Self::IDR => Some("IDR"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }

    /// <https://registry.khronos.org/vulkan/specs/latest/man/html/StdVideoH264NonVclNaluType.html>
    #[repr(transparent)]
    #[derive(Copy, Clone, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct StdVideoH264NonVclNaluType(i32);

    impl StdVideoH264NonVclNaluType {
        #[inline]
        pub const fn from_raw(x: i32) -> Self {
            Self(x)
        }
        #[inline]
        pub const fn as_raw(self) -> i32 {
            self.0
        }

        pub const SPS: Self = Self(0);
        pub const PPS: Self = Self(1);
        pub const AUD: Self = Self(2);
        pub const PREFIX: Self = Self(3);
        pub const END_OF_SEQUENCE: Self = Self(4);
        pub const END_OF_STREAM: Self = Self(5);
        pub const PRECODED: Self = Self(6);
        pub const INVALID: Self = Self(0x7FFFFFFF);
    }

    impl fmt::Debug for StdVideoH264NonVclNaluType {
        fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
            let name = match *self {
                Self::SPS => Some("SPS"),
                Self::PPS => Some("PPS"),
                Self::AUD => Some("AUD"),
                Self::PREFIX => Some("PREFIX"),
                Self::END_OF_SEQUENCE => Some("END_OF_SEQUENCE"),
                Self::END_OF_STREAM => Some("END_OF_STREAM"),
                Self::PRECODED => Some("PRECODED"),
                Self::INVALID => Some("INVALID"),
                _ => None,
            };
            if let Some(name) = name {
                f.write_str(name)
            } else {
                self.0.fmt(f)
            }
        }
    }
}

#[cfg(feature = "ffi")]
pub(super) mod ffi {
    #![allow(non_camel_case_types)]
    use super::defs::*;

    pub type StdVideoH264SpsVuiFlags = super::defs::StdVideoH264SpsVuiFlags;
    pub type StdVideoH264HrdParameters = super::defs::StdVideoH264HrdParameters;
    pub type StdVideoH264SequenceParameterSetVui =
        super::defs::StdVideoH264SequenceParameterSetVui<'static>;
    pub type StdVideoH264SpsFlags = super::defs::StdVideoH264SpsFlags;
    pub type StdVideoH264ScalingLists = super::defs::StdVideoH264ScalingLists;
    pub type StdVideoH264SequenceParameterSet =
        super::defs::StdVideoH264SequenceParameterSet<'static>;
    pub type StdVideoH264PpsFlags = super::defs::StdVideoH264PpsFlags;
    pub type StdVideoH264PictureParameterSet =
        super::defs::StdVideoH264PictureParameterSet<'static>;
    pub type StdVideoH264ChromaFormatIdc = super::defs::StdVideoH264ChromaFormatIdc;
    pub type StdVideoH264ProfileIdc = super::defs::StdVideoH264ProfileIdc;
    pub type StdVideoH264LevelIdc = super::defs::StdVideoH264LevelIdc;
    pub type StdVideoH264PocType = super::defs::StdVideoH264PocType;
    pub type StdVideoH264AspectRatioIdc = super::defs::StdVideoH264AspectRatioIdc;
    pub type StdVideoH264WeightedBipredIdc = super::defs::StdVideoH264WeightedBipredIdc;
    pub type StdVideoH264ModificationOfPicNumsIdc =
        super::defs::StdVideoH264ModificationOfPicNumsIdc;
    pub type StdVideoH264MemMgmtControlOp = super::defs::StdVideoH264MemMgmtControlOp;
    pub type StdVideoH264CabacInitIdc = super::defs::StdVideoH264CabacInitIdc;
    pub type StdVideoH264DisableDeblockingFilterIdc =
        super::defs::StdVideoH264DisableDeblockingFilterIdc;
    pub type StdVideoH264SliceType = super::defs::StdVideoH264SliceType;
    pub type StdVideoH264PictureType = super::defs::StdVideoH264PictureType;
    pub type StdVideoH264NonVclNaluType = super::defs::StdVideoH264NonVclNaluType;
    impl super::defs::StdVideoH264SequenceParameterSetVui<'_> {
        #[inline]
        pub unsafe fn drop_lifetime_for_ffi(&self) -> &StdVideoH264SequenceParameterSetVui {
            unsafe { core::mem::transmute(self) }
        }
    }
    impl super::defs::StdVideoH264SequenceParameterSet<'_> {
        #[inline]
        pub unsafe fn drop_lifetime_for_ffi(&self) -> &StdVideoH264SequenceParameterSet {
            unsafe { core::mem::transmute(self) }
        }
    }
    impl super::defs::StdVideoH264PictureParameterSet<'_> {
        #[inline]
        pub unsafe fn drop_lifetime_for_ffi(&self) -> &StdVideoH264PictureParameterSet {
            unsafe { core::mem::transmute(self) }
        }
    }
}