Class: BMFF::Box::SampleToChunk
- Defined in:
- lib/bmff/box/sample_to_chunk.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.
-
#first_chunk ⇒ Object
Returns the value of attribute first_chunk.
-
#sample_description_index ⇒ Object
Returns the value of attribute sample_description_index.
-
#samples_per_chunk ⇒ Object
Returns the value of attribute samples_per_chunk.
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, register_uuid_box, #remaining_size, #root, #seek_to_end
Instance Attribute Details
#entry_count ⇒ Object
Returns the value of attribute entry_count.
5 6 7 |
# File 'lib/bmff/box/sample_to_chunk.rb', line 5 def entry_count @entry_count end |
#first_chunk ⇒ Object
Returns the value of attribute first_chunk.
5 6 7 |
# File 'lib/bmff/box/sample_to_chunk.rb', line 5 def first_chunk @first_chunk end |
#sample_description_index ⇒ Object
Returns the value of attribute sample_description_index.
5 6 7 |
# File 'lib/bmff/box/sample_to_chunk.rb', line 5 def sample_description_index @sample_description_index end |
#samples_per_chunk ⇒ Object
Returns the value of attribute samples_per_chunk.
5 6 7 |
# File 'lib/bmff/box/sample_to_chunk.rb', line 5 def samples_per_chunk @samples_per_chunk end |
Instance Method Details
#parse_data ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/bmff/box/sample_to_chunk.rb', line 8 def parse_data super @entry_count = io.get_uint32 @first_chunk = [] @samples_per_chunk = [] @sample_description_index = [] @entry_count.times do @first_chunk << io.get_uint32 @samples_per_chunk << io.get_uint32 @sample_description_index << io.get_uint32 end end |