public abstract class OrdFrameGrabber
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.io.InputStream |
m_in |
Constructor and Description |
---|
OrdFrameGrabber(java.io.InputStream in)
Creates an OrdFrameGrabber object that decodes video frames from the specified FSDataInputStream.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Close the OrdFrameGrabber object, releasing any resources being used.
|
abstract double |
getTotalDuration()
Returns the duration of the video that the OrdFrameGrabber object decodes.
|
abstract java.awt.image.BufferedImage |
nextFrame()
Returns next frame data that the OrdFrameGrabber object decodes from the video at the time set by the seekToSecond method.
|
abstract double |
seekToSecond(double second)
Seek to the time at which the next frame decoding operation will occur.
|
public OrdFrameGrabber(java.io.InputStream in)
in
- the FSDataInputStream from which data will be read.public abstract java.awt.image.BufferedImage nextFrame() throws java.io.IOException
java.io.IOException
- if a decoding error occurs.public abstract double seekToSecond(double second) throws java.io.IOException
second
- the time at which the next frame decoding operation will occur.java.io.IOException
- if an error occurs during the seekpublic abstract double getTotalDuration()
public abstract void close()
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.