// Conversion thresholds
{
String logicalThresholdString = props.getProperty("multimedia.conversion.image.threshold", null);
if( null != logicalThresholdString ) {
ThresholdLogicalAnd and = new ThresholdLogicalAnd();
String[] thresholdStrings = logicalThresholdString.split("\\|");
for(String thresholdString : thresholdStrings) {
ThresholdImage threshold = ThresholdImage.parseString(thresholdString);
and.addThreshold(threshold);
}
MultimediaConverterImpl.imageConversionThreshold = and;
logger.info("Image Conversion Threshold: "+MultimediaConverterImpl.imageConversionThreshold);
}
}
{
String logicalThresholdString = props.getProperty("multimedia.conversion.audio.threshold", null);
if( null != logicalThresholdString ) {
ThresholdLogicalAnd and = new ThresholdLogicalAnd();
String[] thresholdStrings = logicalThresholdString.split("\\|");
for(String thresholdString : thresholdStrings) {
ThresholdAudio threshold = ThresholdAudio.parseString(thresholdString);
and.addThreshold(threshold);
}
MultimediaConverterImpl.audioConversionThreshold = and;
logger.info("Audio Conversion Threshold: "+MultimediaConverterImpl.audioConversionThreshold);
}
}
{
String logicalThresholdString = props.getProperty("multimedia.conversion.video.threshold", null);
if( null != logicalThresholdString ) {
ThresholdLogicalAnd and = new ThresholdLogicalAnd();
String[] thresholdStrings = logicalThresholdString.split("\\|");
for(String thresholdString : thresholdStrings) {
ThresholdVideo threshold = ThresholdVideo.parseString(thresholdString);
and.addThreshold(threshold);
}
MultimediaConverterImpl.videoConversionThreshold = and;
logger.info("Video Conversion Threshold: "+MultimediaConverterImpl.videoConversionThreshold);