|
| void | logWarning (FFAudioIO *, int, const char *) |
| | Log a warning.
|
| void | logFine (FFAudioIO *, int, const char *) |
| | Log a debug message.
|
| void | throwUnsupportedAudioFileExceptionIfError (JNIEnv *, int, const char *) |
| | Throws an UnsupportedAudioFileException.
|
| void | throwIOExceptionIfError (JNIEnv *, int, const char *) |
| | Throws an IOException.
|
| void | throwIndexOutOfBoundsExceptionIfError (JNIEnv *, int, int) |
| | Throws an IndexOutOfBoundsException.
|
| void | throwFileNotFoundExceptionIfError (JNIEnv *, int, const char *) |
| | Throws a FileNotFoundException.
|
| int | ff_open_stream (JNIEnv *, AVStream *, AVCodecContext **) |
| | Opens the given stream, i.e.
|
| int | ff_open_format_context (JNIEnv *, AVFormatContext **, const char *, int) |
| | Opens the input file/url and allocates a AVFormatContext for it, but does not open the audio stream with an appropriate decoder.
|
| int | ff_open_file (JNIEnv *, AVFormatContext **, AVStream **, AVCodecContext **, int *, const char *, int) |
| | Opens the input file/url, allocates a AVFormatContext for it and opens the audio stream with an appropriate decoder.
|
| int | ff_init_audioio (JNIEnv *, FFAudioIO *) |
| | Initialize our main context FFAudioIO, so that SwrContext, decode buffers and the encoder are set to reasonable values.
|
| void | ff_audioio_free (FFAudioIO *) |
| | Free all resources held by aio and then itself.
|
| int | ff_fill_buffer (FFAudioIO *) |
| | Reads frames via av_read_frame, decodes them, and writes the result to the Java-side nativeBuffer.
|
| AVCodec * | ff_find_encoder (enum AVSampleFormat, int, int, int) |
| | Finds an AVCodec encoder for the given sample format, bits per sample, byte order and signed/unsigned encoding.
|
| int | ff_init_encoder (JNIEnv *, FFAudioIO *, AVCodec *) |
| | Allocates and initializes the encoder context and frame in FFAudioIO.
|
| int | ff_big_endian (enum AVCodecID) |
| | Indicates whether the given id belongs to a big endian codec.
|
| 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 528 of file FFUtils.c.