#include "config.h"
#include <android/native_window.h>
#include <dlfcn.h>
#include <media/NdkMediaCodec.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.
◆ mc_device_create()
◆ mc_device_init()
◆ mc_device_uninit()
◆ ff_hwcontext_type_mediacodec
Initial value:= {
.name = "mediacodec",
},
}
@ AV_HWDEVICE_TYPE_MEDIACODEC
static int mc_device_init(AVHWDeviceContext *ctx)
static void mc_device_uninit(AVHWDeviceContext *ctx)
static int mc_device_create(AVHWDeviceContext *ctx, const char *device, AVDictionary *opts, int flags)
static enum AVPixelFormat pix_fmts[]
AVPixelFormat
Pixel format.
@ AV_PIX_FMT_MEDIACODEC
hardware decoding through MediaCodec
static int device_init(AVFormatContext *ctx, int *width, int *height, uint32_t pixelformat)
Definition at line 107 of file hwcontext_mediacodec.c.