Updated copyright and license.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / EncodingOptions.java
1 /*
2  * Meviz - Various tools collection to work with multimedia.
3  * Copyright (C) 2012 -- 2017-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of version 3 of the GNU Lesser General Public License
7  * or later as published by the Free Software Foundation.
8 */
9
10 package eu.svjatoslav.meviz.encoder;
11
12 import java.io.File;
13 import java.util.ArrayList;
14 import java.util.List;
15
16 public class EncodingOptions {
17
18     private BitrateParameter.Bitrate videoBitrate = BitrateParameter.Bitrate.MEDIUM;
19
20     private BitrateParameter.Bitrate audioBitrate = BitrateParameter.Bitrate.MEDIUM;
21
22     private Integer targetFps;
23
24     private boolean deinterlace = false;
25
26     private boolean recursive;
27
28     private boolean testOnly;
29
30     private boolean forPortablePlayer = false;
31
32     private File workingDirectory = new File(System.getProperty("user.dir"));
33
34     private List<String> outputFormats = new ArrayList<>();
35
36     private List<String> inputPatterns = new ArrayList<>();
37
38     public BitrateParameter.Bitrate getAudioBitrate() {
39         return audioBitrate;
40     }
41
42     public void setAudioBitrate(final BitrateParameter.Bitrate audioBitrate) {
43         this.audioBitrate = audioBitrate;
44     }
45
46     public List<String> getInputPatterns() {
47         return inputPatterns;
48     }
49
50     public void setInputPatterns(final List<String> inputPatterns) {
51         this.inputPatterns = inputPatterns;
52     }
53
54     public List<String> getOutputFormats() {
55         return outputFormats;
56     }
57
58     public void setOutputFormats(final List<String> outputFormats) {
59         this.outputFormats = outputFormats;
60     }
61
62     public Integer getTargetFps() {
63         return targetFps;
64     }
65
66     public void setTargetFps(final Integer targetFps) {
67         this.targetFps = targetFps;
68     }
69
70     public BitrateParameter.Bitrate getVideoBitrate() {
71         return videoBitrate;
72     }
73
74     public void setVideoBitrate(final BitrateParameter.Bitrate videoBitrate) {
75         this.videoBitrate = videoBitrate;
76     }
77
78     public File getWorkingDirectory() {
79         return workingDirectory;
80     }
81
82     public void setWorkingDirectory(final File workingDirectory) {
83         this.workingDirectory = workingDirectory;
84     }
85
86     public boolean isDeinterlace() {
87         return deinterlace;
88     }
89
90     public void setDeinterlace(final boolean deinterlace) {
91         this.deinterlace = deinterlace;
92     }
93
94     public boolean isForPortablePlayer() {
95         return forPortablePlayer;
96     }
97
98     public void setForPortablePlayer(final boolean forPortablePlayer) {
99         this.forPortablePlayer = forPortablePlayer;
100     }
101
102     public boolean isRecursive() {
103         return recursive;
104     }
105
106     public void setRecursive(final boolean recursive) {
107         this.recursive = recursive;
108     }
109
110     public boolean isTestOnly() {
111         return testOnly;
112     }
113
114     public void setTestOnly(final boolean testOnly) {
115         this.testOnly = testOnly;
116     }
117
118 }