Class: M2TSParser::ContentDescriptor::ContentNibble
- Inherits:
-
BinaryParser::TemplateBase
- Object
- BinaryParser::TemplateBase
- M2TSParser::ContentDescriptor::ContentNibble
- Defined in:
- lib/m2ts_parser/descriptor.rb
Instance Method Summary collapse
Instance Method Details
#content_description ⇒ Object
164 165 166 |
# File 'lib/m2ts_parser/descriptor.rb', line 164 def content_description "#{genre1} - #{genre2}" end |
#genre1 ⇒ Object
156 157 158 |
# File 'lib/m2ts_parser/descriptor.rb', line 156 def genre1 Appendix::ContentNibbleMapping[content_nibble_level_1.to_i].first end |
#genre2 ⇒ Object
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 |