mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
bit_field type fix
This commit is contained in:
+2
-2
@@ -647,8 +647,8 @@ def parse_structs(f):
|
|||||||
if not bitfield:
|
if not bitfield:
|
||||||
bitfield = Bitfield(field_type)
|
bitfield = Bitfield(field_type)
|
||||||
|
|
||||||
# Add the field to the bitfield
|
# Add the field to the bitfield
|
||||||
bitfield.add_field(bf_field[1], 'bool' if bitsize == 1 else field_type, bitsize)
|
bitfield.add_field(bf_field[1], field_type, bitsize)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Close the bitfield because this is not a field
|
# Close the bitfield because this is not a field
|
||||||
|
|||||||
Vendored
+7
-7
@@ -10013,13 +10013,13 @@ VideoH265SubLayerHrdParameters :: struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
VideoH265HrdFlags :: bit_field u32 {
|
VideoH265HrdFlags :: bit_field u32 {
|
||||||
nal_hrd_parameters_present_flag: bool | 1,
|
nal_hrd_parameters_present_flag: u32 | 1,
|
||||||
vcl_hrd_parameters_present_flag: bool | 1,
|
vcl_hrd_parameters_present_flag: u32 | 1,
|
||||||
sub_pic_hrd_params_present_flag: bool | 1,
|
sub_pic_hrd_params_present_flag: u32 | 1,
|
||||||
sub_pic_cpb_params_in_pic_timing_sei_flag: bool | 1,
|
sub_pic_cpb_params_in_pic_timing_sei_flag: u32 | 1,
|
||||||
fixed_pic_rate_general_flag: u32 | 8,
|
fixed_pic_rate_general_flag: u32 | 8,
|
||||||
fixed_pic_rate_within_cvs_flag: u32 | 8,
|
fixed_pic_rate_within_cvs_flag: u32 | 8,
|
||||||
low_delay_hrd_flag: u32 | 8,
|
low_delay_hrd_flag: u32 | 8,
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoH265HrdParameters :: struct {
|
VideoH265HrdParameters :: struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user