Class: BMFF::Box::FileType

Inherits:
Base
  • Object
show all
Defined in:
lib/bmff/box/file_type.rb

Overview

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

Instance Attribute Summary collapse

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

#compatible_brandsObject

Returns the value of attribute compatible_brands.



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

def compatible_brands
  @compatible_brands
end

#major_brandObject

Returns the value of attribute major_brand.



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

def major_brand
  @major_brand
end

#minor_versionObject

Returns the value of attribute minor_version.



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

def minor_version
  @minor_version
end

Instance Method Details

#parse_dataObject



8
9
10
11
12
13
14
15
16
# File 'lib/bmff/box/file_type.rb', line 8

def parse_data
  super
  @major_brand = io.get_ascii(4)
  @minor_version = io.get_uint32
  @compatible_brands = []
  until eob?
    @compatible_brands << io.get_ascii(4)
  end
end