| 660 | //------------------------------------------------------------------------------ |
| 661 | |
| 662 | static bool shouldResampleWaveformData( |
| 663 | FileFormat::FileFormat input_format, |
| 664 | FileFormat::FileFormat output_format, |
| 665 | const Options& options) |
| 666 | { |
| 667 | const bool hasResamplingOption = options.hasSamplesPerPixel() || |
| 668 | options.hasPixelsPerSecond() || |
| 669 | options.hasEndTime(); |
| 670 | |
| 671 | return FileFormat::isWaveformDataFormat(input_format) && |
| 672 | FileFormat::isWaveformDataFormat(output_format) && |
| 673 | hasResamplingOption; |
| 674 | } |
| 675 | |
| 676 | //------------------------------------------------------------------------------ |
| 677 |
no test coverage detected