Class: M2TSParser::ContentDescriptor::ContentNibble

Inherits:
BinaryParser::TemplateBase
  • Object
show all
Defined in:
lib/m2ts_parser/descriptor.rb

Instance Method Summary collapse

Instance Method Details

#content_descriptionObject



164
165
166
# File 'lib/m2ts_parser/descriptor.rb', line 164

def content_description
  "#{genre1} - #{genre2}"
end

#genre1Object



156
157
158
# File 'lib/m2ts_parser/descriptor.rb', line 156

def genre1
  Appendix::ContentNibbleMapping[content_nibble_level_1.to_i].first
end

#genre2Object



160
161
162
# File 'lib/m2ts_parser/descriptor.rb', line 160

def genre2
  Appendix::ContentNibbleMapping[content_nibble_level_1.to_i][1][content_nibble_level_2.to_i].to_s
end