public void ShowConfig(ref yoseen.DataFrame irFrame, ref yoseen.DataFrame visFrame, ref FDConfig binConfig, DELAfterFDConfig delAfterConfig) { // _delAfterConfig = delAfterConfig; _irFrame = irFrame; int ret = yoseen.YoseenPlayback.YoseenPlayback_OpenMem(_ptrPlayback, _irFrame.Head, _irFrame.Temp); if (0 > ret) { return; } _irFrameHead = (yoseen.DataFrameHeader)Marshal.PtrToStructure(irFrame.Head, typeof(yoseen.DataFrameHeader)); yoseen.YoseenPlayback.YoseenPlayback_SetImage(_ptrPlayback, ref _clsDevice._bin.IRImage_StrechControl, ref _clsDevice._bin.IRImage_PaletteType); ret = yoseen.YoseenPlayback.YoseenPlayback_ReadFrame(_ptrPlayback, 0, ref _irFrame); if (ret < 0) { return; } // _visFrame = visFrame; _visFrameHead = (yoseen.H264RtspHeader)Marshal.PtrToStructure(visFrame.H264, typeof(yoseen.H264RtspHeader)); /* * update data */ configCanvas.BeginUpdate(_irFrameHead.Width, _irFrameHead.Height, 0); configCanvas.BeginUpdate(_visFrameHead.width, _visFrameHead.height, 1); configCanvas.ChangePalette(_clsDevice._bin.IRImage_PaletteType); configCanvas.UpdateIR(ref _irFrame); configCanvas.UpdateVIS(ref _visFrame); configCanvas.LoadConfig(ref binConfig); // this.ShowDialog(); }
void loadFrame() { int ret = yoseen.YoseenPlayback.YoseenPlayback_OpenMem(_ptrPlayback, _tffStruct.dfh, _tffStruct.dfd); if (0 > ret) { return; } ret = yoseen.YoseenPlayback.YoseenPlayback_ReadFrame(_ptrPlayback, 0, ref _dataFrame); if (0 > ret) { return; } _dataFrameHeader = (yoseen.DataFrameHeader)Marshal.PtrToStructure(_dataFrame.Head, typeof(yoseen.DataFrameHeader)); // bbCanvas.BeginUpdate(ref _dataFrameHeader); bbCanvas.UpdateData(ref _dataFrame); // _ctlx.BbConfig.Change(_dataWidth, _dataHeight, _dataTransform); bbCanvas.ChangeBbConfig(ref _ctlx.BbConfig); }