public override void Initialize(Dictionary <string, object> arguments) { cell = CellServiceManager.gIRServiceList[(int)arguments["CellId"]]; cell.OnImageCallback += OnImageCallback; cell.OnTempertureCallback += OnTemperatureCallback; CreateImageBuffer(cell.mCell.mIRCameraWidth * cell.mCell.mIRCameraHeight); encoder.Initialize(cell.mCell.mIRCameraWidth, cell.mCell.mIRCameraHeight, cell.mCell.mIRCameraVideoFrameRate); }
public void Initialize(CellService cell) { this.cell = cell; cell.OnImageCallback += OnImageCallback; cell.OnTempertureCallback += OnTemperatureCallback; refbase = new RefBase(() => { base.Discard(); base.Join(); }); CreateImageBuffer(cell.mCell.mIRCameraWidth * cell.mCell.mIRCameraHeight); encoder.Initialize(cell.mCell.mIRCameraWidth, cell.mCell.mIRCameraHeight, cell.mCell.mIRCameraVideoFrameRate); }