|
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.JNIEncoder
public class JNIEncoder
Implements a H.264 encoder.
| Field Summary | |
|---|---|
static String |
BASELINE_PROFILE
The name of the baseline H.264 (encoding) profile. |
static String |
DEFAULT_DEFAULT_PROFILE
The default value of the DEFAULT_PROFILE_PNAME
ConfigurationService property. |
(package private) static int |
DEFAULT_FRAME_RATE
The frame rate to be assumed by JNIEncoder instance in the absence of any other frame rate indication. |
static String |
DEFAULT_PROFILE_PNAME
The name of the ConfigurationService property which specifies the H.264 (encoding) profile to be used in the absence of negotiation. |
(package private) static int |
IFRAME_INTERVAL
Key frame every 150 frames. |
static String |
MAIN_PROFILE
The name of the main H.264 (encoding) profile. |
static String |
PACKETIZATION_MODE_FMTP
The name of the format parameter which specifies the packetization mode of H.264 RTP payload. |
(package private) static javax.media.Format[] |
SUPPORTED_OUTPUT_FORMATS
The list of Formats supported by JNIEncoder instances as output. |
| 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 | |
|---|---|
JNIEncoder()
Initializes a new JNIEncoder instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this Codec. |
void |
feedbackReceived(RTCPFeedbackEvent event)
Event fired when RTCP feedback message is received. |
String |
getName()
Gets the name of this Codec. |
javax.media.Format[] |
getSupportedOutputFormats(javax.media.Format in)
Returns the list of formats supported at the output. |
void |
open()
Opens this Codec. |
int |
process(javax.media.Buffer inBuffer,
javax.media.Buffer outBuffer)
Processes/encodes a buffer. |
void |
setAdditionalCodecSettings(Map<String,String> settings)
Sets additional settings for the codec. |
javax.media.Format |
setInputFormat(javax.media.Format in)
Sets the input format. |
void |
setKeyFrameControl(KeyFrameControl keyFrameControl)
Sets the KeyFrameControl to be used by this JNIEncoder as a means of control over its key frame-related logic. |
javax.media.Format |
setOutputFormat(javax.media.Format out)
Sets the Format in which this Codec is to output media data. |
void |
setPacketizationMode(String packetizationMode)
Sets the packetization mode to be used for the H.264 RTP payload output by this JNIEncoder and the associated packetizer. |
| Methods inherited from class net.sf.fmj.media.AbstractCodec |
|---|
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM |
| 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 |
| Field Detail |
|---|
public static final String BASELINE_PROFILE
static final int DEFAULT_FRAME_RATE
public static final String DEFAULT_PROFILE_PNAME
static final int IFRAME_INTERVAL
public static final String MAIN_PROFILE
public static final String DEFAULT_DEFAULT_PROFILE
DEFAULT_PROFILE_PNAME
ConfigurationService property.
public static final String PACKETIZATION_MODE_FMTP
static final javax.media.Format[] SUPPORTED_OUTPUT_FORMATS
| Constructor Detail |
|---|
public JNIEncoder()
| Method Detail |
|---|
public void close()
close in interface javax.media.PlugInclose in class net.sf.fmj.media.AbstractPlugInpublic void feedbackReceived(RTCPFeedbackEvent event)
feedbackReceived in interface RTCPFeedbackListenerevent - RTCPFeedbackEventpublic String getName()
getName in interface javax.media.PlugIngetName in class net.sf.fmj.media.AbstractPlugInpublic javax.media.Format[] getSupportedOutputFormats(javax.media.Format in)
getSupportedOutputFormats in interface javax.media.CodecgetSupportedOutputFormats in class net.sf.fmj.media.AbstractCodecin - input Format to determine corresponding output
Formats
public void open()
throws javax.media.ResourceUnavailableException
open in interface javax.media.PlugInopen in class net.sf.fmj.media.AbstractPlugInjavax.media.ResourceUnavailableException
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 in)
setInputFormat in interface javax.media.CodecsetInputFormat in class net.sf.fmj.media.AbstractCodecin - format to set
public void setKeyFrameControl(KeyFrameControl keyFrameControl)
keyFrameControl - the KeyFrameControl to be used by this
JNIEncoder as a means of control over its key frame-related
logicpublic javax.media.Format setOutputFormat(javax.media.Format out)
setOutputFormat in interface javax.media.CodecsetOutputFormat in class net.sf.fmj.media.AbstractCodecout - the Format in which this Codec is to
output media data
public void setPacketizationMode(String packetizationMode)
packetizationMode - the packetization mode to be used for the H.264
RTP payload output by this JNIEncoder and the associated
packetizerpublic void setAdditionalCodecSettings(Map<String,String> settings)
settings - additional settings
|
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 | |||||||||