Class: BMFF::Box::SampleAuxiliaryInformationSizes
- Defined in:
- lib/bmff/box/sample_auxiliary_information_sizes.rb
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Instance Attribute Summary collapse
-
#aux_info_type ⇒ Object
Returns the value of attribute aux_info_type.
-
#aux_info_type_parameter ⇒ Object
Returns the value of attribute aux_info_type_parameter.
-
#default_sample_info_size ⇒ Object
Returns the value of attribute default_sample_info_size.
-
#sample_count ⇒ Object
Returns the value of attribute sample_count.
-
#sample_info_size ⇒ Object
Returns the value of attribute sample_info_size.
Attributes inherited from Full
Attributes inherited from Base
#io, #largesize, #offset, #parent, #size, #type, #usertype
Instance Method Summary collapse
Methods inherited from Base
#actual_size, #container?, #eob?, #parse, register_box, #remaining_size, #seek_to_end
Instance Attribute Details
#aux_info_type ⇒ Object
Returns the value of attribute aux_info_type.
5 6 7 |
# File 'lib/bmff/box/sample_auxiliary_information_sizes.rb', line 5 def aux_info_type @aux_info_type end |
#aux_info_type_parameter ⇒ Object
Returns the value of attribute aux_info_type_parameter.
5 6 7 |
# File 'lib/bmff/box/sample_auxiliary_information_sizes.rb', line 5 def aux_info_type_parameter @aux_info_type_parameter end |
#default_sample_info_size ⇒ Object
Returns the value of attribute default_sample_info_size.
5 6 7 |
# File 'lib/bmff/box/sample_auxiliary_information_sizes.rb', line 5 def default_sample_info_size @default_sample_info_size end |
#sample_count ⇒ Object
Returns the value of attribute sample_count.
5 6 7 |
# File 'lib/bmff/box/sample_auxiliary_information_sizes.rb', line 5 def sample_count @sample_count end |
#sample_info_size ⇒ Object
Returns the value of attribute sample_info_size.
5 6 7 |
# File 'lib/bmff/box/sample_auxiliary_information_sizes.rb', line 5 def sample_info_size @sample_info_size end |
Instance Method Details
#parse_data ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/bmff/box/sample_auxiliary_information_sizes.rb', line 8 def parse_data super if flags & 1 > 0 @aux_info_type = io.get_uint32 @aux_info_type_parameter = io.get_uint32 end @default_sample_info_size = io.get_uint8 @sample_count = io.get_uint32 if @default_sample_info_size == 0 @sample_info_size = [] @sample_count.times do @sample_info_size << io.get_uint8 end end end |