Class: Ariblib::TSInformationDescriptor
- Inherits:
-
Descriptor
- Object
- Descriptor
- Ariblib::TSInformationDescriptor
- 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
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/ariblib/Descriptor.rb', line 192 def parse(h,bs,tag,descriptor_length) ret=[] start_pos=bs.pos remote_control_key_id = bs.read 8 #uimsbf length_of_ts_name = bs.read 6 #uimsbf transmission_type_count = bs.read 2 #uimsbf ts_name_char = Ariblib::String.new(bs,length_of_ts_name).to_utf8 #uimsbf transmission_type_count.times do transmission_type_info = bs.read 8 #bslbf num_of_service = bs.read 8 #uimsbf num_of_service.times do service_id = bs.read 16 #uimsbf ret << service_id end end len=descriptor_length-(bs.pos-start_pos)/8 #for (l = 0;l< N;l++) { #reserved_future_use 8 bslbf #} h[:TS_remote_key]=remote_control_key_id h[:TS_name]=ts_name_char h[:TS_service]=ret end |