| Modifier and Type | Field and Description |
|---|---|
protected int |
audioChannels
The number of audio channels for audio encoder.
|
protected int |
bitrate
The bitrate for audio and video encoder.
|
protected List<CodecFlag> |
flags
List of codec flags for audio and video encoder.
|
protected double |
frameRate
The framerate for video encoder.
|
protected int |
gopSize
The group of pictures for video encoder.
|
protected int |
imageHeight
The image height for video encoder.
|
protected int |
imageWidth
The image width for video encoder.
|
protected MediaType |
mediaType
The media type, e.g. audio, video, etc.
|
protected PixelFormat |
pixelFormat
The pixel format for video encoder.
|
protected int |
profile
The profile for audio and video encoder.
|
protected double |
quality
The audio and video quality for encoder.
|
protected SampleFormat |
sampleFormat
The sample format for audio encoder.
|
protected int |
sampleRate
The sample rate for audio encoder.
|
| Constructor and Description |
|---|
Configurable() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAudioChannels()
Get audio channels.
|
int |
getBitrate()
Get bitrate.
|
double |
getFramerate()
Get the frame rate.
|
int |
getGOPSize()
Get group of pictures.
|
int |
getImageHeight()
Get the image height.
|
int |
getImageWidth()
Get the image width.
|
MediaType |
getMediaType()
Get the media type, audio, video, etc.
|
PixelFormat |
getPixelFormat()
Get pixel format.
|
int |
getProfile()
Get profile.
|
double |
getQuality()
Get quality.
|
SampleFormat |
getSampleFormat()
Get sample format.
|
int |
getSampleRate()
Get sample rate.
|
void |
setAudioChannels(int channels)
Set new audio channels.
|
void |
setBitrate(int bitrate)
Set new bitrate.
|
void |
setFlag(CodecFlag flag)
Set a codec flag.
|
void |
setFramerate(double framerate)
Set new frame rate.
|
void |
setGOPSize(int size)
Set group of pictures.
|
void |
setImageHeight(int height)
Set new image height.
|
void |
setImageWidth(int width)
Set new image width.
|
void |
setMediaType(MediaType type)
Set new media type, audio, video, etc.
|
void |
setPixelFormat(PixelFormat pixelFormat)
Set new pixel format.
|
void |
setProfile(int profile)
Set new profile.
|
void |
setQuality(double quality)
Set new quality.
|
void |
setSampleFormat(SampleFormat sampleFormat)
Set new sample format.
|
void |
setSamplerate(int samplerate)
Set new sample rate.
|
protected MediaType mediaType
protected PixelFormat pixelFormat
protected SampleFormat sampleFormat
protected int imageWidth
protected int imageHeight
protected int gopSize
protected int audioChannels
protected int sampleRate
protected int bitrate
protected int profile
protected double frameRate
protected double quality
public MediaType getMediaType()
public void setMediaType(MediaType type)
type - the media type to set.public void setImageWidth(int width)
throws JavaAVException
width - new image width.JavaAVExceptionpublic int getImageWidth()
public void setImageHeight(int height)
throws JavaAVException
height - new image height.JavaAVExceptionpublic int getImageHeight()
public void setGOPSize(int size)
throws JavaAVException
size - group of pictures.JavaAVException - if group of pictures could not be set.public int getGOPSize()
public void setPixelFormat(PixelFormat pixelFormat) throws JavaAVException
pixelFormat - pixel format.JavaAVException - if pixel format could not be set.public PixelFormat getPixelFormat()
public void setSampleFormat(SampleFormat sampleFormat) throws JavaAVException
sampleFormat - sample format.JavaAVException - if sample format could not be set.public SampleFormat getSampleFormat()
public void setBitrate(int bitrate)
bitrate - bitrate.public int getBitrate()
public void setFramerate(double framerate)
throws JavaAVException
framerate - new frame rate.JavaAVExceptionpublic double getFramerate()
public void setSamplerate(int samplerate)
samplerate - sample rate.public int getSampleRate()
public void setAudioChannels(int channels)
channels - audio channels.public int getAudioChannels()
public void setQuality(double quality)
quality - new quality.public double getQuality()
public void setProfile(int profile)
profile - new profile.public int getProfile()
public void setFlag(CodecFlag flag) throws JavaAVException
flag - codec flag.JavaAVException - if flag is null.Copyright © 2013. All Rights Reserved.