OSDN Git Service

bf04a7a71def747bf9b315992fcb4ec817289d48
[coroid/inqubus.git] / frontend / src / saccubus / worker / classic / profile / Ffmpeg.java
1 /* $Id$ */
2 package saccubus.worker.classic.profile;
3
4 import java.io.File;
5
6 /**
7  *
8  * @author yuki
9  */
10 public class Ffmpeg implements saccubus.worker.profile.ConvertProfile {
11
12     private final File ffmpeg;
13     private final File vhook;
14     private final FfmpegOption ffmpegOption;
15     private final boolean vhookDisabled;
16     private final int maxNumOfComment;
17     private final File font;
18     private final int fontIndex;
19     private final int shadowIndex;
20     private final boolean showConverting;
21     private final boolean selfAdjustFontSize;
22     private final boolean commentOpaque;
23     private final HideCondition ngSetting;
24
25     public Ffmpeg(File ffmpegPath, File vhookPath, FfmpegOption ffmpegOption, boolean vhookDisabled,
26             int videoShowNum, File fontPath, int fontIndex, int shadowIndex, boolean showConvertingVideo,
27             boolean selfAdjustFontSize, boolean opaqueComment, HideCondition ngSetting) {
28         this.ffmpeg = ffmpegPath;
29         this.vhook = vhookPath;
30         this.ffmpegOption = ffmpegOption;
31         this.vhookDisabled = vhookDisabled;
32         this.maxNumOfComment = videoShowNum;
33         this.font = fontPath;
34         this.fontIndex = fontIndex;
35         this.shadowIndex = shadowIndex;
36         this.showConverting = showConvertingVideo;
37         this.selfAdjustFontSize = selfAdjustFontSize;
38         this.commentOpaque = opaqueComment;
39         this.ngSetting = ngSetting;
40     }
41
42     @Override
43     public FfmpegOption getFfmpegOption() {
44         return ffmpegOption;
45     }
46
47     public File getFfmpeg() {
48         return ffmpeg;
49     }
50
51     public int getFontIndex() {
52         return fontIndex;
53     }
54
55     public File getFont() {
56         return font;
57     }
58
59     public boolean isCommentOpaque() {
60         return commentOpaque;
61     }
62
63     @Override
64     public boolean isDisableFontSizeArrange() {
65         return !selfAdjustFontSize;
66     }
67
68     public int getShadowIndex() {
69         return shadowIndex;
70     }
71
72     public boolean isShowConverting() {
73         return showConverting;
74     }
75
76     public boolean isVhookDisabled() {
77         return vhookDisabled;
78     }
79
80     public File getVhook() {
81         return vhook;
82     }
83
84     public int getMaxNumOfComment() {
85         return maxNumOfComment;
86     }
87
88     public HideCondition getNgSetting() {
89         return ngSetting;
90     }
91
92     @Override
93     public File getTempDir() {
94         return new File(".");
95     }
96 }