Module: M2TSParser::Descriptor

Defined in:
lib/m2ts_parser/descriptor.rb

Overview

記述子セレクター

Constant Summary collapse

DescriptorMapping =

ARIB STD-B10 第1部 表5-3 「記述子タグ値の割当」による定義

{
  0x46 => BouquetNameDescriptor,
  0x49 => CountryAvailabilityDescriptor,
  0x4d => ShortEventDescriptor,
  0x4e => ExtendedEventDescriptor,
  0x50 => ComponentDescriptor,
  0x53 => CAIdentifierDescriptor,
  0x54 => ContentDescriptor,
}

Class Method Summary collapse

Class Method Details

.new(binary, parent_scope = nil) ⇒ Object



359
360
361
362
# File 'lib/m2ts_parser/descriptor.rb', line 359

def self.new(binary, parent_scope=nil)
  descriptor_tag = binary.sub(:byte_length => 1).to_i
  return DescriptorMapping[descriptor_tag].new(binary)
end