def pushSRI(self, H):
     streamID = H.streamID
     l = self.outputs.setdefault(streamID, [])
     l.append(H)
     self.sris.setdefault(streamID, []).append(H)
     self.lastTime = time.time()
     return ArraySink.pushSRI(self, H)
Пример #2
0
 def pushSRI(self, H):
     streamID = H.streamID
     l=self.outputs.setdefault(streamID,[])
     l.append(H)
     self.sris.setdefault(streamID,[]).append(H)
     self.lastTime=time.time()
     return ArraySink.pushSRI(self, H)
 def pushPacket(self, data, ts, EOS, stream_id):
     l = self.outputs[stream_id]
     sri = self.sris[stream_id][-1]
     xdelta = sri.xdelta
     if ts.tcstatus == BULKIO.TCS_VALID:
         tStart = ts.twsec + ts.tfsec + ts.toff * xdelta
     else:
         tStart = None
     cmplx = sri.mode == 1
     t = (tStart, xdelta, cmplx, data)
     l.append(t)
     self.dataPackets.setdefault(stream_id, []).append(t)
     self.lastTime = time.time()
     return ArraySink.pushPacket(self, data, ts, EOS, stream_id)
Пример #4
0
 def pushPacket(self, data, ts, EOS, stream_id):
     l=self.outputs[stream_id]
     sri = self.sris[stream_id][-1]
     xdelta = sri.xdelta
     if ts.tcstatus == BULKIO.TCS_VALID:
         tStart = ts.twsec+ts.tfsec+ts.toff*xdelta
     else:
         tStart=None
     cmplx = sri.mode==1
     t=(tStart, xdelta, cmplx, data)
     l.append(t)
     self.dataPackets.setdefault(stream_id,[]).append(t)
     self.lastTime=time.time()
     return ArraySink.pushPacket(self, data, ts, EOS, stream_id)
 def __init__(self, porttype):
     ArraySink.__init__(self, porttype)
     self.outputs = {}
     self.sris = {}
     self.dataPackets = {}
     self.lastTime = time.time()
Пример #6
0
 def __init__(self, porttype):
     ArraySink.__init__(self, porttype)
     self.outputs={}
     self.sris={}
     self.dataPackets={}
     self.lastTime=time.time()