Class: BMFF::Box::TrackFragmentHeader
- Defined in:
- lib/bmff/box/track_fragment_header.rb
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Instance Attribute Summary collapse
-
#base_data_offset ⇒ Object
Returns the value of attribute base_data_offset.
-
#default_sample_duration ⇒ Object
Returns the value of attribute default_sample_duration.
-
#default_sample_flags ⇒ Object
Returns the value of attribute default_sample_flags.
-
#default_sample_size ⇒ Object
Returns the value of attribute default_sample_size.
-
#sample_description_index ⇒ Object
Returns the value of attribute sample_description_index.
-
#track_id ⇒ Object
Returns the value of attribute track_id.
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
#base_data_offset ⇒ Object
Returns the value of attribute base_data_offset.
5 6 7 |
# File 'lib/bmff/box/track_fragment_header.rb', line 5 def base_data_offset @base_data_offset end |
#default_sample_duration ⇒ Object
Returns the value of attribute default_sample_duration.
5 6 7 |
# File 'lib/bmff/box/track_fragment_header.rb', line 5 def default_sample_duration @default_sample_duration end |
#default_sample_flags ⇒ Object
Returns the value of attribute default_sample_flags.
5 6 7 |
# File 'lib/bmff/box/track_fragment_header.rb', line 5 def default_sample_flags @default_sample_flags end |
#default_sample_size ⇒ Object
Returns the value of attribute default_sample_size.
5 6 7 |
# File 'lib/bmff/box/track_fragment_header.rb', line 5 def default_sample_size @default_sample_size end |
#sample_description_index ⇒ Object
Returns the value of attribute sample_description_index.
5 6 7 |
# File 'lib/bmff/box/track_fragment_header.rb', line 5 def sample_description_index @sample_description_index end |
#track_id ⇒ Object
Returns the value of attribute track_id.
5 6 7 |
# File 'lib/bmff/box/track_fragment_header.rb', line 5 def track_id @track_id end |
Instance Method Details
#parse_data ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/bmff/box/track_fragment_header.rb', line 9 def parse_data super @track_id = io.get_uint32 @base_data_offset = io.get_uint64 if flags & 0x01 > 0 @sample_description_index = io.get_uint32 if flags & 0x02 > 0 @default_sample_duration = io.get_uint32 if flags & 0x08 > 0 @default_sample_size = io.get_uint32 if flags & 0x10 > 0 @default_sample_flags = io.get_uint32 if flags & 0x20 > 0 end |