class M2TSParser::TableSelector::AbstractSection

Public Class Methods

TableMapping(table_id) click to toggle source

ARIB STD-B10 第2部 表5-2 「テーブルID の割当および送出の基準」による定義

# File lib/m2ts_parser/table.rb, line 104
def self.TableMapping(table_id)
  case table_id
  when 0x4e, 0x4f, 0x50..0x5f, 0x60..0x6f
    EventInformationSection
  else
    UndefinedSection
  end
end
new(binary, parent_scope=nil) click to toggle source
# File lib/m2ts_parser/table.rb, line 113
def self.new(binary, parent_scope=nil)
  table_id = binary.sub(:byte_length => 1).to_i
  return TableMapping(table_id).new(binary)
end