/// @brief scff_interprocessモジュールのパラメータを生成 public static scff_interprocess.Entry ToInterprocessEntry(Entry input) { scff_interprocess.Entry output = new scff_interprocess.Entry(); output.process_id = input.ProcessID; output.process_name = input.ProcessName; output.sample_pixel_format = (Int32)input.SamplePixelFormat; output.sample_width = input.SampleWidth; output.sample_height = input.SampleHeight; output.fps = input.FPS; return output; }
/// @brief scff_interprocessモジュールのパラメータから生成 public static Entry FromInterprocess(scff_interprocess.Entry input) { Entry output = new Entry(); output.ProcessID = input.process_id; output.ProcessName = input.process_name; output.SamplePixelFormat = (scff_interprocess.ImagePixelFormat) Enum.ToObject(typeof(scff_interprocess.ImagePixelFormat), input.sample_pixel_format); output.SampleWidth = input.sample_width; output.SampleHeight = input.sample_height; output.FPS = input.fps; return output; }