OSDN Git Service

ac4c90f9bf273c3db7c7c2088cfb8a6f8d01fea8
[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 import saccubus.worker.profile.GeneralProfile;
6 import saccubus.worker.profile.OutputProfile;
7
8 /**
9  *
10  * @author yuki
11  */
12 public class Ffmpeg implements saccubus.worker.profile.ConvertProfile {
13
14     private final File ffmpeg;
15     private final File vhook;
16     private final FfmpegOption ffmpegOption;
17     private final boolean vhookDisabled;
18     private final int maxNumOfComment;
19     private final File font;
20     private final int fontIndex;
21     private final int shadowIndex;
22     private final boolean showConverting;
23     private final boolean selfAdjustFontSize;
24     private final boolean commentOpaque;
25     private final HideCondition ngSetting;
26
27     public Ffmpeg(File ffmpegPath, File vhookPath, FfmpegOption ffmpegOption, boolean vhookDisabled,
28             int videoShowNum, File fontPath, int fontIndex, int shadowIndex, boolean showConvertingVideo,
29             boolean selfAdjustFontSize, boolean opaqueComment, HideCondition ngSetting) {
30         this.ffmpeg = ffmpegPath;
31         this.vhook = vhookPath;
32         this.ffmpegOption = ffmpegOption;
33         this.vhookDisabled = vhookDisabled;
34         this.maxNumOfComment = videoShowNum;
35         this.font = fontPath;
36         this.fontIndex = fontIndex;
37         this.shadowIndex = shadowIndex;
38         this.showConverting = showConvertingVideo;
39         this.selfAdjustFontSize = selfAdjustFontSize;
40         this.commentOpaque = opaqueComment;
41         this.ngSetting = ngSetting;
42     }
43
44     @Override
45     public FfmpegOption getFfmpegOption() {
46         return ffmpegOption;
47     }
48
49     public File getFfmpeg() {
50         return ffmpeg;
51     }
52
53     public int getFontIndex() {
54         return fontIndex;
55     }
56
57     public File getFont() {
58         return font;
59     }
60
61     public boolean isCommentOpaque() {
62         return commentOpaque;
63     }
64
65     @Override
66     public boolean isDisableFontSizeArrange() {
67         return !selfAdjustFontSize;
68     }
69
70     public int getShadowIndex() {
71         return shadowIndex;
72     }
73
74     public boolean isShowConverting() {
75         return showConverting;
76     }
77
78     public boolean isVhookDisabled() {
79         return vhookDisabled;
80     }
81
82     public File getVhook() {
83         return vhook;
84     }
85
86     public int getMaxNumOfComment() {
87         return maxNumOfComment;
88     }
89
90     public HideCondition getNgSetting() {
91         return ngSetting;
92     }
93
94     @Override
95     public File getTempDir() {
96         return new File(".");
97     }
98
99     @Override
100     public OutputProfile getOutputProfile() {
101         throw new UnsupportedOperationException("Not supported yet.");
102     }
103
104     @Override
105     public GeneralProfile getGeneralProfile() {
106         throw new UnsupportedOperationException("Not supported yet.");
107     }
108
109     @Override
110     public boolean isConvert() {
111         throw new UnsupportedOperationException("Not supported yet.");
112     }
113
114     @Override
115     public boolean isCommentOverlay() {
116         throw new UnsupportedOperationException("Not supported yet.");
117     }
118 }