public abstract class OrdFrameGrabber
extends java.lang.Object
The OrdFrameGrabber object is contructed with org.apache.hadoop.fs.FSDataInputStream object.
The video frame is returned as a java.awt.image.BufferedImage object.
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.fs.FSDataInputStream |
m_in |
| Constructor and Description |
|---|
OrdFrameGrabber(org.apache.hadoop.fs.FSDataInputStream 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(org.apache.hadoop.fs.FSDataInputStream 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 a seeking error occurs.public abstract double getTotalDuration()
public abstract void close()
Copyright � 2015, Oracle and/or its affiliates. All rights reserved.