Class: BMFF::Box::TextMetaDataSampleEntry
- Inherits:
-
MetaDataSampleEntry
- Object
- Base
- SampleEntry
- MetaDataSampleEntry
- BMFF::Box::TextMetaDataSampleEntry
- 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
-
#bit_rate_box ⇒ Object
Returns the value of attribute bit_rate_box.
-
#content_encoding ⇒ Object
Returns the value of attribute content_encoding.
-
#mime_format ⇒ Object
Returns the value of attribute mime_format.
Attributes included from Container
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, #remaining_size, #seek_to_end
Instance Attribute Details
#bit_rate_box ⇒ Object
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_encoding ⇒ Object
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_format ⇒ Object
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_data ⇒ Object
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 |