X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fmeviz%2Fencoder%2FEncodingOptions.java;h=2fca434f46e601c0e8f953627d3b4eb9f84a38db;hb=567410640f4e0428caf9de9fc83df4c73f0e5067;hp=463b48acc7c05561e1d9d961de96afc59e98ce87;hpb=95ffc75c41af8f8f164e1d7dbf88291ae3749127;p=meviz.git diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/EncodingOptions.java b/src/main/java/eu/svjatoslav/meviz/encoder/EncodingOptions.java index 463b48a..2fca434 100755 --- a/src/main/java/eu/svjatoslav/meviz/encoder/EncodingOptions.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/EncodingOptions.java @@ -1,11 +1,11 @@ /* * Meviz - Various tools collection to work with multimedia. - * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * Copyright (C) 2012 -- 2017-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public License - * as published by the Free Software Foundation. - */ + * modify it under the terms of version 3 of the GNU Lesser General Public License + * or later as published by the Free Software Foundation. +*/ package eu.svjatoslav.meviz.encoder; @@ -15,20 +15,104 @@ import java.util.List; public class EncodingOptions { - public BitrateParameter.bitrate videoBitrate = BitrateParameter.bitrate.MEDIUM; + private BitrateParameter.Bitrate videoBitrate = BitrateParameter.Bitrate.MEDIUM; - // public Bitrate audioBitrate; + private BitrateParameter.Bitrate audioBitrate = BitrateParameter.Bitrate.MEDIUM; - public boolean deinterlace = false; + private Integer targetFps; - public boolean recursive; + private boolean deinterlace = false; - public boolean testOnly; + private boolean recursive; - public File workingDirectory = new File(System.getProperty("user.dir")); + private boolean testOnly; - List outputFormats = new ArrayList(); + private boolean forPortablePlayer = false; - List inputPatterns = new ArrayList(); + private File workingDirectory = new File(System.getProperty("user.dir")); + + private List outputFormats = new ArrayList<>(); + + private List inputPatterns = new ArrayList<>(); + + public BitrateParameter.Bitrate getAudioBitrate() { + return audioBitrate; + } + + public void setAudioBitrate(final BitrateParameter.Bitrate audioBitrate) { + this.audioBitrate = audioBitrate; + } + + public List getInputPatterns() { + return inputPatterns; + } + + public void setInputPatterns(final List inputPatterns) { + this.inputPatterns = inputPatterns; + } + + public List getOutputFormats() { + return outputFormats; + } + + public void setOutputFormats(final List outputFormats) { + this.outputFormats = outputFormats; + } + + public Integer getTargetFps() { + return targetFps; + } + + public void setTargetFps(final Integer targetFps) { + this.targetFps = targetFps; + } + + public BitrateParameter.Bitrate getVideoBitrate() { + return videoBitrate; + } + + public void setVideoBitrate(final BitrateParameter.Bitrate videoBitrate) { + this.videoBitrate = videoBitrate; + } + + public File getWorkingDirectory() { + return workingDirectory; + } + + public void setWorkingDirectory(final File workingDirectory) { + this.workingDirectory = workingDirectory; + } + + public boolean isDeinterlace() { + return deinterlace; + } + + public void setDeinterlace(final boolean deinterlace) { + this.deinterlace = deinterlace; + } + + public boolean isForPortablePlayer() { + return forPortablePlayer; + } + + public void setForPortablePlayer(final boolean forPortablePlayer) { + this.forPortablePlayer = forPortablePlayer; + } + + public boolean isRecursive() { + return recursive; + } + + public void setRecursive(final boolean recursive) { + this.recursive = recursive; + } + + public boolean isTestOnly() { + return testOnly; + } + + public void setTestOnly(final boolean testOnly) { + this.testOnly = testOnly; + } }