Skip to content

VideoAccelerationType

videoioclassOpenCV 5.0.0
import { VideoAccelerationType } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSVideoAccelerationType
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

videoio_flags_base

Video Acceleration type

Used as value in #CAP_PROP_HW_ACCELERATION and #VIDEOWRITER_PROP_HW_ACCELERATION

Note: In case of FFmpeg backend, it translated to enum AVHWDeviceType (https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/hwcontext.h)

Constructors and members

static VIDEO_ACCELERATION_NONE

Do not require any specific H/W acceleration, prefer software processing.

VIDEO_ACCELERATION_NONE: VideoAccelerationTypeValue<0>,

static VIDEO_ACCELERATION_ANY

Prefer to use H/W acceleration. If no one supported, then fallback to software processing.

VIDEO_ACCELERATION_ANY: VideoAccelerationTypeValue<1>,

static VIDEO_ACCELERATION_D3D11

VideoAccelerationType.VIDEO_ACCELERATION_D3D11: DirectX 11

VIDEO_ACCELERATION_D3D11: VideoAccelerationTypeValue<2>,

static VIDEO_ACCELERATION_VAAPI

VideoAccelerationType.VIDEO_ACCELERATION_VAAPI: VAAPI

VIDEO_ACCELERATION_VAAPI: VideoAccelerationTypeValue<3>,

static VIDEO_ACCELERATION_MFX

libmfx (Intel MediaSDK/oneVPL)

VIDEO_ACCELERATION_MFX: VideoAccelerationTypeValue<4>,

static VIDEO_ACCELERATION_DRM

Raspberry Pi V4

VIDEO_ACCELERATION_DRM: VideoAccelerationTypeValue<5>

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.