FFmpeg
Functions | Variables
hwcontext_oh.c File Reference
#include <multimedia/player_framework/native_avcodec_base.h>
#include "hwcontext.h"
#include "hwcontext_internal.h"
#include "hwcontext_oh.h"

Go to the source code of this file.

Functions

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

Variables

const HWContextType ff_hwcontext_type_oh
 

Function Documentation

◆ oh_device_create()

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

Definition at line 27 of file hwcontext_oh.c.

Variable Documentation

◆ ff_hwcontext_type_oh

const HWContextType ff_hwcontext_type_oh
Initial value:
= {
.name = "ohcodec",
.device_hwctx_size = sizeof(AVOHCodecDeviceContext),
.device_create = oh_device_create,
.pix_fmts = (const enum AVPixelFormat[]) {
},
}

Definition at line 38 of file hwcontext_oh.c.

AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:71
oh_device_create
static int oh_device_create(AVHWDeviceContext *ctx, const char *device, AVDictionary *opts, int flags)
Definition: hwcontext_oh.c:27
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:298
AV_HWDEVICE_TYPE_OHCODEC
@ AV_HWDEVICE_TYPE_OHCODEC
Definition: hwcontext.h:43
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72
AVOHCodecDeviceContext
OpenHarmony codec device.
Definition: hwcontext_oh.h:27
AV_PIX_FMT_OHCODEC
@ AV_PIX_FMT_OHCODEC
Definition: pixfmt.h:500