Methods Summary |
---|
public static java.util.List | getAudioEncoders()Returns the capabilities of the supported audio encoders.
int nEncoders = native_get_num_audio_encoders();
if (nEncoders == 0) return null;
List<AudioEncoderCap> encoderList = new ArrayList<AudioEncoderCap>();
for (int i = 0; i < nEncoders; ++i) {
encoderList.add(native_get_audio_encoder_cap(i));
}
return encoderList;
|
public static int[] | getOutputFileFormats()Returns the array of supported output file formats.
System.loadLibrary("media_jni");
native_init();
int nFormats = native_get_num_file_formats();
if (nFormats == 0) return null;
int[] formats = new int[nFormats];
for (int i = 0; i < nFormats; ++i) {
formats[i] = native_get_file_format(i);
}
return formats;
|
public static java.util.List | getVideoEncoders()Returns the capabilities of the supported video encoders.
int nEncoders = native_get_num_video_encoders();
if (nEncoders == 0) return null;
List<VideoEncoderCap> encoderList = new ArrayList<VideoEncoderCap>();
for (int i = 0; i < nEncoders; ++i) {
encoderList.add(native_get_video_encoder_cap(i));
}
return encoderList;
|
private static final native android.media.EncoderCapabilities$AudioEncoderCap | native_get_audio_encoder_cap(int index)
|
private static final native int | native_get_file_format(int index)
|
private static final native int | native_get_num_audio_encoders()
|
private static final native int | native_get_num_file_formats()
|
private static final native int | native_get_num_video_encoders()
|
private static final native android.media.EncoderCapabilities$VideoEncoderCap | native_get_video_encoder_cap(int index)
|
private static final native void | native_init()
|