FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | FFAMediaFormat |
struct | FFAMediaCodecBufferInfo |
struct | FFAMediaCodec |
Typedefs | |
typedef struct FFAMediaCodecCryptoInfo | FFAMediaCodecCryptoInfo |
typedef struct FFAMediaCodecCryptoInfo FFAMediaCodecCryptoInfo |
Definition at line 170 of file mediacodec_wrapper.h.
int ff_AMediaCodecProfile_getProfileFromAVCodecContext | ( | AVCodecContext * | avctx | ) |
The following API around MediaCodec and MediaFormat is based on the NDK one provided by Google since Android 5.0.
Differences from the NDK API:
Buffers returned by ff_AMediaFormat_toString and ff_AMediaFormat_getString are newly allocated buffer and must be freed by the user after use.
The MediaCrypto API is not implemented.
ff_AMediaCodec_infoTryAgainLater, ff_AMediaCodec_infoOutputBuffersChanged, ff_AMediaCodec_infoOutputFormatChanged, ff_AMediaCodec_cleanOutputBuffers ff_AMediaCodec_getName and ff_AMediaCodec_getBufferFlagEndOfStream are not part of the original NDK API and are convenience functions to hide JNI implementation.
The API around MediaCodecList is not part of the NDK (and is lacking as we still need to retrieve the codec name to work around faulty decoders and encoders).
For documentation, please refers to NdkMediaCodec.h NdkMediaFormat.h and http://developer.android.com/reference/android/media/MediaCodec.html.
Definition at line 303 of file mediacodec_wrapper.c.
Referenced by ff_mediacodec_dec_init(), and mediacodec_init().
char* ff_AMediaCodecList_getCodecNameByType | ( | const char * | mime, |
int | profile, | ||
int | encoder, | ||
void * | log_ctx | ||
) |
Definition at line 365 of file mediacodec_wrapper.c.
Referenced by ff_mediacodec_dec_init().
FFAMediaFormat* ff_AMediaFormat_new | ( | int | ndk | ) |
Definition at line 2485 of file mediacodec_wrapper.c.
Referenced by mediacodec_decode_init(), and mediacodec_init().
|
inlinestatic |
Definition at line 92 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_receive(), ff_mediacodec_dec_unref(), mediacodec_decode_init(), mediacodec_init(), and mediacodec_output_format().
|
inlinestatic |
Definition at line 97 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_init(), ff_mediacodec_dec_receive(), mediacodec_dec_parse_format(), and mediacodec_output_format().
|
inlinestatic |
Definition at line 102 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 107 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 112 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 117 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 122 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 127 of file mediacodec_wrapper.h.
Referenced by mediacodec_dec_parse_format().
|
inlinestatic |
Definition at line 135 of file mediacodec_wrapper.h.
Referenced by mediacodec_decode_init(), and mediacodec_init().
|
inlinestatic |
Definition at line 140 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 145 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 150 of file mediacodec_wrapper.h.
Referenced by mediacodec_decode_init(), and mediacodec_init().
|
inlinestatic |
Definition at line 155 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 160 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 224 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_init(), and mediacodec_output_format().
FFAMediaCodec* ff_AMediaCodec_createCodecByName | ( | const char * | name, |
int | ndk | ||
) |
Definition at line 2492 of file mediacodec_wrapper.c.
Referenced by ff_mediacodec_dec_init(), and mediacodec_init().
FFAMediaCodec* ff_AMediaCodec_createDecoderByType | ( | const char * | mime_type, |
int | ndk | ||
) |
Definition at line 2499 of file mediacodec_wrapper.c.
Referenced by ff_mediacodec_dec_init().
FFAMediaCodec* ff_AMediaCodec_createEncoderByType | ( | const char * | mime_type, |
int | ndk | ||
) |
Definition at line 2506 of file mediacodec_wrapper.c.
Referenced by mediacodec_init().
|
inlinestatic |
Definition at line 233 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_init(), and mediacodec_init().
|
inlinestatic |
Definition at line 241 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_init(), and mediacodec_init().
|
inlinestatic |
Definition at line 246 of file mediacodec_wrapper.h.
Referenced by mediacodec_close().
|
inlinestatic |
Definition at line 251 of file mediacodec_wrapper.h.
Referenced by mediacodec_dec_flush_codec().
|
inlinestatic |
Definition at line 256 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_unref(), and mediacodec_close().
|
inlinestatic |
Definition at line 261 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_send(), and mediacodec_send().
|
inlinestatic |
Definition at line 266 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_receive(), and mediacodec_receive().
|
inlinestatic |
Definition at line 271 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_send(), mediacodec_receive_frame(), and mediacodec_send().
|
inlinestatic |
Definition at line 276 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_send(), and mediacodec_send().
|
inlinestatic |
Definition at line 281 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_receive(), and mediacodec_receive().
|
inlinestatic |
Definition at line 286 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_init(), ff_mediacodec_dec_receive(), and mediacodec_output_format().
|
inlinestatic |
Definition at line 291 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_receive(), mediacodec_buffer_release(), mediacodec_receive(), mediacodec_wrap_hw_buffer(), and mediacodec_wrap_sw_buffer().
|
inlinestatic |
Definition at line 296 of file mediacodec_wrapper.h.
|
inlinestatic |
Definition at line 301 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_receive(), ff_mediacodec_dec_send(), mediacodec_receive(), mediacodec_receive_frame(), and mediacodec_send().
|
inlinestatic |
Definition at line 306 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_receive(), and mediacodec_receive().
|
inlinestatic |
Definition at line 311 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_receive(), and mediacodec_receive().
|
inlinestatic |
Definition at line 316 of file mediacodec_wrapper.h.
Referenced by mediacodec_receive().
|
inlinestatic |
Definition at line 321 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_receive(), ff_mediacodec_dec_send(), mediacodec_receive(), and mediacodec_send().
|
inlinestatic |
Definition at line 326 of file mediacodec_wrapper.h.
Referenced by mediacodec_receive().
|
inlinestatic |
Definition at line 331 of file mediacodec_wrapper.h.
Referenced by mediacodec_init().
|
inlinestatic |
Definition at line 336 of file mediacodec_wrapper.h.
Referenced by ff_mediacodec_dec_receive(), and mediacodec_receive().
|
inlinestatic |
Definition at line 341 of file mediacodec_wrapper.h.
Referenced by mediacodec_send().
int ff_Build_SDK_INT | ( | AVCodecContext * | avctx | ) |
Definition at line 2513 of file mediacodec_wrapper.c.
Referenced by mediacodec_decode_init().