Class: BMFF::Box::SampleAuxiliaryInformationOffsets

Inherits:
Full
  • Object
show all
Defined in:
lib/bmff/box/sample_auxiliary_information_offsets.rb

Overview

vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:

Instance Attribute Summary collapse

Attributes inherited from Full

#flags, #version

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

#aux_info_typeObject

Returns the value of attribute aux_info_type.



5
6
7
# File 'lib/bmff/box/sample_auxiliary_information_offsets.rb', line 5

def aux_info_type
  @aux_info_type
end

#aux_info_type_parameterObject

Returns the value of attribute aux_info_type_parameter.



5
6
7
# File 'lib/bmff/box/sample_auxiliary_information_offsets.rb', line 5

def aux_info_type_parameter
  @aux_info_type_parameter
end

#entry_countObject

Returns the value of attribute entry_count.



5
6
7
# File 'lib/bmff/box/sample_auxiliary_information_offsets.rb', line 5

def entry_count
  @entry_count
end

#offsetsObject

Returns the value of attribute offsets.



5
6
7
# File 'lib/bmff/box/sample_auxiliary_information_offsets.rb', line 5

def offsets
  @offsets
end

Instance Method Details

#parse_dataObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/bmff/box/sample_auxiliary_information_offsets.rb', line 8

def parse_data
  super
  if flags & 1 > 0
    @aux_info_type = io.get_uint32
    @aux_info_type_parameter = io.get_uint32
  end
  @entry_count = io.get_uint32
  @offsets = []
  @entry_count.times do
    if version == 0
      @offsets << io.get_uint32
    else
      @offsets << io.get_uint64
    end
  end
end