styleTime.getUnit(), TimeUnit.S);
}
private double getFrameRate(StyleValue styleValue) {
StyleFrequency styleFrequency = null;
if (styleValue instanceof StyleFrequency) {
styleFrequency = (StyleFrequency)styleValue;
} else {
logger.warn("unexpected-mcs-frame-rate-type",
styleValue.getStyleValueType().getType());
styleFrequency = DEFAULT_MCS_FRAME_RATE;
}
double frameRate = frequencyConverter.convert(
styleFrequency.getNumber(),
styleFrequency.getUnit(),
FrequencyUnit.HZ);
// If protocol is available, check the maximum available
// frame rate supported by device.
if (protocol != null) {