Class: BMFF::Box::TextMetaDataSampleEntry

Inherits:
MetaDataSampleEntry show all
Includes:
Container
Defined in:
lib/bmff/box/text_meta_data_sample_entry.rb

Overview

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

Instance Attribute Summary collapse

Attributes included from Container

#children

Attributes inherited from SampleEntry

#data_reference_index, #reserved1

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

#bit_rate_boxObject

Returns the value of attribute bit_rate_box.



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

def bit_rate_box
  @bit_rate_box
end

#content_encodingObject

Returns the value of attribute content_encoding.



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

def content_encoding
  @content_encoding
end

#mime_formatObject

Returns the value of attribute mime_format.



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

def mime_format
  @mime_format
end

Instance Method Details

#parse_dataObject



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

def parse_data
  super
  @content_encoding = io.get_null_terminated_string unless eob?
  @mime_format = io.get_null_terminated_string unless eob?
  unless eob?
    @bit_rate_box = BMFF::Box.get_box(io, self, BMFF::Box::BitRate)
    add_child @bit_rate_box
  end
end