public class JNIEncoder extends net.sf.fmj.media.AbstractCodec implements RTCPFeedbackMessageListener
| Modifier and Type | Field and Description |
|---|---|
static String[] |
AVAILABLE_PRESETS
The available presets we can use with the encoder.
|
static String |
BASELINE_PROFILE
The name of the baseline H.264 (encoding) profile.
|
static boolean |
DEFAULT_DEFAULT_INTRA_REFRESH
The default value of the
DEFAULT_INTRA_REFRESH_PNAME
ConfigurationService property. |
static String |
DEFAULT_DEFAULT_PROFILE
The default value of the
DEFAULT_PROFILE_PNAME
ConfigurationService property. |
static int |
DEFAULT_FRAME_RATE
The frame rate to be assumed by JNIEncoder instances in the
absence of any other frame rate indication.
|
static String |
DEFAULT_INTRA_REFRESH_PNAME
The name of the boolean ConfigurationService property which
specifies whether Periodic Intra Refresh is to be used by default.
|
static int |
DEFAULT_KEYINT
The default maximum GOP (group of pictures) size i.e.
|
static String |
DEFAULT_PRESET
The default value of the
PRESET_PNAME
ConfigurationService property. |
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.
|
static String |
HIGH_PROFILE
The name of the high H.264 (encoding) profile.
|
static String |
KEYINT_PNAME
The name of the integer ConfigurationService property which
specifies the maximum GOP (group of pictures) size i.e.
|
static String |
MAIN_PROFILE
The name of the main H.264 (encoding) profile.
|
static String |
PRESET_PNAME
The name of the ConfigurationService property which specifies
the x264 preset to be used by JNIEncoder.
|
static int |
X264_KEYINT_MAX_INFINITE |
static int |
X264_KEYINT_MIN_AUTO |
| Constructor and Description |
|---|
JNIEncoder()
Initializes a new JNIEncoder instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this Codec.
|
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 |
rtcpFeedbackMessageReceived(RTCPFeedbackMessageEvent ev)
Notifies this RTCPFeedbackListener that an RTCP feedback message
has been received
|
void |
setAdditionalCodecSettings(Map<String,String> additionalCodecSettings)
Sets additional settings on this Codec.
|
javax.media.Format |
setInputFormat(javax.media.Format format)
Sets the Format of the media data to be input to this
Codec.
|
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 format)
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.
|
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOMaddControl, getControl, getControls, removeControlpublic static final String[] AVAILABLE_PRESETS
public static final String BASELINE_PROFILE
public static final boolean DEFAULT_DEFAULT_INTRA_REFRESH
DEFAULT_INTRA_REFRESH_PNAME
ConfigurationService property.public static final String MAIN_PROFILE
public static final String DEFAULT_DEFAULT_PROFILE
DEFAULT_PROFILE_PNAME
ConfigurationService property.public static final int DEFAULT_FRAME_RATE
public static final String DEFAULT_INTRA_REFRESH_PNAME
setAdditionalCodecSettings(Map).public static final int DEFAULT_KEYINT
public static final String DEFAULT_PRESET
PRESET_PNAME
ConfigurationService property.public static final String DEFAULT_PROFILE_PNAME
public static final String HIGH_PROFILE
public static final String KEYINT_PNAME
public static final String PRESET_PNAME
public static final int X264_KEYINT_MAX_INFINITE
public static final int X264_KEYINT_MIN_AUTO
public void close()
close in interface javax.media.PlugInclose in class net.sf.fmj.media.AbstractPlugInpublic 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
Formatspublic void open()
throws javax.media.ResourceUnavailableException
open in interface javax.media.PlugInopen in class net.sf.fmj.media.AbstractPlugInjavax.media.ResourceUnavailableExceptionpublic 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 bufferpublic void rtcpFeedbackMessageReceived(RTCPFeedbackMessageEvent ev)
rtcpFeedbackMessageReceived in interface RTCPFeedbackMessageListenerev - an RTCPFeedbackMessageEvent which specifies the
details of the notification event such as the feedback message type and
the payload typepublic void setAdditionalCodecSettings(Map<String,String> additionalCodecSettings)
additionalCodecSettings - the additional settings to be set on this
Codecpublic javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat in interface javax.media.CodecsetInputFormat in class net.sf.fmj.media.AbstractCodecformat - the Format of media data to set on this
Codecpublic 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 format)
setOutputFormat in interface javax.media.CodecsetOutputFormat in class net.sf.fmj.media.AbstractCodecformat - the Format in which this Codec is to
output media datapublic void setPacketizationMode(String packetizationMode)
packetizationMode - the packetization mode to be used for the H.264
RTP payload output by this JNIEncoder and the associated
packetizerCopyright © 2022 jitsi.org. All rights reserved.