|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.fmj.media.AbstractControls
net.sf.fmj.media.AbstractPlugIn
net.sf.fmj.media.AbstractCodec
net.java.sip.communicator.impl.neomedia.codec.video.h264.JNIDecoder
public class JNIDecoder
Decodes H.264 NAL units and returns the resulting frames as FFmpeg AVFrames (i.e. in YUV format).
| Field Summary |
|---|
| Fields inherited from class net.sf.fmj.media.AbstractCodec |
|---|
inputFormat, inputFormats, opened, outputFormat |
| Fields inherited from interface javax.media.PlugIn |
|---|
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED |
| Constructor Summary | |
|---|---|
JNIDecoder()
Initializes a new JNIDecoder instance which is to decode H.264 NAL units into frames in YUV format. |
|
| Method Summary | |
|---|---|
boolean |
checkFormat(javax.media.Format format)
Check Format. |
void |
close()
Close Codec. |
protected javax.media.Format[] |
getMatchingOutputFormats(javax.media.Format in)
Get matching outputs for a specified input Format. |
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 inBuffer,
javax.media.Buffer outBuffer)
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. |
| Methods inherited from class net.sf.fmj.media.AbstractCodec |
|---|
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM, setOutputFormat |
| Methods inherited from class net.sf.fmj.media.AbstractPlugIn |
|---|
reset |
| Methods inherited from class net.sf.fmj.media.AbstractControls |
|---|
addControl, getControl, getControls, removeControl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.PlugIn |
|---|
reset |
| Methods inherited from interface javax.media.Controls |
|---|
getControl, getControls |
| Constructor Detail |
|---|
public JNIDecoder()
| Method Detail |
|---|
public boolean checkFormat(javax.media.Format format)
format - Format to check
public void close()
close in interface javax.media.PlugInclose in class net.sf.fmj.media.AbstractPlugInprotected javax.media.Format[] getMatchingOutputFormats(javax.media.Format in)
in - input Format
public String getName()
getName in interface javax.media.PlugIngetName in class net.sf.fmj.media.AbstractPlugInpublic javax.media.Format[] getSupportedOutputFormats(javax.media.Format inputFormat)
getSupportedOutputFormats in interface javax.media.CodecgetSupportedOutputFormats in class net.sf.fmj.media.AbstractCodecinputFormat - input Format to determine corresponding
output Format/tt>s
public void open()
throws javax.media.ResourceUnavailableException
open in interface javax.media.PlugInopen in class net.sf.fmj.media.AbstractPlugInjavax.media.ResourceUnavailableException - if codec initialization failed
public int process(javax.media.Buffer inBuffer,
javax.media.Buffer outBuffer)
process in interface javax.media.Codecprocess in class net.sf.fmj.media.AbstractCodecinBuffer - input BufferoutBuffer - output Buffer
public javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat in interface javax.media.CodecsetInputFormat in class net.sf.fmj.media.AbstractCodecformat - the Format of the media data to be input for
processing in this Codec
public 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. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||