|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproject.android.imageprocessing.helper.ImageToVideoCreator
public class ImageToVideoCreator
A helper class for video creation.
Constructor Summary | |
---|---|
ImageToVideoCreator(java.lang.String outputName,
int width,
int height,
int fps)
Creates a ImageToVideoCreator that outputs to the given outputName with a fixed width, height and fps. |
Method Summary | |
---|---|
void |
frameAvailable()
Should be called when a new frame has been draw to the opengl context. |
int |
getHeight()
Returns the height of the video being recorded. |
int |
getWidth()
Returns the width of the video being recorded. |
void |
startRecording()
Starts the recording of the video |
void |
stopRecording()
Stops recording the video and finalizes it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageToVideoCreator(java.lang.String outputName, int width, int height, int fps)
outputName
- The output file name and path to render the output to.width
- The width of the video being produced.height
- The height of the video being produced.fps
- The frames per second of the video being produced.Method Detail |
---|
public void startRecording() throws com.googlecode.javacv.FrameRecorder.Exception
com.googlecode.javacv.FrameRecorder.Exception
- Exceptions may be thrown from trying to start the recorder.public void frameAvailable() throws com.googlecode.javacv.FrameRecorder.Exception
com.googlecode.javacv.FrameRecorder.Exception
- Exceptions may be thrown from trying to record a framepublic void stopRecording() throws com.googlecode.javacv.FrameRecorder.Exception
com.googlecode.javacv.FrameRecorder.Exception
- Exceptions may be thrown from trying to stop the recordingpublic int getWidth()
public int getHeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |