mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Added writing the blackborder detector flag to the settings file
Former-commit-id: da17feaa221d481f93e505d32473269a080d55ed
This commit is contained in:
parent
c57dee892f
commit
0e8997f554
@ -1 +1 @@
|
||||
444584e630a6e3303b8d2828e128a7cad191f5e3
|
||||
e81048005035c3bc370c6b2141998c1b379e1a7b
|
@ -57,6 +57,9 @@ public class LedString {
|
||||
String ledJson = ledToJsonString();
|
||||
fw.write(ledJson + ",\n\n");
|
||||
|
||||
String blackBorderJson = mProcessConfig.getBlackborderJson();
|
||||
fw.write(blackBorderJson + ",\n\n");
|
||||
|
||||
String miscJson = mMiscConfig.toJsonString();
|
||||
fw.write(miscJson + "\n");
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
package org.hyperion.hypercon.spec;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.Observable;
|
||||
|
||||
import org.hyperion.hypercon.LedFrameFactory;
|
||||
@ -159,4 +160,18 @@ public class ImageProcessConfig extends Observable {
|
||||
setChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public String getBlackborderJson() {
|
||||
StringBuffer strBuf = new StringBuffer();
|
||||
|
||||
strBuf.append("\t/// The black border configuration, contains the following items: \n");
|
||||
strBuf.append("\t/// * enable : true if the detector should be activated\n");
|
||||
|
||||
strBuf.append("\t\"blackborderdetector\" :\n");
|
||||
strBuf.append("\t{\n");
|
||||
strBuf.append(String.format(Locale.ROOT, "\t\t\"enable\" : %s\n", mBlackBorderRemoval ? "true" : "false"));
|
||||
strBuf.append("\t}");
|
||||
|
||||
return strBuf.toString();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user