| Modifier and Type | Method and Description |
|---|---|
MediaPacket |
Muxer.addImage(VideoFrame frame) |
MediaPacket[] |
Muxer.addSamples(AudioFrame frame) |
void |
Muxer.close() |
AudioFrame |
Decoder.decodeAudio(MediaPacket mediaPacket)
Decode a media packet with audio samples into an
AudioFrame. |
VideoFrame |
Decoder.decodeVideo(MediaPacket mediaPacket)
Decode a media packet with video frame data into a
VideoFrame. |
MediaPacket[] |
Encoder.encodeAudio(AudioFrame audioFrame) |
MediaPacket |
Encoder.encodeVideo(VideoFrame frame) |
MediaPacket |
Encoder.flushAudio() |
MediaPacket |
Encoder.flushVideo() |
static Codec |
Codec.getDecoderById(CodecID codecId)
Create a new decoder with specified codec id.
|
static Codec |
Codec.getDecoderByName(String avCodecName)
Create a new decoder with specified codec name.
|
static Codec |
Codec.getEncoderById(CodecID codecId)
Create a new encoder with specified codec id.
|
static Codec |
Codec.getEncoderByName(String avCodecName)
Create a new encoder with specified codec name.
|
BufferedImage |
Camera.getImage()
Retrieve one picture from this camera.
|
void |
AudioResampler.open(AudioFormat srcFormat,
AudioFormat dstFormat,
int frameSamples)
Initializes the
AudioResampler with specified input and output audio formats. |
void |
Camera.open(int width,
int height,
double frameRate)
Open the camera with specified image size and capture frame rate.
|
void |
Encoder.open(Map<String,String> options) |
void |
Decoder.open(Map<String,String> options) |
void |
Coder.open(Map<String,String> options)
Initializes the
Coder with codec options that may contain specific
codec parameters. |
void |
PictureResampler.open(PictureFormat srcFormat,
PictureFormat dstFormat) |
void |
Demuxer.open(String inputPath) |
MediaFrame |
Demuxer.readFrame() |
void |
Encoder.setChannels(int channels) |
void |
Configurable.setFlag(CodecFlag flag)
Set a codec flag.
|
void |
Encoder.setFramerate(double framerate) |
void |
Configurable.setFramerate(double framerate)
Set new frame rate.
|
void |
Encoder.setGOPSize(int gopSize) |
void |
Configurable.setGOPSize(int size)
Set group of pictures.
|
void |
Encoder.setImageHeight(int height) |
void |
Configurable.setImageHeight(int height)
Set new image height.
|
void |
Encoder.setImageWidth(int width) |
void |
Configurable.setImageWidth(int width)
Set new image width.
|
void |
Encoder.setPixelFormat(PixelFormat format) |
void |
Configurable.setPixelFormat(PixelFormat pixelFormat)
Set new pixel format.
|
void |
Encoder.setSampleFormat(SampleFormat format) |
void |
Configurable.setSampleFormat(SampleFormat sampleFormat)
Set new sample format.
|
void |
Encoder.setSampleRate(int samplerate) |
| Constructor and Description |
|---|
Decoder(CodecID codecId)
Create new
Decoder that decodes media with codec with specified CodecID. |
Encoder(Codec codec) |
Encoder(CodecID codecId) |
Copyright © 2013. All Rights Reserved.