it.sauronsoftware.jave
Class EncodingAttributes

java.lang.Object
  extended by it.sauronsoftware.jave.EncodingAttributes
All Implemented Interfaces:
java.io.Serializable

public class EncodingAttributes
extends java.lang.Object
implements java.io.Serializable

Attributes controlling the encoding process.

Author:
Carlo Pelliccia
See Also:
Serialized Form

Constructor Summary
EncodingAttributes()
           
 
Method Summary
 void setAudioAttributes(AudioAttributes audioAttributes)
          Sets the attributes for the encoding of the audio stream in the target multimedia file.
 void setDuration(java.lang.Float duration)
          Sets the duration (seconds) of the re-encoded stream.
 void setFormat(java.lang.String formatHandle)
          Sets the formatHandle name for the encoded target multimedia file.
 void setOffset(java.lang.Float offset)
          Sets the start offset time (seconds).
 void setVideoAttributes(VideoAttributes videoAttributes)
          Sets the attributes for the encoding of the video stream in the target multimedia file.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EncodingAttributes

public EncodingAttributes()
Method Detail

setFormat

public void setFormat(java.lang.String formatHandle)
Sets the formatHandle name for the encoded target multimedia file. Be sure this formatHandle is supported (see Encoder.getSupportedEncodingFormats().

Parameters:
formatHandle - The formatHandle name for the encoded target multimedia file.

setOffset

public void setOffset(java.lang.Float offset)
Sets the start offset time (seconds). If null or not specified no start offset will be applied.

Parameters:
offset - The start offset time (seconds).

setDuration

public void setDuration(java.lang.Float duration)
Sets the duration (seconds) of the re-encoded stream. If null or not specified the source stream, starting from the offset, will be completely re-encoded in the target stream.

Parameters:
duration - The duration (seconds) of the re-encoded stream.

setAudioAttributes

public void setAudioAttributes(AudioAttributes audioAttributes)
Sets the attributes for the encoding of the audio stream in the target multimedia file. If null of not specified no audio stream will be encoded. It cannot be null if also the video field is null.

Parameters:
audioAttributes - The attributes for the encoding of the audio stream in the target multimedia file.

setVideoAttributes

public void setVideoAttributes(VideoAttributes videoAttributes)
Sets the attributes for the encoding of the video stream in the target multimedia file. If null of not specified no video stream will be encoded. It cannot be null if also the audio field is null.

Parameters:
videoAttributes - The attributes for the encoding of the video stream in the target multimedia file.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object