Class: Ariblib::ProgramMapTable

Inherits:
ProgramSpecificInformation show all
Defined in:
lib/ariblib/ProgramSpecificInformation.rb

Overview

< 1Kbyte

Instance Attribute Summary

Attributes inherited from ProgramSpecificInformation

#contents

Instance Method Summary collapse

Methods inherited from ProgramSpecificInformation

#arib_to_utf8, #descriptor, #init_buf, #initialize, #set, #set_buf

Constructor Details

This class inherits a constructor from Ariblib::ProgramSpecificInformation

Instance Method Details

#parse_bufObject



143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/ariblib/ProgramSpecificInformation.rb', line 143

def parse_buf
#TS_program_map_section() 
	bs=BitStream.new(@buf)
	table_id                  =bs.read 8 #uimsbf
	section_syntax_indicator  =bs.read 1 #bslbf
	reserved_future_use       =bs.read 1 #bslbf
	reserved                  =bs.read 2 #bslbf
	section_length            =bs.read 12 #uimsbf
	len=section_length*8+bs.pos-32
	program_number          =bs.read 16 #uimsbf
	reserved                =bs.read 2 #bslbf
	version_number          =bs.read 5 #uimsbf
	current_next_indicator  =bs.read 1 #bslbf
	section_number          =bs.read 8 #uimsbf
	last_section_number     =bs.read 8 #uimsbf
	reserved                =bs.read 3 #bslbf
	iPCR_PID                =bs.read 13 #uimsbf
	reserved                =bs.read 4 #bslbf
	program_info_length     =bs.read 12 #uimsbf
	descriptor(bs,program_info_length)

	while(bs.pos < len)
		stream_type     =bs.read 8 #uimsbf
		reserved        =bs.read 3 #bslbf
		elementary_PID  =bs.read 13 #uimsnf
		reserved        =bs.read 4 #bslbf
		es_info_length  =bs.read 12 #uimsbf
		descriptor(bs,es_info_length)
	end
	cCRC_32  =bs.read 32 #rpchof
	nil
end