protected override IEnumerator ProcessPayload(VisualPayload payload) { var filesize = FileSize.GetFirstValue(payload.Data); var significantStream = SignificantBitstream .GetFirstValue(payload.Data); var insignificantStream = InsignificantBitStream .GetFirstValue(payload.Data); var sizeOffset = SizeOffset.GetFirstValue(payload.Data); var csView = Assembler.ConstructCsViewStep1(significantStream, insignificantStream, filesize, sizeOffset /* * filesize/700000*/); csView.Initialize(this, payload); csView.SetTexture(VisualizerTexture.GetFirstValue(payload.Data)); CsVisualizerTarget.SetValue(new CsVisContainer(csView), payload.Data); var newPayload = new VisualPayload(payload.Data, new VisualDescription(csView.Bound)); var iterator = Router.TransmitAll(newPayload); while (iterator.MoveNext()) { yield return(null); } }
protected override void OnProcessOutputSchema(MutableObject newSchema) { CsVisualizerTarget.SetValue(new CsVisContainer(), newSchema); Router.TransmitAllSchema(newSchema); }