Class: BMFF::Box::SampleEntry
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Direct Known Subclasses
AudioSampleEntry, HintSampleEntry, MetaDataSampleEntry, VisualSampleEntry
Instance Attribute Summary collapse
-
#data_reference_index ⇒ Object
Returns the value of attribute data_reference_index.
-
#reserved1 ⇒ Object
Returns the value of attribute reserved1.
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
#data_reference_index ⇒ Object
Returns the value of attribute data_reference_index.
5 6 7 |
# File 'lib/bmff/box/sample_entry.rb', line 5 def data_reference_index @data_reference_index end |
#reserved1 ⇒ Object
Returns the value of attribute reserved1.
5 6 7 |
# File 'lib/bmff/box/sample_entry.rb', line 5 def reserved1 @reserved1 end |
Instance Method Details
#parse_data ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/bmff/box/sample_entry.rb', line 7 def parse_data super @reserved1 = [] 6.times do @reserved1 << io.get_uint8 end @data_reference_index = io.get_uint16 end |