FFmpeg
Data Structures | Functions
mediacodecdec_common.h File Reference
#include <stdint.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <sys/types.h>
#include "libavutil/frame.h"
#include "libavutil/pixfmt.h"
#include "avcodec.h"
#include "mediacodec_wrapper.h"

Go to the source code of this file.

Data Structures

struct  MediaCodecDecContext
 
struct  AVMediaCodecBuffer
 Opaque structure representing a MediaCodec buffer to render. More...
 

Functions

int ff_mediacodec_dec_init (AVCodecContext *avctx, MediaCodecDecContext *s, const char *mime, FFAMediaFormat *format)
 
int ff_mediacodec_dec_send (AVCodecContext *avctx, MediaCodecDecContext *s, AVPacket *pkt, bool wait)
 
int ff_mediacodec_dec_receive (AVCodecContext *avctx, MediaCodecDecContext *s, AVFrame *frame, bool wait)
 
int ff_mediacodec_dec_flush (AVCodecContext *avctx, MediaCodecDecContext *s)
 
int ff_mediacodec_dec_close (AVCodecContext *avctx, MediaCodecDecContext *s)
 
int ff_mediacodec_dec_is_flushing (AVCodecContext *avctx, MediaCodecDecContext *s)
 

Function Documentation

◆ ff_mediacodec_dec_init()

int ff_mediacodec_dec_init ( AVCodecContext avctx,
MediaCodecDecContext s,
const char *  mime,
FFAMediaFormat format 
)

Definition at line 818 of file mediacodecdec_common.c.

Referenced by mediacodec_decode_init().

◆ ff_mediacodec_dec_send()

int ff_mediacodec_dec_send ( AVCodecContext avctx,
MediaCodecDecContext s,
AVPacket pkt,
bool  wait 
)

Definition at line 883 of file mediacodecdec_common.c.

Referenced by mediacodec_receive_frame().

◆ ff_mediacodec_dec_receive()

int ff_mediacodec_dec_receive ( AVCodecContext avctx,
MediaCodecDecContext s,
AVFrame frame,
bool  wait 
)

Definition at line 977 of file mediacodecdec_common.c.

Referenced by mediacodec_receive_frame().

◆ ff_mediacodec_dec_flush()

int ff_mediacodec_dec_flush ( AVCodecContext avctx,
MediaCodecDecContext s 
)

Definition at line 1102 of file mediacodecdec_common.c.

Referenced by mediacodec_decode_flush(), and mediacodec_receive_frame().

◆ ff_mediacodec_dec_close()

int ff_mediacodec_dec_close ( AVCodecContext avctx,
MediaCodecDecContext s 
)

Definition at line 1120 of file mediacodecdec_common.c.

Referenced by ff_mediacodec_dec_init(), and mediacodec_decode_close().

◆ ff_mediacodec_dec_is_flushing()

int ff_mediacodec_dec_is_flushing ( AVCodecContext avctx,
MediaCodecDecContext s 
)

Definition at line 1139 of file mediacodecdec_common.c.

Referenced by mediacodec_receive_frame().