2 package saccubus.worker.classic.profile;
5 import saccubus.worker.profile.OutputProfile;
11 public class Ffmpeg implements saccubus.worker.profile.ConvertProfile {
13 private final File ffmpeg;
14 private final File vhook;
15 private final FfmpegOption ffmpegOption;
16 private final boolean vhookDisabled;
17 private final int maxNumOfComment;
18 private final File font;
19 private final int fontIndex;
20 private final int shadowIndex;
21 private final boolean showConverting;
22 private final boolean selfAdjustFontSize;
23 private final boolean commentOpaque;
24 private final HideCondition ngSetting;
26 public Ffmpeg(File ffmpegPath, File vhookPath, FfmpegOption ffmpegOption, boolean vhookDisabled,
27 int videoShowNum, File fontPath, int fontIndex, int shadowIndex, boolean showConvertingVideo,
28 boolean selfAdjustFontSize, boolean opaqueComment, HideCondition ngSetting) {
29 this.ffmpeg = ffmpegPath;
30 this.vhook = vhookPath;
31 this.ffmpegOption = ffmpegOption;
32 this.vhookDisabled = vhookDisabled;
33 this.maxNumOfComment = videoShowNum;
35 this.fontIndex = fontIndex;
36 this.shadowIndex = shadowIndex;
37 this.showConverting = showConvertingVideo;
38 this.selfAdjustFontSize = selfAdjustFontSize;
39 this.commentOpaque = opaqueComment;
40 this.ngSetting = ngSetting;
44 public FfmpegOption getFfmpegOption() {
48 public File getFfmpeg() {
52 public int getFontIndex() {
56 public File getFont() {
60 public boolean isCommentOpaque() {
65 public boolean isDisableFontSizeArrange() {
66 return !selfAdjustFontSize;
69 public int getShadowIndex() {
73 public boolean isShowConverting() {
74 return showConverting;
77 public boolean isVhookDisabled() {
81 public File getVhook() {
85 public int getMaxNumOfComment() {
86 return maxNumOfComment;
89 public HideCondition getNgSetting() {
94 public File getTempDir() {
99 public OutputProfile getOutputProvile() {
100 throw new UnsupportedOperationException("Not supported yet.");