Class: BMFF::Box::CompositionOffset
- Defined in:
- lib/bmff/box/composition_offset.rb
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.
-
#sample_count ⇒ Object
Returns the value of attribute sample_count.
-
#sample_offset ⇒ Object
Returns the value of attribute sample_offset.
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/composition_offset.rb', line 5 def entry_count @entry_count end |
#sample_count ⇒ Object
Returns the value of attribute sample_count.
5 6 7 |
# File 'lib/bmff/box/composition_offset.rb', line 5 def sample_count @sample_count end |
#sample_offset ⇒ Object
Returns the value of attribute sample_offset.
5 6 7 |
# File 'lib/bmff/box/composition_offset.rb', line 5 def sample_offset @sample_offset end |
Instance Method Details
#parse_data ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/bmff/box/composition_offset.rb', line 8 def parse_data super @entry_count = io.get_uint32 @sample_count = [] @sample_offset = [] if version == 0 @entry_count.times do @sample_count << io.get_uint32 @sample_offset << io.get_uint32 end elsif version == 1 @entry_count.times do @sample_count << io.get_uint32 @sample_offset << io.get_int32 end end end |