Class: BMFF::Box::DegradationPriority
- Defined in:
- lib/bmff/box/degradation_priority.rb
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Instance Attribute Summary collapse
-
#priority ⇒ Object
Returns the value of attribute priority.
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
#priority ⇒ Object
Returns the value of attribute priority.
5 6 7 |
# File 'lib/bmff/box/degradation_priority.rb', line 5 def priority @priority end |
Instance Method Details
#parse_data ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/bmff/box/degradation_priority.rb', line 8 def parse_data super sample_size_box = parent.find(BMFF::Box::SampleSize) if sample_size_box sample_count = sample_size_box.sample_count @priority = [] sample_count.times do @priority << io.get_uint16 end end end |