|
int | ff_open_stream (JNIEnv *env, AVStream *stream, AVCodecContext **context) |
| Opens the given stream, i.e. More...
|
|
void | throwUnsupportedAudioFileExceptionIfError (JNIEnv *env, int err, const char *message) |
| Throws an UnsupportedAudioFileException. More...
|
|
void | throwIndexOutOfBoundsExceptionIfError (JNIEnv *env, int err, int index) |
| Throws an IndexOutOfBoundsException. More...
|
|
void | throwIOExceptionIfError (JNIEnv *env, int err, const char *message) |
| Throws an IOException. More...
|
|
void | throwFileNotFoundExceptionIfError (JNIEnv *env, int err, const char *message) |
| Throws an IllegalArgumentException. More...
|
|
void | logWarning (FFAudioIO *aio, int err, const char *message) |
| Log a warning. More...
|
|
void | logFine (FFAudioIO *aio, int err, const char *message) |
| Log a debug message. More...
|
|
int | ff_open_format_context (JNIEnv *env, AVFormatContext **format_context, const char *url) |
| Opens the input file/url and allocates a AVFormatContext for it, but does not open the audio stream with an appropriate decoder. More...
|
|
int | ff_open_file (JNIEnv *env, AVFormatContext **format_context, AVStream **openedStream, AVCodecContext **context, int *stream_index, const char *url) |
| Opens the input file/url, allocates a AVFormatContext for it and opens the audio stream with an appropriate decoder. More...
|
|
AVCodec * | ff_find_encoder (enum AVSampleFormat sampleFormat, int bits, int big_endian, int signedSamples) |
| Finds an AVCodec encoder for the given sample format, bits per sample, byte order and signed/unsigned encoding. More...
|
|
int | ff_init_encoder (JNIEnv *env, FFAudioIO *aio, AVCodec *encoder) |
| Allocates and initializes the encoder context and frame in FFAudioIO. More...
|
|
int | ff_init_audioio (JNIEnv *env, FFAudioIO *aio) |
| Initialize our main context FFAudioIO, so that SwrContext, decode buffers and the encoder are set to reasonable values. More...
|
|
int | ff_fill_buffer (FFAudioIO *aio) |
| Reads a frame via av_read_frame(AVFormatContext, AVPacket) , decodes it to a AVPacket, and writes the result to the Java-side nativeBuffer . More...
|
|
void | ff_audioio_free (FFAudioIO *aio) |
| Free all resources held by aio and then itself. More...
|
|
int | ff_big_endian (enum AVCodecID codec_id) |
| Indicates whether the given id belongs to a big endian codec. More...
|
|
void | dumpCodecIds () |
|
JNIEXPORT jint JNICALL | JNI_OnLoad (JavaVM *vm, void *reserved) |
| Make sure FFmpeg is initialized all the way. More...
|
|
AVCodec* ff_find_encoder |
( |
enum AVSampleFormat |
sampleFormat, |
|
|
int |
bits, |
|
|
int |
big_endian, |
|
|
int |
signedSamples |
|
) |
| |
Finds an AVCodec encoder for the given sample format, bits per sample, byte order and signed/unsigned encoding.
This method never returns a planar, but always a packed codec.
- Parameters
-
sampleFormat | AVSampleFormat |
bits | bits per sample |
big_endian | true or false |
signedSamples | true, if the samples are signed |
- Returns
- an appropriate encoder or NULL, if none can be found
Definition at line 431 of file FFUtils.c.