Class: Ariblib::LogoTransmissionDescriptor
- Inherits:
-
Descriptor
- Object
- Descriptor
- Ariblib::LogoTransmissionDescriptor
- Defined in:
- lib/ariblib/Descriptor.rb
Instance Method Summary collapse
Methods inherited from Descriptor
Constructor Details
This class inherits a constructor from Ariblib::Descriptor
Instance Method Details
#parse(h, bs, tag, descriptor_length) ⇒ Object
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/ariblib/Descriptor.rb', line 151 def parse(h,bs,tag,descriptor_length) #h[:tag] << :digital_copy_control logo_transmission_type = bs.read 8 #uimsbf if(logo_transmission_type == 0x01) reserved_future_use = bs.read 7 #bslbf logo_id = bs.read 9 #uimsbf reserved_future_use = bs.read 4 #bslbf logo_version = bs.read 12 #uimsbf download_data_id = bs.read 16 #uimsbf h[:logo]=[logo_id,logo_version,download_data_id] elsif(logo_transmission_type == 0x02) reserved_future_use = bs.read 7 #bslbf logo_id = bs.read 9 #uimsbf h[:logo]=[logo_id] elsif(logo_transmission_type == 0x03) len=(descriptor_length-1) logo_char = Ariblib::String.new(bs,len).to_utf8 #uimsbf h[:logo_char]=logo_char else len=(descriptor_length-1) reserved_future_use = bs.str len #bslbf end end |