public class RenderingOutput extends java.lang.Object implements IVideoEffectListener
Constructor and Description |
---|
RenderingOutput()
Creates a rendering output with the default settings for saving the image files.
|
Modifier and Type | Method and Description |
---|---|
void |
createDirectories(boolean bCreateDirectories)
Sets if a directory should be created, if the specified directory does not exist.
|
void |
endedProperly()
Not used.
|
void |
interrupted(java.lang.String pReason)
Not used.
|
void |
overwriteImageFiles(boolean bOverwriteImageFiles)
Sets if already existing image files should be overwritten.
|
void |
processingStarted()
Not used at the moment.
|
void |
setCurrentVideoFrame(java.awt.image.BufferedImage pCurrentFrame,
int iFrameId,
int iFrameNumber)
Saves the specified image according to the settings made in this object.
|
void |
setDirectory(java.lang.String pDirectory)
Sets the directory where the output images should be saved.
|
void |
setFileBaseName(java.lang.String pFileBaseName)
Sets the file base name of the output images that should be saved.
|
void |
setFileType(int iFileType)
Sets the file type.
|
void |
setFirstFrame(int iFirstFrame)
Sets the id of the first frame.
|
void |
setProgressStatus(double dProgress,
java.lang.String pCurrentWork)
Not used.
|
void |
useLeadingZeros(boolean bLeadingZeros)
Sets if leading zeros should be used in the image count.
|
public RenderingOutput()
public void setFirstFrame(int iFirstFrame)
iFirstFrame
- The id of the first frame as integer.public void setFileType(int iFileType)
ImageSequence
class.
If no valid file type is defined, the PNG file format is chosen.iFileType
- The file type as integer.public void setFileBaseName(java.lang.String pFileBaseName)
null
values are neglected.pFileBaseName
- The file base name as string.public void setDirectory(java.lang.String pDirectory)
null
values are neglected.pDirectory
- The directory as string.public void useLeadingZeros(boolean bLeadingZeros)
bLeadingZeros
- The flag if leading zeros in the image count should be used as boolean.public void createDirectories(boolean bCreateDirectories)
bCreateDirectories
- The flag if a directory should be created, if the specified directory does not exist as boolean.public void overwriteImageFiles(boolean bOverwriteImageFiles)
bOverwriteImageFiles
- The flag if already existing image files should be overwritten as boolean.public void setCurrentVideoFrame(java.awt.image.BufferedImage pCurrentFrame, int iFrameId, int iFrameNumber)
setCurrentVideoFrame
in interface IVideoEffectListener
pCurrentFrame
- The video frame that should be saved as BufferedImage
object.iFrameId
- The id of the current frame as integer.iFrameNumber
- The total number of frames as integer.public void processingStarted()
processingStarted
in interface IVideoEffectListener
public void setProgressStatus(double dProgress, java.lang.String pCurrentWork)
setProgressStatus
in interface IThreadListener
dProgress
- The percentage of the work that has already been finished.pCurrentWork
- A String
explaning what the thread currently processes.
This String
can also be null
.public void endedProperly()
endedProperly
in interface IThreadListener
public void interrupted(java.lang.String pReason)
interrupted
in interface IThreadListener
pReason
- The reason, why the thread has been interrupted as String
.