All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mediacodecdec_h264.c File Reference
#include <stdint.h>
#include <string.h>
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/fifo.h"
#include "libavutil/opt.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/pixfmt.h"
#include "libavutil/atomic.h"
#include "avcodec.h"
#include "h264.h"
#include "internal.h"
#include "mediacodecdec.h"
#include "mediacodec_wrapper.h"

Go to the source code of this file.

Data Structures

struct  MediaCodecH264DecContext


#define CODEC_MIME   "video/avc"


static av_cold int mediacodec_decode_close (AVCodecContext *avctx)
static av_cold int mediacodec_decode_init (AVCodecContext *avctx)
static int mediacodec_process_data (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
static int mediacodec_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static void mediacodec_decode_flush (AVCodecContext *avctx)


AVCodec ff_h264_mediacodec_decoder

Macro Definition Documentation

#define CODEC_MIME   "video/avc"

Definition at line 40 of file mediacodecdec_h264.c.

Referenced by mediacodec_decode_init().

Function Documentation

static av_cold int mediacodec_decode_close ( AVCodecContext avctx)

Definition at line 54 of file mediacodecdec_h264.c.

Referenced by mediacodec_decode_init().

static av_cold int mediacodec_decode_init ( AVCodecContext avctx)

Definition at line 68 of file mediacodecdec_h264.c.

static int mediacodec_process_data ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame,
AVPacket pkt 

Definition at line 167 of file mediacodecdec_h264.c.

Referenced by mediacodec_decode_frame().

static int mediacodec_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 

Definition at line 175 of file mediacodecdec_h264.c.

static void mediacodec_decode_flush ( AVCodecContext avctx)

Definition at line 244 of file mediacodecdec_h264.c.

Variable Documentation

AVCodec ff_h264_mediacodec_decoder
Initial value:
= {
.name = "h264_mediacodec",
.long_name = NULL_IF_CONFIG_SMALL("H.264 Android MediaCodec decoder"),
.priv_data_size = sizeof(MediaCodecH264DecContext),
.capabilities = CODEC_CAP_DELAY,
.caps_internal = FF_CODEC_CAP_SETS_PKT_DTS,
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int mediacodec_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:1163
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static av_cold int mediacodec_decode_close(AVCodecContext *avctx)
Decoders marked with FF_CODEC_CAP_SETS_PKT_DTS want to set AVFrame.pkt_dts manually.
Definition: internal.h:55
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:722
static void mediacodec_decode_flush(AVCodecContext *avctx)
static av_cold int mediacodec_decode_init(AVCodecContext *avctx)

Definition at line 260 of file mediacodecdec_h264.c.