Enum opencv::videoio::VideoAccelerationType[][src]

#[repr(C)]
pub enum VideoAccelerationType {
    VIDEO_ACCELERATION_NONE,
    VIDEO_ACCELERATION_ANY,
    VIDEO_ACCELERATION_D3D11,
    VIDEO_ACCELERATION_VAAPI,
    VIDEO_ACCELERATION_MFX,
}
Expand description

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)

Variants

VIDEO_ACCELERATION_NONE

Do not require any specific H/W acceleration, prefer software processing. Reading of this value means that special H/W accelerated handling is not added or not detected by OpenCV.

VIDEO_ACCELERATION_ANY

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

Note: H/W acceleration may require special configuration of used environment.

Note: Results in encoding scenario may differ between software and hardware accelerated encoders.

VIDEO_ACCELERATION_D3D11

DirectX 11

VIDEO_ACCELERATION_VAAPI

VAAPI

VIDEO_ACCELERATION_MFX

libmfx (Intel MediaSDK/oneVPL)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.