use accessor methods for Encoding Options
[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, 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 2 of the GNU General Public License
7  * 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         // public Bitrate audioBitrate;
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<String>();
35
36         private List<String> inputPatterns = new ArrayList<String>();
37
38         public BitrateParameter.bitrate getAudioBitrate() {
39                 return audioBitrate;
40         }
41
42         public BitrateParameter.bitrate getVideoBitrate() {
43                 return videoBitrate;
44         }
45
46         public void setAudioBitrate(final BitrateParameter.bitrate audioBitrate) {
47                 this.audioBitrate = audioBitrate;
48         }
49
50         public void setVideoBitrate(final BitrateParameter.bitrate videoBitrate) {
51                 this.videoBitrate = videoBitrate;
52         }
53
54         public List<String> getInputPatterns() {
55                 return inputPatterns;
56         }
57
58         public void setInputPatterns(List<String> inputPatterns) {
59                 this.inputPatterns = inputPatterns;
60         }
61
62         public List<String> getOutputFormats() {
63                 return outputFormats;
64         }
65
66         public void setOutputFormats(List<String> outputFormats) {
67                 this.outputFormats = outputFormats;
68         }
69
70         public File getWorkingDirectory() {
71                 return workingDirectory;
72         }
73
74         public void setWorkingDirectory(File workingDirectory) {
75                 this.workingDirectory = workingDirectory;
76         }
77
78         public boolean isForPortablePlayer() {
79                 return forPortablePlayer;
80         }
81
82         public void setForPortablePlayer(boolean forPortablePlayer) {
83                 this.forPortablePlayer = forPortablePlayer;
84         }
85
86         public boolean isTestOnly() {
87                 return testOnly;
88         }
89
90         public void setTestOnly(boolean testOnly) {
91                 this.testOnly = testOnly;
92         }
93
94         public boolean isRecursive() {
95                 return recursive;
96         }
97
98         public void setRecursive(boolean recursive) {
99                 this.recursive = recursive;
100         }
101
102         public boolean isDeinterlace() {
103                 return deinterlace;
104         }
105
106         public void setDeinterlace(boolean deinterlace) {
107                 this.deinterlace = deinterlace;
108         }
109
110 }