public class AndroidFrameGrab
extends org.jcodec.api.FrameGrab
| Constructor and Description |
|---|
AndroidFrameGrab(org.jcodec.common.SeekableDemuxerTrack videoTrack,
org.jcodec.api.specific.ContainerAdaptor decoder) |
| Modifier and Type | Method and Description |
|---|---|
static AndroidFrameGrab |
createAndroidFrameGrab(org.jcodec.common.io.SeekableByteChannel in) |
android.graphics.Bitmap |
getFrame()
Get frame at current position in AWT image
|
void |
getFrame(android.graphics.Bitmap bmp)
Get frame at current position in AWT image
|
static android.graphics.Bitmap |
getFrame(File file,
double second)
Get frame at a specified second as AWT image
|
static android.graphics.Bitmap |
getFrame(File file,
int frameNumber)
Get frame at a specified frame number as AWT image
|
static android.graphics.Bitmap |
getFrame(org.jcodec.common.io.SeekableByteChannel file,
double second)
Get frame at a specified second as AWT image
|
static android.graphics.Bitmap |
getFrame(org.jcodec.common.io.SeekableByteChannel file,
int frameNumber)
Get frame at a specified frame number as AWT image
|
static android.graphics.Bitmap |
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 android.graphics.Bitmap |
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 android.graphics.Bitmap |
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 android.graphics.Bitmap |
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.
|
BitmapWithMetadata |
getFrameWithMetadata()
Get frame at current position in AWT image
|
BitmapWithMetadata |
getFrameWithMetadata(android.graphics.Bitmap bmp)
Get frame at current position in AWT image
|
createFrameGrab, getDecoder, getFrameAtSec, getFrameFromChannel, getFrameFromChannelAtSec, getFrameFromFile, getMediaInfo, getNativeFrame, getNativeFrameAtFrame, getNativeFrameAtSec, getNativeFrameAtSecSloppy, getNativeFrameSloppy, getNativeFrameWithMetadata, getVideoTrack, seekToFramePrecise, seekToFrameSloppy, seekToSecondPrecise, seekToSecondSloppypublic AndroidFrameGrab(org.jcodec.common.SeekableDemuxerTrack videoTrack,
org.jcodec.api.specific.ContainerAdaptor decoder)
public static AndroidFrameGrab createAndroidFrameGrab(org.jcodec.common.io.SeekableByteChannel in) throws IOException, org.jcodec.api.JCodecException
IOExceptionorg.jcodec.api.JCodecExceptionpublic static android.graphics.Bitmap getFrame(File file, double second) throws IOException, org.jcodec.api.JCodecException
file - second - IOExceptionorg.jcodec.api.JCodecExceptionpublic static android.graphics.Bitmap getFrame(org.jcodec.common.io.SeekableByteChannel file,
double second)
throws org.jcodec.api.JCodecException,
IOException
file - second - org.jcodec.api.UnsupportedFormatExceptionIOExceptionorg.jcodec.api.JCodecExceptionpublic BitmapWithMetadata getFrameWithMetadata() throws IOException
IOExceptionpublic android.graphics.Bitmap getFrame()
throws IOException
IOExceptionpublic void getFrame(android.graphics.Bitmap bmp)
throws IOException
IOExceptionpublic BitmapWithMetadata getFrameWithMetadata(android.graphics.Bitmap bmp) throws IOException
IOExceptionpublic static android.graphics.Bitmap getFrame(File file, int frameNumber) throws IOException, org.jcodec.api.JCodecException
file - second - IOExceptionorg.jcodec.api.JCodecExceptionpublic static android.graphics.Bitmap getFrame(org.jcodec.common.io.SeekableByteChannel file,
int frameNumber)
throws org.jcodec.api.JCodecException,
IOException
file - second - IOExceptionorg.jcodec.api.JCodecExceptionpublic static android.graphics.Bitmap 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 android.graphics.Bitmap 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 android.graphics.Bitmap 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 android.graphics.Bitmap 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.