FFmpeg
Functions | Variables
hwcontext_mediacodec.c File Reference
#include "config.h"
#include "buffer.h"
#include "common.h"
#include "hwcontext.h"
#include "hwcontext_internal.h"
#include "hwcontext_mediacodec.h"

Go to the source code of this file.

Functions

static int mc_device_create (AVHWDeviceContext *ctx, const char *device, AVDictionary *opts, int flags)
 

Variables

const HWContextType ff_hwcontext_type_mediacodec
 

Function Documentation

◆ mc_device_create()

static int mc_device_create ( AVHWDeviceContext ctx,
const char *  device,
AVDictionary opts,
int  flags 
)
static

Definition at line 27 of file hwcontext_mediacodec.c.

Variable Documentation

◆ ff_hwcontext_type_mediacodec

const HWContextType ff_hwcontext_type_mediacodec
Initial value:
= {
.name = "mediacodec",
.device_hwctx_size = sizeof(AVMediaCodecDeviceContext),
.device_create = mc_device_create,
.pix_fmts = (const enum AVPixelFormat[]){
},
}

Definition at line 38 of file hwcontext_mediacodec.c.

AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
mc_device_create
static int mc_device_create(AVHWDeviceContext *ctx, const char *device, AVDictionary *opts, int flags)
Definition: hwcontext_mediacodec.c:27
AV_HWDEVICE_TYPE_MEDIACODEC
@ AV_HWDEVICE_TYPE_MEDIACODEC
Definition: hwcontext.h:38
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:296
AV_PIX_FMT_MEDIACODEC
@ AV_PIX_FMT_MEDIACODEC
hardware decoding through MediaCodec
Definition: pixfmt.h:283
AVMediaCodecDeviceContext
MediaCodec details.
Definition: hwcontext_mediacodec.h:27
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65