Ejemplo n.º 1
0
def test_outer_processing():
    interleaved_bits = test_data['op_interleaved_bits']
    super_frame_start = test_data['op_super_frame_start']
    rate = test_data['op_rate']

    exp_m2ts_byte_string = test_data['op_m2ts_byte_string']

    m2ts_byte_string = components.outer_processing(interleaved_bits,
                                                   super_frame_start, rate)

    assert m2ts_byte_string == exp_m2ts_byte_string
Ejemplo n.º 2
0
def test_outer_processing():
    interleaved_bits = test_data['op_interleaved_bits']
    super_frame_start = test_data['op_super_frame_start']
    rate = test_data['op_rate']
    
    exp_m2ts_byte_string = test_data['op_m2ts_byte_string']

    m2ts_byte_string = components.outer_processing(interleaved_bits, 
                                                   super_frame_start, 
                                                   rate)
 
    assert  m2ts_byte_string == exp_m2ts_byte_string
Ejemplo n.º 3
0
 def run(self, file_):        
     self._get_iq_data(file_)
     
     data_carriers, super_frame_start = components.run_dsp(self.iq_data)
     demultiplex_bits = components.inner_processing(data_carriers, 
                                                    super_frame_start)
                                                    
     vit_decoded = components.viterbi_decoder(demultiplex_bits, self.rate)
     self.m2ts_byte_string = components.outer_processing(vit_decoded, 
                                                     super_frame_start, 
                                                     self.rate)
     
     return self.m2ts_byte_string