OSDN Git Service

ConverterのProfileをインタフェース化
[coroid/inqubus.git] / frontend / src / saccubus / converter / classic / profile / Ffmpeg.java
1 /* $Id$ */
2 package saccubus.converter.classic.profile;
3
4 import java.io.File;
5
6 /**
7  *
8  * @author yuki
9  */
10 public class Ffmpeg implements yukihane.saccubus.converter.profile.Ffmpeg {
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 NgSetting 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, NgSetting 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     public boolean isSelfAdjustFontSize() {
64         return selfAdjustFontSize;
65     }
66
67     public int getShadowIndex() {
68         return shadowIndex;
69     }
70
71     public boolean isShowConverting() {
72         return showConverting;
73     }
74
75     public boolean isVhookDisabled() {
76         return vhookDisabled;
77     }
78
79     public File getVhook() {
80         return vhook;
81     }
82
83     public int getMaxNumOfComment() {
84         return maxNumOfComment;
85     }
86
87     public NgSetting getNgSetting() {
88         return ngSetting;
89     }
90 }