Class: BMFF::Box::BitRate
Overview
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Instance Attribute Summary collapse
-
#avg_bitrate ⇒ Object
Returns the value of attribute avg_bitrate.
-
#buffer_size_db ⇒ Object
Returns the value of attribute buffer_size_db.
-
#max_bitrate ⇒ Object
Returns the value of attribute max_bitrate.
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, #remaining_size, #seek_to_end
Instance Attribute Details
#avg_bitrate ⇒ Object
Returns the value of attribute avg_bitrate.
5 6 7 |
# File 'lib/bmff/box/bit_rate.rb', line 5 def avg_bitrate @avg_bitrate end |
#buffer_size_db ⇒ Object
Returns the value of attribute buffer_size_db.
5 6 7 |
# File 'lib/bmff/box/bit_rate.rb', line 5 def buffer_size_db @buffer_size_db end |
#max_bitrate ⇒ Object
Returns the value of attribute max_bitrate.
5 6 7 |
# File 'lib/bmff/box/bit_rate.rb', line 5 def max_bitrate @max_bitrate end |
Instance Method Details
#parse_data ⇒ Object
8 9 10 11 12 13 |
# File 'lib/bmff/box/bit_rate.rb', line 8 def parse_data super @buffer_size_db = io.get_uint32 @max_bitrate = io.get_uint32 @avg_bitrate = io.get_uint32 end |