Class: BMFF::Box::ProtectionSchemeInfo

Inherits:
Base
  • Object
show all
Includes:
Container
Defined in:
lib/bmff/box/protection_scheme_info.rb

Overview

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

Instance Attribute Summary collapse

Attributes included from Container

#children

Attributes inherited from Base

#io, #largesize, #offset, #parent, #size, #type, #usertype

Instance Method Summary collapse

Methods included from Container

#add_child, #container?, #find, #find_all, #parse_children, #select_descendants

Methods inherited from Base

#actual_size, #container?, #eob?, #parse, register_box, register_uuid_box, #remaining_size, #root, #seek_to_end

Instance Attribute Details

#infoObject

Returns the value of attribute info.



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

def info
  @info
end

#original_formatObject

Returns the value of attribute original_format.



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

def original_format
  @original_format
end

#scheme_type_boxObject

Returns the value of attribute scheme_type_box.



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

def scheme_type_box
  @scheme_type_box
end

Instance Method Details

#parse_dataObject



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

def parse_data
  super
  @original_format = BMFF::Box.get_box(io, self)
  add_child(@original_format)
  unless eob?
    @scheme_type_box = BMFF::Box.get_box(io, self)
    add_child(@scheme_type_box)
    unless eob?
      @info = BMFF::Box.get_box(io, self)
      add_child(@info)
    end
  end
end