private void ConvertStills() { string[] inputFiles = Directory.GetFiles(StillsInputFolder, Misc.Constants.Constants.RGB_FILE_PATTERN); Parallel.ForEach(inputFiles, i => { var converter = new RGBToBitmapConverter(i, Path.Join( StillsOutputFolder, Path.GetFileNameWithoutExtension(i) + ".jpg"), ImageFormat.Jpeg); converter.Convert(); }); }
private void RGBSequenceToBitmap() { string[] rgbSequences = Directory.GetFiles(InputSequenceFolder, Misc.Constants.Constants.RGB_FILE_PATTERN); Parallel.ForEach(rgbSequences, s => { RGBToBitmapConverter converter = new RGBToBitmapConverter(s, Path.Join( InputSequenceFolder, Path.GetFileNameWithoutExtension(s) + ".jpg"), ImageFormat.Jpeg); converter.Convert(); }); }