|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.smaxe.uv.media.VideoFrameFactory
public final class VideoFrameFactory
VideoFrameFactory
- VideoFrame
factory.
Method Summary | |
---|---|
static VideoFrame |
clone(VideoFrame frame)
Clones frame . |
static void |
save(java.io.File file,
java.lang.String format,
VideoFrame frame)
Saves frame to the file. |
static void |
saveAsJpg(java.io.File file,
VideoFrame frame)
Saves frame to the JPG file. |
static void |
saveAsPng(java.io.File file,
VideoFrame frame)
Saves frame to the PNG file. |
static java.awt.image.BufferedImage |
toBufferedImage(VideoFrame frame)
Converts frame to the BufferedImage . |
static VideoFrame |
toVideoFrame(java.awt.image.BufferedImage image)
Converts image to the frame . |
static void |
write(java.io.OutputStream os,
java.lang.String format,
VideoFrame frame)
Writes frame to the os . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static VideoFrame clone(VideoFrame frame)
frame
.
Note:
- The method creates a frame.rgb copy.
frame
- frame to clone
public static java.awt.image.BufferedImage toBufferedImage(VideoFrame frame)
frame
to the BufferedImage
.
frame
-
public static VideoFrame toVideoFrame(java.awt.image.BufferedImage image)
image
to the frame
.
image
-
public static void write(java.io.OutputStream os, java.lang.String format, VideoFrame frame) throws java.io.IOException
frame
to the os
.
os
- format
- output file formatframe
- video frame
java.io.IOException
- if an I/O exception occurredpublic static void save(java.io.File file, java.lang.String format, VideoFrame frame) throws java.io.IOException
frame
to the file.
file
- output fileformat
- output file formatframe
- video frame
java.io.IOException
- if an I/O exception occurredpublic static void saveAsJpg(java.io.File file, VideoFrame frame) throws java.io.IOException
frame
to the JPG file.
file
- output fileframe
- video frame
java.io.IOException
- if an I/O exception occurredpublic static void saveAsPng(java.io.File file, VideoFrame frame) throws java.io.IOException
frame
to the PNG file.
file
- output fileframe
- video frame
java.io.IOException
- if an I/O exception occurred
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |