public class AWTFrameGrab
extends org.jcodec.api.FrameGrab
| Constructor and Description |
|---|
AWTFrameGrab(org.jcodec.common.SeekableDemuxerTrack videoTrack,
org.jcodec.api.specific.ContainerAdaptor decoder) |
| Modifier and Type | Method and Description |
|---|---|
static AWTFrameGrab |
createAWTFrameGrab(org.jcodec.common.io.SeekableByteChannel _in) |
BufferedImage |
getFrame()
Get frame at current position in AWT image
|
static BufferedImage |
getFrame(File file,
double second)
Get frame at a specified second as AWT image
|
static BufferedImage |
getFrame(File file,
int frameNumber)
Get frame at a specified frame number as AWT image
|
static BufferedImage |
getFrame(org.jcodec.common.io.SeekableByteChannel file,
double second)
Get frame at a specified second as AWT image
|
static BufferedImage |
getFrame(org.jcodec.common.io.SeekableByteChannel file,
int frameNumber)
Get frame at a specified frame number as AWT image
|
static BufferedImage |
getFrame(org.jcodec.common.SeekableDemuxerTrack vt,
org.jcodec.api.specific.ContainerAdaptor decoder,
double second)
Get a specified frame by second from an already open demuxer track
|
static BufferedImage |
getFrame(org.jcodec.common.SeekableDemuxerTrack vt,
org.jcodec.api.specific.ContainerAdaptor decoder,
int frameNumber)
Get a specified frame by number from an already open demuxer track
|
static BufferedImage |
getFrameSloppy(org.jcodec.common.SeekableDemuxerTrack vt,
org.jcodec.api.specific.ContainerAdaptor decoder,
double second)
Get a specified frame by second from an already open demuxer track (
sloppy mode, i.e.
|
static BufferedImage |
getFrameSloppy(org.jcodec.common.SeekableDemuxerTrack vt,
org.jcodec.api.specific.ContainerAdaptor decoder,
int frameNumber)
Get a specified frame by number from an already open demuxer track (
sloppy mode, i.e.
|
BufferedImage |
getFrameWithOrientation() |
createFrameGrab, getDecoder, getFrameAtSec, getFrameFromChannel, getFrameFromChannelAtSec, getFrameFromFile, getMediaInfo, getNativeFrame, getNativeFrameAtFrame, getNativeFrameAtSec, getNativeFrameAtSecSloppy, getNativeFrameSloppy, getNativeFrameWithMetadata, getVideoTrack, seekToFramePrecise, seekToFrameSloppy, seekToSecondPrecise, seekToSecondSloppypublic AWTFrameGrab(org.jcodec.common.SeekableDemuxerTrack videoTrack,
org.jcodec.api.specific.ContainerAdaptor decoder)
public static AWTFrameGrab createAWTFrameGrab(org.jcodec.common.io.SeekableByteChannel _in) throws IOException, org.jcodec.api.JCodecException
IOExceptionorg.jcodec.api.JCodecExceptionpublic static BufferedImage getFrame(File file, double second) throws IOException, org.jcodec.api.JCodecException
file - second - IOExceptionorg.jcodec.api.JCodecExceptionpublic static BufferedImage getFrame(org.jcodec.common.io.SeekableByteChannel file, double second) throws org.jcodec.api.JCodecException, IOException
file - second - org.jcodec.api.UnsupportedFormatExceptionIOExceptionorg.jcodec.api.JCodecExceptionpublic BufferedImage getFrame() throws IOException
IOExceptionpublic BufferedImage getFrameWithOrientation() throws IOException
IOExceptionpublic static BufferedImage getFrame(File file, int frameNumber) throws IOException, org.jcodec.api.JCodecException
file - second - IOExceptionorg.jcodec.api.JCodecExceptionpublic static BufferedImage getFrame(org.jcodec.common.io.SeekableByteChannel file, int frameNumber) throws org.jcodec.api.JCodecException, IOException
file - second - IOExceptionorg.jcodec.api.JCodecExceptionpublic static BufferedImage getFrame(org.jcodec.common.SeekableDemuxerTrack vt, org.jcodec.api.specific.ContainerAdaptor decoder, int frameNumber) throws IOException, org.jcodec.api.JCodecException
vt - decoder - frameNumber - IOExceptionorg.jcodec.api.JCodecExceptionpublic static BufferedImage getFrame(org.jcodec.common.SeekableDemuxerTrack vt, org.jcodec.api.specific.ContainerAdaptor decoder, double second) throws IOException, org.jcodec.api.JCodecException
vt - decoder - frameNumber - IOExceptionorg.jcodec.api.JCodecExceptionpublic static BufferedImage getFrameSloppy(org.jcodec.common.SeekableDemuxerTrack vt, org.jcodec.api.specific.ContainerAdaptor decoder, int frameNumber) throws IOException, org.jcodec.api.JCodecException
vt - decoder - frameNumber - IOExceptionorg.jcodec.api.JCodecExceptionpublic static BufferedImage getFrameSloppy(org.jcodec.common.SeekableDemuxerTrack vt, org.jcodec.api.specific.ContainerAdaptor decoder, double second) throws IOException, org.jcodec.api.JCodecException
vt - decoder - frameNumber - IOExceptionorg.jcodec.api.JCodecExceptionCopyright © 2019. All rights reserved.