MCPcopy Create free account
hub / github.com/bbc/audiowaveform / shouldResampleWaveformData

Function shouldResampleWaveformData

src/OptionHandler.cpp:662–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660//------------------------------------------------------------------------------
661
662static 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

Callers 1

runMethod · 0.85

Calls 4

isWaveformDataFormatFunction · 0.85
hasSamplesPerPixelMethod · 0.80
hasPixelsPerSecondMethod · 0.80
hasEndTimeMethod · 0.80

Tested by

no test coverage detected