Class: BMFF::Box::EditList
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Instance Attribute Summary collapse
-
#entry_count ⇒ Object
Returns the value of attribute entry_count.
-
#media_rate_fraction ⇒ Object
Returns the value of attribute media_rate_fraction.
-
#media_rate_integer ⇒ Object
Returns the value of attribute media_rate_integer.
-
#media_time ⇒ Object
Returns the value of attribute media_time.
-
#segment_duration ⇒ Object
Returns the value of attribute segment_duration.
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
#entry_count ⇒ Object
Returns the value of attribute entry_count.
5 6 7 |
# File 'lib/bmff/box/edit_list.rb', line 5 def entry_count @entry_count end |
#media_rate_fraction ⇒ Object
Returns the value of attribute media_rate_fraction.
5 6 7 |
# File 'lib/bmff/box/edit_list.rb', line 5 def media_rate_fraction @media_rate_fraction end |
#media_rate_integer ⇒ Object
Returns the value of attribute media_rate_integer.
5 6 7 |
# File 'lib/bmff/box/edit_list.rb', line 5 def media_rate_integer @media_rate_integer end |
#media_time ⇒ Object
Returns the value of attribute media_time.
5 6 7 |
# File 'lib/bmff/box/edit_list.rb', line 5 def media_time @media_time end |
#segment_duration ⇒ Object
Returns the value of attribute segment_duration.
5 6 7 |
# File 'lib/bmff/box/edit_list.rb', line 5 def segment_duration @segment_duration end |
Instance Method Details
#parse_data ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/bmff/box/edit_list.rb', line 8 def parse_data super @entry_count = io.get_uint32 @segment_duration = [] @media_time = [] @media_rate_integer = [] @media_rate_fraction = [] @entry_count.times do if version == 1 @segment_duration << io.get_uint64 @media_time << io.get_int64 else @segment_duration << io.get_uint32 @media_time << io.get_int32 end @media_rate_integer << io.get_int16 @media_rate_fraction << io.get_int16 end end |