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, seekToSecondSloppy
public 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
IOException
org.jcodec.api.JCodecException
public static BufferedImage getFrame(File file, double second) throws IOException, org.jcodec.api.JCodecException
file
- second
- IOException
org.jcodec.api.JCodecException
public static BufferedImage getFrame(org.jcodec.common.io.SeekableByteChannel file, double second) throws org.jcodec.api.JCodecException, IOException
file
- second
- org.jcodec.api.UnsupportedFormatException
IOException
org.jcodec.api.JCodecException
public BufferedImage getFrame() throws IOException
IOException
public BufferedImage getFrameWithOrientation() throws IOException
IOException
public static BufferedImage getFrame(File file, int frameNumber) throws IOException, org.jcodec.api.JCodecException
file
- second
- IOException
org.jcodec.api.JCodecException
public static BufferedImage getFrame(org.jcodec.common.io.SeekableByteChannel file, int frameNumber) throws org.jcodec.api.JCodecException, IOException
file
- second
- IOException
org.jcodec.api.JCodecException
public 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
- IOException
org.jcodec.api.JCodecException
public 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
- IOException
org.jcodec.api.JCodecException
public 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
- IOException
org.jcodec.api.JCodecException
public 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
- IOException
org.jcodec.api.JCodecException
Copyright © 2019. All rights reserved.