public class JNIDecoder
extends net.sf.fmj.media.AbstractCodec
Constructor and Description |
---|
JNIDecoder()
Initializes a new JNIDecoder instance which is to decode H.264
NAL units into frames in YUV format.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkFormat(javax.media.Format format)
Check Format.
|
void |
close()
Close Codec.
|
protected javax.media.Format[] |
getMatchingOutputFormats(javax.media.Format inputFormat)
Get matching outputs for a specified input Format.
|
java.lang.String |
getName()
Get plugin name.
|
javax.media.Format[] |
getSupportedOutputFormats(javax.media.Format inputFormat)
Get all supported output Formats.
|
void |
open()
Inits the codec instances.
|
int |
process(javax.media.Buffer in,
javax.media.Buffer out)
Decodes H.264 media data read from a specific input Buffer into
a specific output Buffer.
|
javax.media.Format |
setInputFormat(javax.media.Format format)
Sets the Format of the media data to be input for processing in
this Codec.
|
void |
setKeyFrameControl(KeyFrameControl keyFrameControl)
Sets the KeyFrameControl to be used by this
DePacketizer as a means of control over its key frame-related
logic.
|
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM, setOutputFormat
addControl, getControl, getControls, removeControl
public JNIDecoder()
public boolean checkFormat(javax.media.Format format)
format
- Format to checkpublic void close()
close
in interface javax.media.PlugIn
close
in class net.sf.fmj.media.AbstractPlugIn
protected javax.media.Format[] getMatchingOutputFormats(javax.media.Format inputFormat)
inputFormat
- input Formatpublic java.lang.String getName()
getName
in interface javax.media.PlugIn
getName
in class net.sf.fmj.media.AbstractPlugIn
public javax.media.Format[] getSupportedOutputFormats(javax.media.Format inputFormat)
getSupportedOutputFormats
in interface javax.media.Codec
getSupportedOutputFormats
in class net.sf.fmj.media.AbstractCodec
inputFormat
- input Format to determine corresponding
output Format/tt>spublic void open() throws javax.media.ResourceUnavailableException
open
in interface javax.media.PlugIn
open
in class net.sf.fmj.media.AbstractPlugIn
javax.media.ResourceUnavailableException
- if codec initialization failedpublic int process(javax.media.Buffer in, javax.media.Buffer out)
process
in interface javax.media.Codec
process
in class net.sf.fmj.media.AbstractCodec
in
- input Bufferout
- output Bufferpublic javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat
in interface javax.media.Codec
setInputFormat
in class net.sf.fmj.media.AbstractCodec
format
- the Format of the media data to be input for
processing in this Codecpublic void setKeyFrameControl(KeyFrameControl keyFrameControl)
keyFrameControl
- the KeyFrameControl to be used by this
DePacketizer as a means of control over its key frame-related
logic
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.