FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
mediacodecdec.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 "avcodec.h"
#include "h264_parse.h"
#include "hevc_parse.h"
#include "hwaccel.h"
#include "internal.h"
#include "mediacodec_wrapper.h"
#include "mediacodecdec_common.h"

Go to the source code of this file.

Data Structures

struct  MediaCodecH264DecContext
 

Functions

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)
 

Variables

static const
AVCodecHWConfigInternal
mediacodec_hw_configs []
 

Function Documentation

static av_cold int mediacodec_decode_close ( AVCodecContext avctx)
static

Definition at line 51 of file mediacodecdec.c.

Referenced by mediacodec_decode_init().

static av_cold int mediacodec_decode_init ( AVCodecContext avctx)
static

Definition at line 307 of file mediacodecdec.c.

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

Definition at line 419 of file mediacodecdec.c.

Referenced by mediacodec_decode_frame().

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

Definition at line 427 of file mediacodecdec.c.

static void mediacodec_decode_flush ( AVCodecContext avctx)
static

Definition at line 503 of file mediacodecdec.c.

Variable Documentation

const AVCodecHWConfigInternal* mediacodec_hw_configs[]
static
Initial value:
= {
.public = {
},
.hwaccel = NULL,
},
}
#define NULL
Definition: coverity.c:32
hardware decoding through MediaCodec
Definition: pixfmt.h:289
The codec supports this format by some ad-hoc method.
Definition: avcodec.h:3336
The codec supports this format via the hw_device_ctx interface.
Definition: avcodec.h:3311

Definition at line 519 of file mediacodecdec.c.