bit_field type fix

This commit is contained in:
Reio Piller
2025-02-26 23:19:53 +02:00
parent 5a0a8e9026
commit 942f990e50
2 changed files with 9 additions and 9 deletions

View File

@@ -647,8 +647,8 @@ def parse_structs(f):
if not bitfield:
bitfield = Bitfield(field_type)
# Add the field to the bitfield
bitfield.add_field(bf_field[1], 'bool' if bitsize == 1 else field_type, bitsize)
# Add the field to the bitfield
bitfield.add_field(bf_field[1], field_type, bitsize)
continue
# Close the bitfield because this is not a field

View File

@@ -10013,13 +10013,13 @@ VideoH265SubLayerHrdParameters :: struct {
}
VideoH265HrdFlags :: bit_field u32 {
nal_hrd_parameters_present_flag: bool | 1,
vcl_hrd_parameters_present_flag: bool | 1,
sub_pic_hrd_params_present_flag: bool | 1,
sub_pic_cpb_params_in_pic_timing_sei_flag: bool | 1,
fixed_pic_rate_general_flag: u32 | 8,
fixed_pic_rate_within_cvs_flag: u32 | 8,
low_delay_hrd_flag: u32 | 8,
nal_hrd_parameters_present_flag: u32 | 1,
vcl_hrd_parameters_present_flag: u32 | 1,
sub_pic_hrd_params_present_flag: u32 | 1,
sub_pic_cpb_params_in_pic_timing_sei_flag: u32 | 1,
fixed_pic_rate_general_flag: u32 | 8,
fixed_pic_rate_within_cvs_flag: u32 | 8,
low_delay_hrd_flag: u32 | 8,
}
VideoH265HrdParameters :: struct {