Class: BMFF::Box::BitRate

Inherits:
Base
  • Object
show all
Defined in:
lib/bmff/box/bit_rate.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

#avg_bitrateObject

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_dbObject

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_bitrateObject

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_dataObject



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