Class: BMFF::Box::SubSampleInformation
- Defined in:
- lib/bmff/box/sub_sample_information.rb
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Defined Under Namespace
Classes: SubSample
Instance Attribute Summary collapse
-
#entry_count ⇒ Object
Returns the value of attribute entry_count.
-
#sample_delta ⇒ Object
Returns the value of attribute sample_delta.
-
#subsample_count ⇒ Object
Returns the value of attribute subsample_count.
-
#subsamples ⇒ Object
Returns the value of attribute subsamples.
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/sub_sample_information.rb', line 5 def entry_count @entry_count end |
#sample_delta ⇒ Object
Returns the value of attribute sample_delta.
5 6 7 |
# File 'lib/bmff/box/sub_sample_information.rb', line 5 def sample_delta @sample_delta end |
#subsample_count ⇒ Object
Returns the value of attribute subsample_count.
5 6 7 |
# File 'lib/bmff/box/sub_sample_information.rb', line 5 def subsample_count @subsample_count end |
#subsamples ⇒ Object
Returns the value of attribute subsamples.
5 6 7 |
# File 'lib/bmff/box/sub_sample_information.rb', line 5 def subsamples @subsamples end |
Instance Method Details
#parse_data ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/bmff/box/sub_sample_information.rb', line 18 def parse_data super @entry_count = io.get_uint32 @sample_delta = [] @subsample_count = [] @subsamples = [] @entry_count.times do @sample_delta << io.get_uint32 @subsample_count << io.get_uint16 subsample = SubSample.new @subsample_count.last.times do if version == 1 subsample.subsample_size << io.get_uint32 else subsample.subsample_size << io.get_uint16 end subsample.subsample_priority << io.get_uint8 subsample.discardable << io.get_uint8 subsample.reserved1 << io.get_uint32 end @subsamples << subsample end end |